[mythtv-users] Channel change script works, but not in mythtv

Bill Meek keemllib at gmail.com
Mon Jan 20 06:40:24 UTC 2014


On 01/19/2014 12:45 PM, Raymond Norton wrote:
> On 01/18/2014 08:48 PM, Raymond Norton wrote:
>> I am running mythbuntu .27
>>
>> I have set up lirc 9.0 to control a Motorola STB.
>>
>> In mythtv-backend I have the following channel change script (http://www.mythtv.org/wiki/Change-channel-lirc.pl)
>>
>> set in mthtv-setup up as:
>>
>> /home/mythtv/bin/channel-change.pl
>>
>>
>> The preset channel and starting channel is set to channel 13 (using an HVR-1950 tuner)
>>
>>
>> The channel change script works fine from a terminal window e.g perl /home/mythtv/bin/channel-change.pl 142, works as expected.
>>
>>
>> However, in mythtv, when selecting watch TV, the channel jumps to 250 , but cannot be changed.
>>
>>
>>
>
> I changed to a different, simpler script and have the same problem. Channel jumps to 250 when starting watch tv and cannot be changed to a new
> channel.
>
> #!/bin/sh
>
> REMOTE_NAME=SRC-200A_3
>
> for digit in $(printf "%3.3d" $1 | sed -e 's/./& /g'); do
>      /usr/bin/irsend --device=/dev/lircd SEND_ONCE $REMOTE_NAME $digit
>      sleep 0.2 # note, you may have to tweak the interdigit delay up a bit
> done
>
>
> * Works fine in a terminal window.
>
>
>
> I'm using a usb-uirt ir transmitter unit. Syslog shows the following when it connects:
>
> Jan 19 12:36:18 mythtv lircd-0.9.0[1126]: uirt2_raw: UIRT version 0905
> Jan 19 12:36:18 mythtv lircd-0.9.0[1126]: removed client
> Jan 19 12:36:18 mythtv lircd-0.9.0[1126]: accepted new client on /var/run/lirc/lircd
>
> Any ideas?

Hi,

Here's one.

I'd look at your backend log for clues. Even better, do the following:

     mythbackend --setverbose system,channel

(to a running backend) 1st. Then attempt a channel change. You know it
will fail, but then look at the log to see if the expected command and
correct channel got executed.

-- 
Bill


More information about the mythtv-users mailing list