This is going to be a LONG post. Background: My Myth system had two PVR-250 tuner cards and was running well. The silver dogbone A415-HPG remote was working perfectly on the first PVR-250. Life was good. Then Cablevision moved certain analog channel to digital only, so I was forced to get a digital STB for my Myth box. So, I bought a third tuner card, a PVR-150 with the IR Blaster, to record from and control the STB.
Original tuner configuration:
PCI slot 0: PVR-250 tuner0 (w/remote receiver)
PCI slot 1: empty
PCI slot 2: PVR-250 tuner1
I installed the PVR-150:
New tuner configuration:
PCI slot 0: PVR-250 tuner0
PCI slot 1: PVR-150 tuner1 (w/remote receiver and IRBlaster)
PCI slot 2: PVR-250 tuner2
In order to get the remote working via the PVR-150 I had to make one change to
/etc/lirc/hardware.conf:
Code:
DEVICE="/dev/lirc"
was changed to
DEVICE="/dev/lirc1"
Then I quit mythfrontend, restarted lirc, restarted the front end, and the remote was working again. So far so good.
At this point, I'm basically where I was before I added the PVR-150, only now I have three tuners instead of two. Now to get the IR Blaster working. This is where I have been spinning my wheels for two days.
Prior to installing R5C7 I followed the instructions at
http://www.blushingpenguin.com/mark/blog/?p=24 and
http://mysettopbox.tv/phpBB2/viewtopic.php?t=6206 with no luck. After installing R5C7 and following the instructions at
http://www.knoppmythwiki.org/index.php? ... hSetTopBox the results were the same.
These results are as follows, and point to what I'd believe is a clue to what's going on if I weren't so clueless: the firmware file
haup-ir-blaster.bin will load
only when module lirc_i2c is disabled and replaced by module lirc_pvr150. However, when this is done, lirc stops working completely - the remote no longer works, the ir blaster still doesn't work, and lirc dies.
Here is the relevant line in
/etc/lirc/hardware.conf set to load lirc_i2c, the corresponding relevant syslog, and the results of the irw and irsend commands:
Code:
MODULES="lirc_dev lirc_i2c"
/var/log/syslog:
Code:
.
.
.
Jul 22 12:21:20 mythtv kernel: lirc_dev: IR Remote Control driver registered, at major 61
Jul 22 12:21:20 mythtv kernel: ivtv: ==================== START INIT IVTV ====================
Jul 22 12:21:20 mythtv kernel: ivtv: version 0.4.4 (tagged release) loading
Jul 22 12:21:20 mythtv kernel: ivtv: Linux version: 2.6.15-chw-2 SMP preempt 586 gcc-3.3
Jul 22 12:21:20 mythtv kernel: ivtv: In case of problems please include the debug info between
Jul 22 12:21:20 mythtv kernel: ivtv: the START INIT IVTV and END INIT IVTV lines, along with
Jul 22 12:21:20 mythtv kernel: ivtv: any module options, when mailing the ivtv-users mailinglist.
Jul 22 12:21:20 mythtv kernel: ivtv0: Autodetected WinTV PVR 250 card (cx23416 based)
Jul 22 12:21:20 mythtv kernel: ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 16
Jul 22 12:21:20 mythtv kernel: ACPI: PCI Interrupt 0000:02:06.0[A] -> Link [LNKA] -> GSI 16 (level, high) -> IRQ 19
Jul 22 12:21:20 mythtv kernel: ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
Jul 22 12:21:20 mythtv kernel: tuner 2-0061: chip found @ 0xc2 (ivtv i2c driver #0)
Jul 22 12:21:20 mythtv kernel: ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=61]
Jul 22 12:21:20 mythtv kernel: saa7115 2-0021: saa7115 found @ 0x42 (ivtv i2c driver #0)
Jul 22 12:21:20 mythtv kernel: ivtv0: i2c attach to card #0 ok [client=saa7115, addr=21]
Jul 22 12:21:20 mythtv kernel: msp3400 2-0040: chip=MSP3445G-B8 +nicam +simple +simpler +radio mode=simpler
Jul 22 12:21:20 mythtv kernel: msp3400 2-0040: msp34xxg daemon started
Jul 22 12:21:20 mythtv kernel: ivtv0: i2c attach to card #0 ok [client=MSP3445G-B8, addr=40]
Jul 22 12:21:20 mythtv kernel: tveeprom 2-0050: Hauppauge model 32062, rev B185, serial# 2869081
Jul 22 12:21:20 mythtv kernel: tveeprom 2-0050: tuner model is TCL 2002N 6A (idx 85, type 50)
Jul 22 12:21:20 mythtv kernel: tveeprom 2-0050: TV standards NTSC(M) (eeprom 0x08)
Jul 22 12:21:20 mythtv kernel: tveeprom 2-0050: audio processor is MSP3445 (idx 12)
Jul 22 12:21:20 mythtv kernel: tveeprom 2-0050: decoder processor is SAA7115 (idx 19)
Jul 22 12:21:20 mythtv kernel: tveeprom 2-0050: has no radio, has IR remote
Jul 22 12:21:21 mythtv kernel: ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
Jul 22 12:21:22 mythtv kernel: ivtv0: Encoder revision: 0x02050032
Jul 22 12:21:22 mythtv kernel: ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
Jul 22 12:21:22 mythtv kernel: ivtv0: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
Jul 22 12:21:22 mythtv kernel: ivtv0: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
Jul 22 12:21:22 mythtv kernel: ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
Jul 22 12:21:22 mythtv kernel: tuner 2-0061: type set to 50 (TCL 2002N)
Jul 22 12:21:22 mythtv kernel: ivtv0: Initialized WinTV PVR 250, card #0
Jul 22 12:21:22 mythtv kernel: ivtv: ====================== NEXT CARD ======================
Jul 22 12:21:22 mythtv kernel: ivtv1: Autodetected WinTV PVR 150 card (cx23416 based)
Jul 22 12:21:22 mythtv kernel: ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 19
Jul 22 12:21:22 mythtv kernel: ACPI: PCI Interrupt 0000:02:07.0[A] -> Link [LNKD] -> GSI 19 (level, high) -> IRQ 20
Jul 22 12:21:22 mythtv kernel: ivtv1: i2c attach to card #1 ok [client=tveeprom, addr=50]
Jul 22 12:21:22 mythtv kernel: tuner 3-0061: chip found @ 0xc2 (ivtv i2c driver #1)
Jul 22 12:21:22 mythtv kernel: ivtv1: i2c attach to card #1 ok [client=(tuner unset), addr=61]
Jul 22 12:21:22 mythtv kernel: cx25840 3-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #1)
Jul 22 12:21:26 mythtv kernel: cx25840 3-0044: loaded v4l-cx25840.fw firmware (14264 bytes)
Jul 22 12:21:26 mythtv kernel: ivtv1: i2c attach to card #1 ok [client=cx25840, addr=44]
Jul 22 12:21:26 mythtv kernel: wm8775 3-001b: chip found @ 0x36 (ivtv i2c driver #1)
Jul 22 12:21:26 mythtv kernel: ivtv1: i2c attach to card #1 ok [client=wm8775, addr=1b]
Jul 22 12:21:26 mythtv kernel: tveeprom 3-0050: Hauppauge model 26152, rev C599, serial# 8960893
Jul 22 12:21:26 mythtv kernel: tveeprom 3-0050: tuner model is TCL 2002N 5H (idx 99, type 50)
Jul 22 12:21:26 mythtv kernel: tveeprom 3-0050: TV standards NTSC(M) (eeprom 0x08)
Jul 22 12:21:26 mythtv kernel: tveeprom 3-0050: audio processor is CX25843 (idx 37)
Jul 22 12:21:26 mythtv kernel: tveeprom 3-0050: decoder processor is CX25843 (idx 30)
Jul 22 12:21:26 mythtv kernel: tveeprom 3-0050: has no radio, has IR remote
Jul 22 12:21:26 mythtv kernel: eth0: no IPv6 routers present
Jul 22 12:21:27 mythtv kernel: ivtv1: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
Jul 22 12:21:27 mythtv kernel: ivtv1: Encoder revision: 0x02050032
Jul 22 12:21:27 mythtv kernel: ivtv1: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
Jul 22 12:21:27 mythtv kernel: ivtv1: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
Jul 22 12:21:27 mythtv kernel: ivtv1: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
Jul 22 12:21:27 mythtv kernel: ivtv1: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
Jul 22 12:21:27 mythtv kernel: tuner 3-0061: type set to 50 (TCL 2002N)
Jul 22 12:21:28 mythtv kernel: ivtv1: Initialized WinTV PVR 150, card #1
Jul 22 12:21:28 mythtv kernel: ivtv: ====================== NEXT CARD ======================
Jul 22 12:21:28 mythtv kernel: ivtv2: Autodetected WinTV PVR 250 card (cx23416 based)
Jul 22 12:21:28 mythtv kernel: ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 18
Jul 22 12:21:28 mythtv kernel: ACPI: PCI Interrupt 0000:02:08.0[A] -> Link [LNKC] -> GSI 18 (level, high) -> IRQ 21
Jul 22 12:21:28 mythtv kernel: ivtv2: i2c attach to card #2 ok [client=tveeprom, addr=50]
Jul 22 12:21:28 mythtv kernel: tuner 4-0061: chip found @ 0xc2 (ivtv i2c driver #2)
Jul 22 12:21:28 mythtv kernel: ivtv2: i2c attach to card #2 ok [client=(tuner unset), addr=61]
Jul 22 12:21:28 mythtv kernel: saa7115 4-0021: saa7115 found @ 0x42 (ivtv i2c driver #2)
Jul 22 12:21:28 mythtv kernel: ivtv2: i2c attach to card #2 ok [client=saa7115, addr=21]
Jul 22 12:21:28 mythtv kernel: msp3400 4-0040: chip=MSP4448G-A2 +nicam +simple +simpler +radio mode=simpler
Jul 22 12:21:28 mythtv kernel: msp3400 4-0040: msp34xxg daemon started
Jul 22 12:21:28 mythtv kernel: ivtv2: i2c attach to card #2 ok [client=MSP4448G-A2, addr=40]
Jul 22 12:21:28 mythtv kernel: tveeprom 4-0050: Hauppauge model 32032, rev B185, serial# 2835936
Jul 22 12:21:28 mythtv kernel: tveeprom 4-0050: tuner model is TCL 2002N 6A (idx 85, type 50)
Jul 22 12:21:28 mythtv kernel: tveeprom 4-0050: TV standards NTSC(M) (eeprom 0x08)
Jul 22 12:21:28 mythtv kernel: tveeprom 4-0050: audio processor is MSP4448 (idx 27)
Jul 22 12:21:28 mythtv kernel: tveeprom 4-0050: decoder processor is SAA7115 (idx 19)
Jul 22 12:21:28 mythtv kernel: tveeprom 4-0050: has no radio, has IR remote
Jul 22 12:21:29 mythtv kernel: ivtv2: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
Jul 22 12:21:29 mythtv kernel: ivtv2: Encoder revision: 0x02050032
Jul 22 12:21:29 mythtv kernel: ivtv2: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
Jul 22 12:21:29 mythtv kernel: ivtv2: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
Jul 22 12:21:29 mythtv kernel: ivtv2: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
Jul 22 12:21:29 mythtv kernel: ivtv2: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
Jul 22 12:21:29 mythtv kernel: tuner 4-0061: type set to 50 (TCL 2002N)
Jul 22 12:21:29 mythtv kernel: ivtv2: Initialized WinTV PVR 250, card #2
Jul 22 12:21:29 mythtv kernel: ivtv: ==================== END INIT IVTV ====================
Jul 22 12:21:29 mythtv kernel: cx2388x v4l2 driver version 0.0.5 loaded
Jul 22 12:21:29 mythtv kernel: lirc_i2c: chip found @ 0x18 (Hauppauge IR)
Jul 22 12:21:29 mythtv kernel: ivtv0: i2c attach to card #0 ok [client=Hauppauge IR, addr=18]
Jul 22 12:21:29 mythtv kernel: lirc_dev: lirc_register_plugin: sample_rate: 10
Jul 22 12:21:30 mythtv kernel: lirc_i2c: chip found @ 0x71 (Hauppauge IR (PVR150))
Jul 22 12:21:30 mythtv kernel: ivtv1: i2c attach to card #1 ok [client=Hauppauge IR (PVR150), addr=71]
Jul 22 12:21:30 mythtv kernel: lirc_dev: lirc_register_plugin: sample_rate: 10
Jul 22 12:21:30 mythtv kernel: lirc_i2c: chip found @ 0x18 (Hauppauge IR)
Jul 22 12:21:30 mythtv kernel: ivtv2: i2c attach to card #2 ok [client=Hauppauge IR, addr=18]
Jul 22 12:21:30 mythtv kernel: lirc_dev: lirc_register_plugin: sample_rate: 10
Jul 22 12:21:30 mythtv lircd-0.8.0pre4-pvr150[3656]: lircd(all) ready
.
.
.
Note that lirc_i2c only recognizes the ir receiver chip in each card, which is expected, since we need lirc_pvr150 to recognize the ir transmitter. Also as expected, ir transmit won't work. I'm only showing this to demonstrate that the ir receiver and remote are working; that haup-ir-blaster.bin wasn't loaded; and irsend doesn't work under this configuration.
Code:
root@mythtv:~# irw
00000000000017a5 00 OK grayHauppauge
root@mythtv:~# irsend -d /dev/lirc1 SEND_ONCE blaster 1
irsend: could not connect to socket
irsend: Connection refused
root@mythtv:~#
Now, just for fun let's modprobe for lirc_pvr150:
Code:
root@mythtv:~# modprobe lirc_dev debug=1 && modprobe lirc_pvr150 debug=1
root@mythtv:~# tail /var/log/syslog
Jul 22 12:40:44 mythtv kernel: kobject_register failed for i2c ir driver (-17)
Jul 22 12:40:44 mythtv kernel: [kobject_register+54/96] kobject_register+0x36/0x60
Jul 22 12:40:44 mythtv kernel: [bus_add_driver+64/160] bus_add_driver+0x40/0xa0
Jul 22 12:40:44 mythtv kernel: [driver_register+66/80] driver_register+0x42/0x50
Jul 22 12:40:44 mythtv kernel: [pg0+409085318/1067881472] i2c_add_driver+0x46/0xc0 [i2c_core]
Jul 22 12:40:44 mythtv kernel: [pg0+411540778/1067881472] init_module+0x5a/0x60 [lirc_pvr150]
Jul 22 12:40:44 mythtv kernel: [sys_init_module+338/528] sys_init_module+0x152/0x210
Jul 22 12:40:44 mythtv kernel: [syscall_call+7/11] syscall_call+0x7/0xb
We've seen this error before, and I am certain it's caused by the module lirc_i2c being loaded when lirc_pvr150 is modprobed.
One question I don't know the answer to is whether lirc_i2c is intended to be replaced by lirc_pvr150, and if not, how to make them coexist without causing this error?Alternate /etc/lirc/hardware.conf replacing lirc_i2c with lirc_pvr150Now let's go through the same exercise, except now we replace lirc_i2c with lirc_pvr150 and reboot.
/etc/lirc/hardware.confCode:
#MODULES="lirc_dev lirc_i2c"
MODULES="lirc_dev lirc_pvr150"
/var/log/syslog:
Code:
.
.
.
Jul 22 13:06:12 mythtv kernel: lirc_dev: IR Remote Control driver registered, at major 61
Jul 22 13:06:12 mythtv kernel: ivtv: ==================== START INIT IVTV ====================
Jul 22 13:06:12 mythtv kernel: ivtv: version 0.4.4 (tagged release) loading
Jul 22 13:06:12 mythtv kernel: ivtv: Linux version: 2.6.15-chw-2 SMP preempt 586 gcc-3.3
Jul 22 13:06:12 mythtv kernel: ivtv: In case of problems please include the debug info between
Jul 22 13:06:12 mythtv kernel: ivtv: the START INIT IVTV and END INIT IVTV lines, along with
Jul 22 13:06:12 mythtv kernel: ivtv: any module options, when mailing the ivtv-users mailinglist.
Jul 22 13:06:12 mythtv kernel: ivtv0: Autodetected WinTV PVR 250 card (cx23416 based)
Jul 22 13:06:12 mythtv kernel: ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 16
Jul 22 13:06:12 mythtv kernel: ACPI: PCI Interrupt 0000:02:06.0[A] -> Link [LNKA] -> GSI 16 (level, high) -> IRQ 19
Jul 22 13:06:12 mythtv kernel: ivtv0: i2c attach to card #0 ok [client=tveeprom, addr=50]
Jul 22 13:06:12 mythtv kernel: tuner 2-0061: chip found @ 0xc2 (ivtv i2c driver #0)
Jul 22 13:06:12 mythtv kernel: ivtv0: i2c attach to card #0 ok [client=(tuner unset), addr=61]
Jul 22 13:06:12 mythtv kernel: saa7115 2-0021: saa7115 found @ 0x42 (ivtv i2c driver #0)
Jul 22 13:06:12 mythtv kernel: ivtv0: i2c attach to card #0 ok [client=saa7115, addr=21]
Jul 22 13:06:12 mythtv kernel: msp3400 2-0040: chip=MSP3445G-B8 +nicam +simple +simpler +radio mode=simpler
Jul 22 13:06:12 mythtv kernel: msp3400 2-0040: msp34xxg daemon started
Jul 22 13:06:12 mythtv kernel: ivtv0: i2c attach to card #0 ok [client=MSP3445G-B8, addr=40]
Jul 22 13:06:12 mythtv kernel: tveeprom 2-0050: Hauppauge model 32062, rev B185, serial# 2869081
Jul 22 13:06:12 mythtv kernel: tveeprom 2-0050: tuner model is TCL 2002N 6A (idx 85, type 50)
Jul 22 13:06:12 mythtv kernel: tveeprom 2-0050: TV standards NTSC(M) (eeprom 0x08)
Jul 22 13:06:12 mythtv kernel: tveeprom 2-0050: audio processor is MSP3445 (idx 12)
Jul 22 13:06:12 mythtv kernel: tveeprom 2-0050: decoder processor is SAA7115 (idx 19)
Jul 22 13:06:12 mythtv kernel: tveeprom 2-0050: has no radio, has IR remote
Jul 22 13:06:13 mythtv kernel: ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
Jul 22 13:06:13 mythtv kernel: ivtv0: Encoder revision: 0x02050032
Jul 22 13:06:13 mythtv kernel: ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
Jul 22 13:06:13 mythtv kernel: ivtv0: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
Jul 22 13:06:13 mythtv kernel: ivtv0: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
Jul 22 13:06:13 mythtv kernel: ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
Jul 22 13:06:13 mythtv kernel: tuner 2-0061: type set to 50 (TCL 2002N)
Jul 22 13:06:14 mythtv kernel: ivtv0: Initialized WinTV PVR 250, card #0
Jul 22 13:06:14 mythtv kernel: ivtv: ====================== NEXT CARD ======================
Jul 22 13:06:14 mythtv kernel: ivtv1: Autodetected WinTV PVR 150 card (cx23416 based)
Jul 22 13:06:14 mythtv kernel: ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 19
Jul 22 13:06:14 mythtv kernel: ACPI: PCI Interrupt 0000:02:07.0[A] -> Link [LNKD] -> GSI 19 (level, high) -> IRQ 20
Jul 22 13:06:14 mythtv kernel: ivtv1: i2c attach to card #1 ok [client=tveeprom, addr=50]
Jul 22 13:06:14 mythtv kernel: tuner 3-0061: chip found @ 0xc2 (ivtv i2c driver #1)
Jul 22 13:06:14 mythtv kernel: ivtv1: i2c attach to card #1 ok [client=(tuner unset), addr=61]
Jul 22 13:06:14 mythtv kernel: cx25840 3-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #1)
Jul 22 13:06:18 mythtv kernel: cx25840 3-0044: loaded v4l-cx25840.fw firmware (14264 bytes)
Jul 22 13:06:18 mythtv kernel: ivtv1: i2c attach to card #1 ok [client=cx25840, addr=44]
Jul 22 13:06:18 mythtv kernel: wm8775 3-001b: chip found @ 0x36 (ivtv i2c driver #1)
Jul 22 13:06:18 mythtv kernel: ivtv1: i2c attach to card #1 ok [client=wm8775, addr=1b]
Jul 22 13:06:18 mythtv kernel: tveeprom 3-0050: Hauppauge model 26152, rev C599, serial# 8960893
Jul 22 13:06:18 mythtv kernel: tveeprom 3-0050: tuner model is TCL 2002N 5H (idx 99, type 50)
Jul 22 13:06:18 mythtv kernel: tveeprom 3-0050: TV standards NTSC(M) (eeprom 0x08)
Jul 22 13:06:18 mythtv kernel: tveeprom 3-0050: audio processor is CX25843 (idx 37)
Jul 22 13:06:18 mythtv kernel: tveeprom 3-0050: decoder processor is CX25843 (idx 30)
Jul 22 13:06:18 mythtv kernel: tveeprom 3-0050: has no radio, has IR remote
Jul 22 13:06:19 mythtv kernel: eth0: no IPv6 routers present
Jul 22 13:06:19 mythtv kernel: ivtv1: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
Jul 22 13:06:19 mythtv kernel: ivtv1: Encoder revision: 0x02050032
Jul 22 13:06:19 mythtv kernel: ivtv1: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
Jul 22 13:06:19 mythtv kernel: ivtv1: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
Jul 22 13:06:19 mythtv kernel: ivtv1: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
Jul 22 13:06:19 mythtv kernel: ivtv1: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
Jul 22 13:06:19 mythtv kernel: tuner 3-0061: type set to 50 (TCL 2002N)
Jul 22 13:06:19 mythtv kernel: ivtv1: Initialized WinTV PVR 150, card #1
Jul 22 13:06:19 mythtv kernel: ivtv: ====================== NEXT CARD ======================
Jul 22 13:06:19 mythtv kernel: ivtv2: Autodetected WinTV PVR 250 card (cx23416 based)
Jul 22 13:06:19 mythtv kernel: ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 18
Jul 22 13:06:19 mythtv kernel: ACPI: PCI Interrupt 0000:02:08.0[A] -> Link [LNKC] -> GSI 18 (level, high) -> IRQ 21
Jul 22 13:06:19 mythtv kernel: ivtv2: i2c attach to card #2 ok [client=tveeprom, addr=50]
Jul 22 13:06:19 mythtv kernel: tuner 4-0061: chip found @ 0xc2 (ivtv i2c driver #2)
Jul 22 13:06:19 mythtv kernel: ivtv2: i2c attach to card #2 ok [client=(tuner unset), addr=61]
Jul 22 13:06:20 mythtv kernel: saa7115 4-0021: saa7115 found @ 0x42 (ivtv i2c driver #2)
Jul 22 13:06:20 mythtv kernel: ivtv2: i2c attach to card #2 ok [client=saa7115, addr=21]
Jul 22 13:06:20 mythtv kernel: msp3400 4-0040: chip=MSP4448G-A2 +nicam +simple +simpler +radio mode=simpler
Jul 22 13:06:20 mythtv kernel: msp3400 4-0040: msp34xxg daemon started
Jul 22 13:06:20 mythtv kernel: ivtv2: i2c attach to card #2 ok [client=MSP4448G-A2, addr=40]
Jul 22 13:06:20 mythtv kernel: tveeprom 4-0050: Hauppauge model 32032, rev B185, serial# 2835936
Jul 22 13:06:20 mythtv kernel: tveeprom 4-0050: tuner model is TCL 2002N 6A (idx 85, type 50)
Jul 22 13:06:20 mythtv kernel: tveeprom 4-0050: TV standards NTSC(M) (eeprom 0x08)
Jul 22 13:06:20 mythtv kernel: tveeprom 4-0050: audio processor is MSP4448 (idx 27)
Jul 22 13:06:20 mythtv kernel: tveeprom 4-0050: decoder processor is SAA7115 (idx 19)
Jul 22 13:06:20 mythtv kernel: tveeprom 4-0050: has no radio, has IR remote
Jul 22 13:06:21 mythtv kernel: ivtv2: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
Jul 22 13:06:21 mythtv kernel: ivtv2: Encoder revision: 0x02050032
Jul 22 13:06:21 mythtv kernel: ivtv2: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
Jul 22 13:06:21 mythtv kernel: ivtv2: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
Jul 22 13:06:21 mythtv kernel: ivtv2: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
Jul 22 13:06:21 mythtv kernel: ivtv2: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
Jul 22 13:06:21 mythtv kernel: tuner 4-0061: type set to 50 (TCL 2002N)
Jul 22 13:06:21 mythtv kernel: ivtv2: Initialized WinTV PVR 250, card #2
Jul 22 13:06:21 mythtv kernel: ivtv: ==================== END INIT IVTV ====================
Jul 22 13:06:21 mythtv kernel: lirc_pvr150: ivtv i2c driver #0: no devices found
Jul 22 13:06:21 mythtv kernel: lirc_pvr150: chip found with RX and TX
Jul 22 13:06:21 mythtv kernel: ivtv1: i2c attach to card #1 ok [client=Hauppauge PVR150 IR RX, addr=71]
Jul 22 13:06:21 mythtv kernel: ivtv1: i2c attach to card #1 ok [client=Hauppauge PVR150 IR TX, addr=70]
Jul 22 13:06:21 mythtv kernel: lirc_dev: lirc_register_plugin: sample_rate: 0
Jul 22 13:06:22 mythtv kernel: lirc_pvr150: firmware of size 209327 loaded
Jul 22 13:06:22 mythtv kernel: lirc_pvr150: 575 codesets loaded
Jul 22 13:06:22 mythtv kernel: lirc_pvr150: Hauppauge PVR-150 IR blaster: firmware version 1.3.0
Jul 22 13:06:22 mythtv kernel: lirc_pvr150: ivtv i2c driver #2: no devices found
Jul 22 13:06:22 mythtv lircd-0.8.0pre4-pvr150[3629]: lircd(all) ready
.
.
.
Jul 22 13:06:57 mythtv lircd-0.8.0pre4-pvr150[3629]: accepted new client on /dev/lircd
Jul 22 13:06:57 mythtv lircd-0.8.0pre4-pvr150[3629]: could not open /dev/lirc1
Jul 22 13:06:57 mythtv lircd-0.8.0pre4-pvr150[3629]: default_init(): No such device
Jul 22 13:06:57 mythtv lircd-0.8.0pre4-pvr150[3629]: caught signal
It
appears that lirc_pvr150s loads up nicely, finds the ir receiver and transmitter chip on the PVR-150, finds and loads the haup-ir-blaster.bin firmware. While it looks great, now nothing works. I am fairly certain lirc dies (the last 4 lines above) at the moment mythfrontend starts up and connects as a client to lirc. Let's restart lirc and do a few more tests:
Code:
root@mythtv:~# ps ax | grep lir
3599 ? S 0:00 [lirc_pvr150]
#lirc died when mythfrontend initialized, let's restart it for a receive test
root@mythtv:~# /etc/init.d/lirc restart
Stopping lirc daemon: lircmd lircd.
Starting lirc daemon: lircd.
root@mythtv:~# ps ax | grep lir
3599 ? S 0:00 [lirc_pvr150]
5912 ? Ss 0:00 /usr/sbin/lircd --driver=default --device=/dev/lirc1
5914 ttyp0 R+ 0:00 grep lir
# lirc is running try to receive a command from the remote
root@mythtv:~# irw
root@mythtv:~# ps ax | grep lir
3599 ? S 0:00 [lirc_pvr150]
5917 ttyp0 R+ 0:00 grep lir
# irw exits back to the shell, lirc died again, restart it again for a transit test
root@mythtv:~# /etc/init.d/lirc restart
Stopping lirc daemon: lircmd lircd.
Starting lirc daemon: lircd.
root@mythtv:~# ps ax | grep lir
3599 ? S 0:00 [lirc_pvr150]
5933 ? Ss 0:00 /usr/sbin/lircd --driver=default --device=/dev/lirc1
5935 ttyp0 S+ 0:00 grep lir
root@mythtv:~# irsend -d /dev/lirc1 SEND_ONCE blaster 1
irsend: could not connect to socket
irsend: Connection refused
root@mythtv:~# ps ax | grep lir
3599 ? S 0:00 [lirc_pvr150]
5933 ? Ss 0:00 /usr/sbin/lircd --driver=default --device=/dev/lirc1
5938 ttyp0 R+ 0:00 grep lir
root@mythtv:~#
# interestingly, irsend did not crash lirc
To summarize:
The haup-ir-blaster.bin firmware only loads when module lirc_pvr150 is loaded. If module lirc_i2c is loaded, then loading lirc_pvr150 will cause the "kobject_register failed" errors. And when module lirc_pvr150 is loaded and initializes, lirc crashes when an ir receiving client attaches to it, and also, irsend and the irblaster still does not work.
I'm fresh out of skills and ideas at this point. Many people have been able to get the PVR-150 IR Blaster working so hopefully I am just missing some small detail. Any suggestions from where to go from here would be greatly appreciated.