[mythtv-users] Checking power status of STB

Justin Alcorn justin at jalcorn.net
Fri Oct 31 16:59:28 UTC 2014


I intend to look and see.  Also, it seems to have hung the process, so
there's definintely an issue.

Suggestions on making sure a recording is not in process?  And...on
having it run just before a recording, rather than on a schedule?

Ideal situation - just before recording, check and turn it on if
needed. If it's already recording, then just end.
--
Justin B. Alcorn
PGP Fingerprint A36D D691 C5B0 BE15 5A2A AF49 AA1C 372C


On Fri, Oct 31, 2014 at 11:54 AM, Eric Sharkey <eric at lisaneric.org> wrote:
> On Wed, Oct 29, 2014 at 7:45 PM, Justin Alcorn <justin at jalcorn.net> wrote:
>> Anyone see any problems with this?
>>
>> #!/bin/bash
>>
>> dev="/dev/video0"
>> of="/tmp/$$.mpg"
>> poweron="0_74_KEY_POWER"
>> remote="blaster"
>> lircdev="/dev/lircd"
>> until $(timeout 2 dd if=${dev} of=${of} bs=4k count=1 1>/dev/null 2>/dev/null )
>
> Are you sure this doesn't cause minor glitches in an active recording
> (similar to a missing 4K block of data)?
>
> http://www.linuxtv.org/downloads/legacy/video4linux/API/V4L2_API/spec-single/v4l2.html#id2758585
>
> In particular, this statement "V4L2 drivers should not support
> multiple applications reading or writing the same data stream on a
> device by copying buffers" should give one pause, even when it's
> followed by "When the driver supports stream sharing anyway it must be
> implemented transparently".
>
> If it's working for you, great, but I wouldn't count on this working
> in all circumstances.
>
> Eric
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org


More information about the mythtv-users mailing list