[mythtv-users] HD-PVR driver /dev/videoX issue

Bob Sully rcs at malibyte.net
Wed Feb 18 06:52:06 UTC 2009


john wrote:
>
> On Feb 17, 2009, at 10:10 PM, Bob Sully wrote:
>
>> Hi all -
>>
>> I recently updated my Ubuntu Hardy Myth box to the latest available
>> kernel, as I'd like to get the newest available nVidia driver
>> updates via the ubuntu-restricted-modules package.  Yeah, they're
>> still way behind the curve (still using 169.12), but I figure that
>> I'll eventually get the binaries with the VDPAU updates for both
>> the nvidia drivers and mplayer, etc.
>>
>> Anyway, afterward, I compiled the latest HDPVR driver from:
>> http://hg.jannau.net/hdpvr - just so I can record HD from the STB
>> (manually, from the CL at this point, since I'm not running trunk).
>> It worked fine with the previous kernel.
>>
>> The compile went fine, but I'm having issues getting it to create
>> /dev/video1 (/dev/video0 is being used for something else).
>> Previously, I
>> had put the following in /etc/rc.local, and it had worked OK:
>>
>> # HD-PVR Options
>> modprobe hdpvr video_nr=1
>> v4l2-ctl --device=/dev/video1 --set-ctrl=video_bitrate=9000000
>> v4l2-ctl --device=/dev/video1 --set-ctrl=video_peak_bitrate=11000000
>>
>>
>> It no longer works:
>>
>> [mythtv at vader: ~]$ lsl /dev/video*
>> crw-rw----+ 1 root video 81, 0 2009-02-17 20:44 /dev/video0
>>
>>
>> The module is being loaded:
>> [mythtv at vader: ~]$ lsmod | grep hdpvr
>> hdpvr                  30344  0
>> v4l2_common            20992  3 hdpvr,tuner,cx8800
>> videodev               48896  5 hdpvr,tuner,cx8800,cx88xx,v4l2_common

<snip>

>>
>> Can someone clue me in on a fix?
>
> If you unplug the HD-PVR, and plug it back in, what shows up in /var/
> log/messages (or dmesg) ?  Whatever is there should give you a clue as
> to what is happening.
>
> John


John:

Here it is:
[ 7059.201773] usb 5-2: new full speed USB device using uhci_hcd and
address 14
[ 7059.326087] usb 5-2: device descriptor read/64, error -71
[ 7059.553318] usb 5-2: device descriptor read/64, error -71
[ 7059.773368] usb 5-2: new full speed USB device using uhci_hcd and
address 15
[ 7061.937263] usb 8-4: new high speed USB device using ehci_hcd and
address 5
[ 7062.096985] usb 8-4: configuration #1 chosen from 1 choice
[ 7062.296183] hdpvr: INFO device_authorization: Status request returned,
len 46: 01 08 4a 75 6e 20 31 33 20 32 30 30 38 20 31 31 3a 33 34 3a 31 33
00 00 00 00 00 00 00 00 00 00 00 00 00 a2 0b 82 fc b9 ef b2 56 f9 f9 8c
[ 7062.296189] hdpvr: INFO device_authorization: challenge: fc b9 ef b2 56
f9 f9 8c
[ 7062.296191] hdpvr: INFO device_authorization:  response: b4 11 36 3a e2
8f 3a 03
[ 7062.400391] hdpvr: INFO device_authorization: magic request returned 8
[ 7062.420226] hdpvr: INFO hdpvr_config_call: config call request returned 1
[ 7062.440072] hdpvr: INFO hdpvr_config_call: config call request returned 1
[ 7062.460034] hdpvr: INFO hdpvr_config_call: config call request returned 1
[ 7062.483882] hdpvr: INFO hdpvr_config_call: config call request returned 1
[ 7062.501712] hdpvr: INFO hdpvr_config_call: config call request returned 1
[ 7062.519691] hdpvr: INFO hdpvr_config_call: config call request returned 1
[ 7062.536532] hdpvr: INFO hdpvr_config_call: config call request returned 1
[ 7062.556502] hdpvr: INFO hdpvr_config_call: config call request returned 1
[ 7062.577346] hdpvr: INFO hdpvr_config_call: config call request returned 1
[ 7062.596191] hdpvr: INFO hdpvr_config_call: config call request returned 1
[ 7062.600309] hdpvr: INFO hdpvr_device_init: control request returned 4
[ 7062.604178] hdpvr: INFO get_video_info: get video info returned: 5, 00
00 00 00 00
[ 7062.604180] hdpvr: INFO hdpvr_device_init: no valid video signal or
device init failed
[ 7062.608166] hdpvr: INFO hdpvr_device_init: control request returned 1
[ 7062.612778] hdpvr: INFO hdpvr_device_init: control request returned 1
[ 7062.612782] hdpvr: TRACE hdpvr_alloc_buffers: status = 1
[ 7062.612784] hdpvr: INFO hdpvr_alloc_buffers: allocating 16 buffers
[ 7062.612895] hdpvr: USB HD PVR device now attached to /dev/video2
[ 7062.615687] hdpvr: TRACE hdpvr_open: status = 1
[ 7062.616311] hdpvr: TRACE hdpvr_release: status = 1

Interestingly, it says it's been assigned to /dev/video2...

However:

[mythtv at vader: ~]$ lsl /dev/video*
crw-rw----+ 1 root video 81, 0 2009-02-17 21:58 /dev/video0
crw-rw----+ 1 root video 81, 2 2009-02-17 22:40 /dev/video1

and:
[mythtv at vader: ~]$ cat /dev/video1 > test.ts

lights up the HD-PVR (starts the recording).  Odd, but thanks.  I will try
rebooting it again later. since Myth is recording from the HDHR ATM. 
Hopefully everything will work afterward....?

Thanks
Bob

-- 
________________________________________
Bob Sully - Simi Valley, California, USA
http://www.malibyte.net
http://www.malibyte.com



More information about the mythtv-users mailing list