[pvrusb2] Trouble with lirc

Rick Immel rckimmel at aim.com
Sun May 14 22:44:19 CDT 2006


I am still unable to get the remote control to work.  So here is what I 
know so far.  My Linux kernel is version 2.6.16.  My hardware is the 
newer 24XXX version with the standard Hauppauge remote control.  I am 
using the pvrusb2-mci-20060423 driver.  Both the driver and MythTV 
(version 0.19) work properly.  I was able to compile the 0.8.0 version 
of lirc with source patches I found with a Google search on "lirc 
2.6.16".  As I mentioned in my previous e-mail, I first tried a CVS 
snapshot (version 0.8.1) which compiles with 2.6.16, but also does not 
work.   When I built lirc, I configure (setup.sh) it for a Hauppauge TV 
card.  After the Hauppauge pvr/tuner is powered up and working, an 
"lsmod" command produces the following output:

Module                  Size  Used by
wm8775                  5132  0
tda9887                16528  0
tuner                  52524  0
cx25840                23440  0
pvrusb2               141212  0
v4l2_common             6784  2 tuner,pvrusb2
v4l1_compat            13188  1 pvrusb2
videodev                7168  1 pvrusb2
tveeprom               13712  1 pvrusb2
ipv6                  231936  12
via_agp                 7936  1
shpchp                 42048  0
parport_pc             24772  0
parport                31048  1 parport_pc
uhci_hcd               29712  0
via686a                15624  0
hwmon                   2452  1 via686a
i2c_isa                 3584  1 via686a
i2c_viapro              7828  0
ohci_hcd               18692  0
ehci_hcd               29320  0
tulip                  48544  0
snd_emu10k1           107300  1
snd_rawmidi            19104  1 snd_emu10k1
snd_ac97_codec         87072  1 snd_emu10k1
snd_ac97_bus            2176  1 snd_ac97_codec
snd_pcm                74248  2 snd_emu10k1,snd_ac97_codec
snd_seq_device          6924  2 snd_emu10k1,snd_rawmidi
snd_timer              19332  2 snd_emu10k1,snd_pcm
snd_page_alloc          8456  2 snd_emu10k1,snd_pcm
snd_util_mem            3584  1 snd_emu10k1
snd_hwdep               7172  1 snd_emu10k1
snd                    45668  9 
snd_emu10k1,snd_rawmidi,snd_ac97_codec,snd_pcm,snd_seq_device,snd_timer,snd_hwdep
soundcore               7264  1 snd
emu10k1_gp              3072  0
gameport               11400  2 emu10k1_gp
nvidia               4537492  12
i2c_core               17040  10 
wm8775,tda9887,tuner,cx25840,pvrusb2,tveeprom,via686a,i2c_isa,i2c_viapro,nvidia
nls_iso8859_1           4096  2
nls_cp437               5760  2
nls_utf8                1920  1
agpgart                28720  2 via_agp,nvidia
psmouse                35592  0

An "lsusb" command generates the following output:

Bus 005 Device 001: ID 0000:0000 
Bus 004 Device 002: ID 046d:c01b Logitech, Inc. MX310 Optical Mouse
Bus 004 Device 001: ID 0000:0000 
Bus 003 Device 001: ID 0000:0000 
Bus 002 Device 001: ID 0000:0000 
Bus 001 Device 003: ID 2040:2400 Hauppauge
Bus 001 Device 001: ID 0000:0000 

After lirc is compiled, installed, and a "modprobe lirc_i2c" is 
executed, an "lsmod" command produces the following output:

Module                  Size  Used by
cx8800                 26892  0
cx88xx                 59300  1 cx8800
bttv                  163828  0
video_buf              17284  3 cx8800,cx88xx,bttv
compat_ioctl32          1280  2 cx8800,bttv
i2c_algo_bit            8840  2 cx88xx,bttv
btcx_risc               4232  3 cx8800,cx88xx,bttv
ir_common               8452  2 cx88xx,bttv
lirc_i2c                8452  0
lirc_dev               12772  1 lirc_i2c
snd_pcm_oss            38816  0
snd_mixer_oss          16000  1 snd_pcm_oss
wm8775                  5132  0
tda9887                16528  0
tuner                  52524  0
cx25840                23440  0
pvrusb2               141212  0
v4l2_common             6784  4 cx8800,bttv,tuner,pvrusb2
v4l1_compat            13188  2 cx8800,pvrusb2
videodev                7168  4 cx8800,cx88xx,bttv,pvrusb2
tveeprom               13712  3 cx88xx,bttv,pvrusb2
ipv6                  231936  12
via_agp                 7936  1
shpchp                 42048  0
parport_pc             24772  0
parport                31048  1 parport_pc
uhci_hcd               29712  0
via686a                15624  0
hwmon                   2452  1 via686a
i2c_isa                 3584  1 via686a
i2c_viapro              7828  0
ohci_hcd               18692  0
ehci_hcd               29320  0
tulip                  48544  0
snd_emu10k1           107300  1
snd_rawmidi            19104  1 snd_emu10k1
snd_ac97_codec         87072  1 snd_emu10k1
snd_ac97_bus            2176  1 snd_ac97_codec
snd_pcm                74248  3 snd_pcm_oss,snd_emu10k1,snd_ac97_codec
snd_seq_device          6924  2 snd_emu10k1,snd_rawmidi
snd_timer              19332  2 snd_emu10k1,snd_pcm
snd_page_alloc          8456  2 snd_emu10k1,snd_pcm
snd_util_mem            3584  1 snd_emu10k1
snd_hwdep               7172  1 snd_emu10k1
snd                    45668  11 
snd_pcm_oss,snd_mixer_oss,snd_emu10k1,snd_rawmidi,snd_ac97_codec,snd_pcm,snd_seq_device,snd_timer,snd_hwdep
soundcore               7264  1 snd
emu10k1_gp              3072  0
gameport               11400  2 emu10k1_gp
nvidia               4537492  12
i2c_core               17040  14 
cx88xx,bttv,i2c_algo_bit,lirc_i2c,wm8775,tda9887,tuner,cx25840,pvrusb2,tveeprom,via686a,i2c_isa,i2c_viapro,nvidia
nls_iso8859_1           4096  2
nls_cp437               5760  2
nls_utf8                1920  1
agpgart                28720  2 via_agp,nvidia
psmouse                35592  0

It appears that Cx8800/Cx88xx and bttv pops up everywhere.  Is that 
supposed to happen?

An "ls -l /dev/lirc*" commmand generates the following output:

crw-rw-rw-  1 root root 61, 0 2006-05-10 13:24 /dev/lirc
srw-r--r--  1 root root     0 2006-05-10 15:50 /dev/lircd=
prw-r--r--  1 root root     0 2006-05-10 13:24 /dev/lircm|

When I run mode2 without "lircd" loaded I get the following messages:

mode2: error opening /dev/lirc
mode2: No such device

When I load "lircd" and run "irw", lircd terminates and I get the 
following messages in the lircd log:

May 14 02:14:53 homesys1000 lircd: lircd(hauppauge) ready
May 14 02:14:56 homesys1000 lircd: accepted new client on /dev/lircd
May 14 02:14:56 homesys1000 lircd: could not open /dev/lirc
May 14 02:14:56 homesys1000 lircd: default_init(): No such device
May 14 02:14:56 homesys1000 lircd: caught signal

Could someone let me know what I'm doing wrong?  BTW after lirc is 
installed, the pvrusb2 driver and MythTV are still working properly.



More information about the pvrusb2 mailing list