[mythtv-users] Joy and pain (Daryl McDonald)

Daryl McDonald darylangela at gmail.com
Tue Feb 18 22:04:24 UTC 2014


On Tue, Feb 18, 2014 at 4:15 PM, Hika van den Hoven <hikavdh at gmail.com> wrote:
> Hoi Hika,
>
> Tuesday, February 18, 2014, 9:43:25 PM, you wrote:
>
>> Hoi Daryl,
>
>> Tuesday, February 18, 2014, 9:31:20 PM, you wrote:
>
>> Better work with one variable in the beginning. That way there is less
>> chance of typos and it's easier to maintain.
>>> /dev/video0 is now /dev/videopvr150
>
>>> I think I need to amend my "change-channel.sh" in four places,
>>> indicated by <<<* right? Preceding "old line" is commented out"#"
>>> Good?
>
>>> REMOTE_NAME=DCT700
>>> cmd="$1"
>> ## Change this to match your Lirc socket file
>> lirc_socket="/var/run/lirc/lircdSerial"
>
>>> /usr/local/bin/check_stb 1>/dev/null 2>/dev/null || :
>>> sleep 2
>
>>> case $cmd in
>>>     [0-9]*)
>>>     for digit in $(echo $1 | sed -e 's/./& /g'); do
>>>        # irsend -d /dev/lircd SEND_ONCE $REMOTE_NAME $digit
> #>>         irsend -d /var/run/lirc/lircdSerial SEND_ONCE_NAME $digit <<<1
>>          irsend -d ${lirc_socket} SEND_ONCE_NAME $digit
>>>         sleep 0.2
>>>         # If things work OK with sleep 1, try this for faster channel changes:
>>>         # sleep 0.3
>>>     done
>>>        # irsend -d /dev/lircd SEND_ONCE $REMOTE_NAME OK
> #>>          irsend -d /var/run/lirc/lircdSerial SEND_ONCE $REMOTE_NAME OK<<<2
>>           irsend -d ${lirc_socket} SEND_ONCE $REMOTE_NAME OK
>>> sleep 1
>>>         #irsend -d /dev/lircd SEND_ONCE $REMOTE_NAME EXIT
> #>>          irsend -d /var/run/lirc/lircdSerial SEND_ONCE $REMOTE_NAME EXIT<<<3
>>           irsend -d ${lirc_socket} SEND_ONCE $REMOTE_NAME EXIT
>>>     ;;
>
>>>     *)
>>>         #irsend SEND_ONCE $REMOTE_NAME $cmd
> #>>         irsend -d /var/run/lirc/lircdSerial SEND_ONCE $REMOTE_NAME $cmd<<<4
>>          irsend -d ${lirc_socket} SEND_ONCE $REMOTE_NAME $cmd
>>>         ;;
>>> esac
>
>>> Implementing the previous changes turned on the stb when I ran
>>> "/usr/local/bin/check_stb" so yes I think you've found it!!!!!!!!!
>>> Many Thanks!!!
>
>>> Please confirm or emend changes to "change-channel.sh"   Daryl
>>> _______________________________________________
>>> 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
>
>
>
>
>> Tot mails,
>>   Hika                            mailto:hikavdh at gmail.com
>
>> "Zonder hoop kun je niet leven
>> Zonder leven is er geen hoop
>> Het eeuwige dilemma
>> Zeker als je hoop moet vernietigen om te kunnen overleven!"
>
>> De lerende Mens
>> --
>
>
> So if this works, the problem was you using /usr/local/bin/check_stb
> to test. Which used /dev/video0 to check out the result. And probably
> /dev/video0 moved up to /dev/video1! All the time the main problem was
> not only /dev/lirc0 moving to /dev/lirc1. Don't forget to double-check
> for other scripts in /usr/local/bin you might use on occasion. Also
> you best create udev rules for the new card (/dev/video*, /dev/vbi*,
> /dev/dsp* and /dev/dvb/***).
> If you want me to suggest some, give me the rellevant udevadm output.
>
> Tot mails,
>   Hika                            mailto:hikavdh at gmail.com
>
> "Zonder hoop kun je niet leven
> Zonder leven is er geen hoop
> Het eeuwige dilemma
> Zeker als je hoop moet vernietigen om te kunnen overleven!"
>
> De lerende Mens
> --
>
> _______________________________________________
> 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

Hoi HIka, Before we get into new udev rules, I think the
"change-channel.sh" is not working, the first part of it is because
the stb powered on when I rebooted, but an attempt to watch one of the
stb's channels live got no signal or channel lock. When I check the
box on standard TV it is still on Discovery, where I tuned it
manually, instead of TVO where the script tunes it "normally".
Daryl


More information about the mythtv-users mailing list