[mythtv-users] HDPVR can only record one show (any thoughts)

Vern spamvern at yahoo.com
Wed Dec 23 05:02:58 UTC 2009

From: John P Poet <jppoet at gmail.com>
To: Discussion about mythtv <mythtv-users at mythtv.org>
Sent: Tue, December 22, 2009 8:48:52 PM
Subject: Re: [mythtv-users] HDPVR can only record one show (any thoughts)

On Tue, Dec 22, 2009 at 9:00 AM, Vern <spamvern at yahoo.com> wrote:
>   5. modified directv.pl to add a 5 second delay after changing the channel

Personally, I wrapped directv.pl in a shell script.  This makes it
easier to control two HD-PVRs independently, and allowes a
double-check that the correct channel was selected:


if [ "X$1" = "X" ]; then
       echo "Usage: $0 <channel number>"

/usr/local/bin/directv.pl box_type H20 port /dev/hdpvrChannel0 on
/usr/local/bin/directv.pl box_type H20 port /dev/hdpvrChannel0 get_channel

/usr/local/bin/directv.pl box_type H20 port /dev/hdpvrChannel0
channel_change_type command setup_channel $1

if [ "$?" -ne "0" ]; then
    /usr/local/bin/directv.pl box_type H20 port /dev/hdpvrChannel0
channel_change_type command setup_channel $1

sleep 2

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
mythtv-users mailing list
mythtv-users at mythtv.org

I am pretty sure it was a 5 second delay from test runs by hand.  I actually have a pretty heavily modified directv.pl that I changed to:

1.  not try to change the channel if it already is on the correct channel.
2.  use command 0x83 (GetPrimaryStatus) to detect if the channel change worked correctly and reissue if needed (never is after 3 below).
3. use command 0xA6 (OpenUserChannel) as I found it to be 100% reliable instead of the default trying to send key codes to change the channel.

The PrimaryGetStatus command reports that it is using AC3 output, so maybe this is part of my issue now that I see that.  I'm not sure how to change that.  Something to play around with tomorrow after work.  Though I am using the RCA for audio to the HDPVR and still having issues.

mythtv(bin)$ ./directv.pl get_status
current channel: 229
current signal : 94
primary type   : 0x10 (Video - HDTV)
audio type     : 0x09 (AC3 In / AC3 Out)
data type      : 0xff

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20091222/af766363/attachment.htm>

More information about the mythtv-users mailing list