Исходные данные
Bus 004 Device 002: ID 0471:0815 Philips eHome Infrared Receiver
При подключении видим примерно такое
[15654.553226] CE: hpet increased min_delta_ns to 30169 nsec
[18007.357184] usb 4-1: USB disconnect, device number 2
[18010.976050] usb 4-1: new full-speed USB device number 3 using ohci_hcd
[18011.151144] Registered IR keymap rc-rc6-mce
[18011.151253] input: Media Center Ed. eHome Infrared Remote Transceiver (0471:0815) as /devices/pci0000:00/0000:00:13.2/usb4/4-1/4-1:1.0/rc/rc1/input13
[18011.151358] rc1: Media Center Ed. eHome Infrared Remote Transceiver (0471:0815) as /devices/pci0000:00/0000:00:13.2/usb4/4-1/4-1:1.0/rc/rc1
[18011.151535] input: MCE IR Keyboard/Mouse (mceusb) as /devices/virtual/input/input14
[18011.151687] rc rc1: lirc_dev: driver ir-lirc-codec (mceusb) registered at minor = 0
[18011.372073] mceusb 4-1:1.0: Registered Philips eHome Infrared Transceiver with mce emulator interface version 1
[18011.372080] mceusb 4-1:1.0: 2 tx ports (0x0 cabled) and 2 rx sensors (0x1 active)
/lib/udev/findkeyboards
AT keyboard: input/event4
Unknown type: input/event12
Unknown type: input/mouse2
sudo ir-keytable -d /dev/input/event9 -t
Testing events. Please, press CTRL-C to abort.
1361646333.781191: event MSC: scancode = 800f0416
1361646333.781207: event key down: KEY_PLAY (0x00cf)
1361646333.781211: event sync
1361646333.887822: event MSC: scancode = 800f0416
1361646333.887830: event sync
1361646334.021203: event MSC: scancode = 800f0416
1361646334.021209: event sync
1361646334.270796: event key up: KEY_PLAY (0x00cf)
1361646334.270800: event sync
Почему не соответствует input/event12 и /dev/input/event9 не знаю, но а event12 тишина.
Значит ir-keytable -d /dev/input/event9 -t реагирует на все кнопки пульта. Значит система видит пульт. На некоторые кнопки даже реагирует.
scancode = 800f0465 KEY_POWER2 (0x0164) #TV_Power
scancode = 800f040c KEY_SLEEP (0x008e) #PC_Power
scancode = 800f0419 KEY_STOP (0x0080) #Stop
scancode = 800f0417 KEY_RECORD (0x00a7) #Record
scancode = 800f0418 KEY_PAUSE (0x0077) #Pause
scancode = 800f0415 KEY_REWIND (0x00a8) #Rew
scancode = 800f0416 KEY_PLAY (0x00cf) #Play
scancode = 800f0414 KEY_FASTFORWARD (0x00d0) #Fwd
scancode = 800f041b KEY_PREVIOUS (0x019c) #Replay
scancode = 800f041a KEY_NEXT (0x0197) #Skip
scancode = 800f0423 KEY_EXIT (0x00ae) #Back
scancode = 800f040f KEY_INFO (0x0166) #More
+scancode = 800f041e KEY_UP (0x0067) #Up
+scancode = 800f0420 KEY_LEFT (0x0069) #Left
scancode = 800f0422 KEY_OK (0x0160) #Ok
+scancode = 800f0421 KEY_RIGHT (0x006a) #Right
+scancode = 800f041f KEY_DOWN (0x006c) #Down
+scancode = 800f0410 KEY_VOLUMEUP (0x0073) #Vol_+ =XF86Audio...
+scancode = 800f0411 KEY_VOLUMEDOWN (0x0072) #Vol_- =XF86Audio...
+scancode = 800f040d KEY_MEDIA (0x00e2) #Start = XF86AudioMedia
scancode = 800f0412 KEY_CHANNELUP (0x0192) #CH/PG_+
scancode = 800f0413 KEY_CHANNELDOWN (0x0193) #CH/PG_-
+scancode = 800f040e KEY_MUTE (0x0071) #Mute = XF86AudioMute
scancode = 800f0448 KEY_PVR (0x016e) #Recorded_TV
scancode = 800f0426 KEY_EPG (0x016d) #Guide
scancode = 800f0425 KEY_TUNER (0x0182) #Live_TV
scancode = 800f0424 KEY_DVD (0x0185) #DVD_Menu
scancode = 800f0401 KEY_NUMERIC_1 (0x0201) #1
scancode = 800f0402 KEY_NUMERIC_2 (0x0202) #2
scancode = 800f0403 KEY_NUMERIC_3 (0x0203) #3
scancode = 800f0404 KEY_NUMERIC_4 (0x0204) #4
scancode = 800f0405 KEY_NUMERIC_5 (0x0205) #5
scancode = 800f0406 KEY_NUMERIC_6 (0x0206) #6
scancode = 800f0407 KEY_NUMERIC_7 (0x0207) #7
scancode = 800f0408 KEY_NUMERIC_8 (0x0208) #8
scancode = 800f0409 KEY_NUMERIC_9 (0x0209) #9
scancode = 800f041d KEY_NUMERIC_STAR (0x020a) #*
scancode = 800f0400 KEY_NUMERIC_0 (0x0200) #0
scancode = 800f041c KEY_NUMERIC_POUND (0x020b) ##
scancode = 800f040a KEY_DELETE (0x006f) #Clear
+scancode = 800f040b KEY_ENTER (0x001c) #Enter
+ отмечены кнопки которые работают "изкоробки". В комментариях надписи кнопок на пульте.
Задача что повесить на пульт как можно больше кнопок типа XF86AudioStop XF86AudioPlay...
вот, в системе ресивер пульта висит 2 устройствами
dmesg | grep input
[ 0.599701] input: Power Button as /devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input0
[ 0.599778] input: Sleep Button as /devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input1
[ 0.599846] input: Lid Switch as /devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input2
[ 0.601155] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
[ 0.943360] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input4
[ 1.805437] input: A4Tech USB Mouse as /devices/pci0000:00/0000:00:13.0/usb2/2-1/2-1:1.0/input/input5
[ 1.805633] a4tech 0003:09DA:000A.0001: input,hidraw0: USB HID v1.10 Mouse [A4Tech USB Mouse] on usb-0000:00:13.0-1/input0
[ 18.595184] input: Video Bus as /devices/LNXSYSTM:00/device:00/PNP0A08:00/device:1b/LNXVIDEO:00/input/input6
[ 19.191590] input: Dell WMI hotkeys as /devices/virtual/input/input7
[ 20.244125] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio1/input/input8
[ 20.696885] input: Media Center Ed. eHome Infrared Remote Transceiver (0471:0815) as /devices/pci0000:00/0000:00:13.2/usb4/4-1/4-1:1.0/rc/rc0/input9
[ 21.660968] input: HDA ATI SB Mic as /devices/pci0000:00/0000:00:14.2/sound/card0/input10
[ 21.661185] input: HDA ATI SB Headphone as /devices/pci0000:00/0000:00:14.2/sound/card0/input11
[ 21.992672] input: MCE IR Keyboard/Mouse (mceusb) as /devices/virtual/input/input12