[mythtv-users] how to get Hauppauge gray remote (PVR-250) working under kernel 2.6.38

Mark Lord mythtv at rtr.ca
Mon Mar 28 23:18:51 UTC 2011


On 11-03-28 04:21 PM, Jarod Wilson wrote:
> On Mar 26, 2011, at 3:49 PM, Audio Phile wrote:
> 
>> I have an old Hauppauge PVR-250 with a "gray" remote.  Been working just fine using both the lirc_dev and lirc_i2c modules as described on lirc's FAQ page.  Since 2.6.38-rc2, there is no more lirc_i2c module.  Upon googling around, I found this thread (http://www.gossamer-threads.com/lists/mythtv/users/470613?do=post_view_threaded#470613) which teaches how the ir-kbd-i2c module can be used here.
>>
>> I can't seems to get it right though.
>>
>> # modprobe ir-kbd-i2c
>>
>> # dmesg |tail -n 4
>> Registered IR keymap rc-rc5-tv
>> input: i2c IR (Hauppauge) as /devices/virtual/rc/rc0/input6
>> rc0: i2c IR (Hauppauge) as /devices/virtual/rc/rc0
>> ir-kbd-i2c: i2c IR (Hauppauge) detected at i2c-1/1-0018/ir0 [ivtv i2c driver #0]
>>
>> # tail -n 10 /proc/bus/input/devices
>> N: Name="i2c IR (Hauppauge)"
>> P: Phys=i2c-1/1-0018/ir0
>> S: Sysfs=/devices/virtual/rc/rc0/input6
>> U: Uniq=
>> H: Handlers=kbd event6
>> B: PROP=0
>> B: EV=100013
>> B: KEY=c0010 201080400000000 0 30200a000 18000004801 9e000000000000 ffc
>> B: MSC=10
>>
>> # lircd -H devinput -d /dev/input/event6
>>
>> The author said to use the lircd.conf.devinput config file provided with lirc, which I copied over my /etc/lirc/lircd.conf but this makes no sense to me.  That is the specific file for my remote.
> 
> Not anymore. With the input layer, the mapping is done in the kernel,
> and standardized key codes are passed along from there. You may need
> to load a different keymap though, there are a few minor ir-kbd-i2c
> issues w/the hauppauge remotes that weren't sorted out until after
> 2.6.38 was released.
> 
> See here for reference:
> http://www.gossamer-threads.com/lists/mythtv/users/475752


A big part of the problem here is the in-kernel compatibility breakage
that was introduced in 2.6.36.  Tools that worked before (lsinput, inputkbd)
no longer work with 2.6.36 and beyond, and patched versions of those usually
won't work with 2.6.35 and earlier.  A real ugly mess that somebody snuck in.

I've hacked my input-utils to work with both old and new kernels,
and have my PVR-250 remote working again here now.
Getting it working really well though, requires disabling
the b0rked IR repeat logic in (kernel) ir-keyboard.c
and replacing it with something saner that doesn't fight
the input layer's repeat logic at the same time.  :)

Cheers
-ml


More information about the mythtv-users mailing list