[mythtv-users] HDPVR, Sonoff and find-zero-byte.pl

Bill Meek keemllib at gmail.com
Fri Sep 7 03:17:24 UTC 2018


On 09/06/2018 08:43 PM, Rajil Saraswat wrote:
> On 09/05/2018 11:19 PM, Rajil Saraswat wrote:
>> Hi,
>>
>> My HDPVR frequently locks up with a message "config call request for
>> value 0x800 returned -110". The MythTV wiki points that a device called
>> HDPVR-Killer used to exists which could power cycle the devices. I
>> intend to use ESP8266 chip Sonoff device [1] to powercycle the HDPVR.
>> However, I would like to use the find-zero-byte.pl [2] script from the
>> hdpvr-killer repo. Does anybody know whether that script works with
>> v0.29 (assuming hdpvr-power on lines 125/141 is my sonoff external script)?
>>
>>
>> Thanks
>>
>>
>> [1] http://sonoff.itead.cc/en/products/sonoff/sonoff-basic
>>
>> [2] https://github.com/Beirdo/hdpvr-killer/blob/master/src/find-zero-byte.pl
>>
> I have setup the find-zero-byte.pl script and can see the following in
> the log,
> 
> SystemEvent mythsystemevent.cpp:55 (run) - MythSystemEventHandler:
> Finished '/usr/local/bin/find-zero-byte.pl 1 1110 2018-09-06T20:35:58'
> result 140
> 
> Anybody knows what that return of '140' means?

#define GENERIC_EXIT_KILLED 140 ///< Process killed or stopped

I'd try running it from the command line to see
what happens. The arguments are in mythbackend.log.

E.g.: /usr/local/bin/find-zero-byte.pl 1 1110 2018-09-06T20:52:24 cancel

> The script is supposed to create the file,
> 
> my $runningfile = "/tmp/$cardid-$chanid-$starttime.running";
> 
> but i dont any such file being created in /tmp.

-- 
Bill


More information about the mythtv-users mailing list