seit Kernel 2.6.38 wurde das Modul lirc_i2c entfernt. Laut
Heise: "Den Treiber "lirc_i2c" haben die Entwickler entfernt, weil der Treiber ir-kbd-i2c die gleiche Funktion offeriert. ".
Leider funktioniert das bei mir natürlich wieder einmal nicht so einfach. Während das alte Modul ein eigenes Device erzeugte und so direkt angesprochen werden konnte, wird jetzt mit dem Modul ir-kbd-i2c über Event-Tables zugegriffen:
CODE:
~$ dmesg |tail -n 4
Registered IR keymap rc-rc5-tv
input: i2c IR (Hauppauge) as /devices/virtual/rc/rc0/input4
rc0: i2c IR (Hauppauge) as /devices/virtual/rc/rc0
ir-kbd-i2c: i2c IR (Hauppauge) detected at i2c-0/0-0018/ir0 [bt878 #0 [sw]]
~$ tail -n 10 /proc/bus/input/devices
N: Name="i2c IR (Hauppauge)"
P: Phys=i2c-0/0-0018/ir0
S: Sysfs=/devices/virtual/rc/rc0/input4
U: Uniq=
H: Handlers=kbd event4
B: PROP=0
B: EV=100013
B: KEY=afc302 2002805 0 0 0 4 18000 180 40000801 9e1680 0 800200 ffc
~$ sudo killall lircd
~$ sudo lircd --nodaemon -H devinput -d /dev/input/event4
lircd-0.8.7[17513]: config file contains no valid remote control definition
lircd-0.8.7[17513]: lircd(devinput) ready, using /var/run/lirc/lircd
lircd-0.8.7[17513]: accepted new client on /var/run/lirc/lircd
lircd-0.8.7[17513]: initializing '/dev/input/event4'
lircd-0.8.7[17513]: accepted new client on /var/run/lirc/lircd
Beim Start von irw in einem
weiteren Terminal wird ausgegeben:
CODE:
lircd-0.8.7[17513]: accepted new client on /var/run/lirc/lircd
lircd-0.8.7[17513]: removed client
~$ ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event4) with:
Driver ir-kbd-i2c, table rc-rc5-tv
Supported protocols: RC-5
Enabled protocols: RC-5
Extra capabilities: <access denied>
~$ sudo ir-keytable -a /etc/rc_maps.cfg
Old keytable cleared
Wrote 45 keycode(s) to driver
Protocols changed to other
trotzdem geht es bisher nicht.
CODE:
~$ sudo modprobe -r ir_kbd_i2c
~$ dmesg |tail -n 2
23:23:44 lircd-0.8.7[22371] error reading '/dev/input/event4'
23:23:44 lircd-0.8.7[22371] closing '/dev/input/event4'
~$ sudo modprobe ir_kbd_i2c
~$ dmesg |tail -n 4
23:20:52 kernel Registered IR keymap rc-rc5-tv
23:20:52 kernel input: i2c IR (Hauppauge) as /devices/virtual/rc/rc1/input5
23:20:52 kernel rc1: i2c IR (Hauppauge) as /devices/virtual/rc/rc1
23:20:52 kernel ir-kbd-i2c: i2c IR (Hauppauge) _
detected at i2c-0/0-0018/ir0 [bt878 #0 [sw]]