[mythtv-users] external channel changing script lag problems

Brian Wood beww at beww.org
Sun Oct 7 17:04:20 UTC 2007


Joe Auty wrote:
> Michael T. Dean wrote:
>> On 10/06/2007 03:37 PM, Joe Auty wrote:
>>> My external channel change script (pasted below) takes so long to
>>> execute with a sleep set to 1.25 that when I select "Watch TV" there
>>> seems to be a timeout. I see in my logs:
>>>   
>> ...
>>> When I decrease the sleep time, I can watch TV. However, with a
>>> decreased sleep time my channel changing script doesn't change channels
>>> properly - it needs that long sleep time.
>>>
>>> Is it possible to not set any starting channel at startup and to just
>>> leave the channel set at whatever it was set at last? Is it possible to
>>> increase the timeout values upon invoking a Watch TV? Is it possible to
>>> use a separate channel changing script for presetting the initial channel?
>> You can, instead, just background the channel change script with the
>> larger sleep time--i.e. add an "&" at the end of the command line. 
>> Then, Myth will think the channel change was instantaneous and the
>> channel change script will continue to execute as Myth starts up TV.
>>
> 
> So, you mean add the & to the tail of the externalcommand MySQL field?
> 
> When I do this, I can get into watch TV, but I can't change channels as
> it seems that commands are being sent to the script as follows:
> 
> /path/to/script & <channel>
> 
> 
> The channel is seen as a second, unrecognizable command.
> 
> Can you elaborate a little bit on what you meant here?
> 

Put the "&" at the end of the line, after the channel #.



More information about the mythtv-users mailing list