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

Raymond Norton admin at lctn.org
Sun Jan 19 18:45:39 UTC 2014


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?


-- 
Raymond Norton
LCTN
952.955.7766



More information about the mythtv-users mailing list