Getting key codes of remote controls handled in X just using evdev and not LIRC

Paul Menzel paulepanter at users.sourceforge.net
Sun Apr 4 09:54:24 PDT 2010


Dear X.org folks,


»In X you can use xev to find the keycodes and xmodmap to map them to
useful symbols. Unfortunately, some keys may generate keycodes that X
doesn't recognize at all and the device does not support keymaps, or
this would be easy to fix.« [1]

Do you know if there exist a solution already for this problem? Most of
the keys of the remote control (for example play, pause) do not generate
an event in `xev` on my system.

I read [2] and searched the Web for more information but did not find a
solution not involving LIRC.

At the and you will find the generated key codes by evdev.(?) Do you
know of a way to just create a keymap(?) file to map those key codes to
X events(?)?

I am sorry to ask you, but the input system (scan codes, key codes, X
mapping(?)) is still very complicated for me to understand.


Thanks,

Paul


[1] http://www.linuxtv.org/wiki/index.php/TerraTec_Cinergy_DT_USB_XS_Diversity#Using_evdev
[2] http://lwn.net/Articles/364515/


$ /lib/udev/keymap -i /dev/input/event11
Press ESC to finish
scan code: 0x00   key code: up
scan code: 0x00   key code: right
scan code: 0x00   key code: down
scan code: 0x00   key code: left
scan code: 0x00   key code: ok
scan code: 0x00   key code: tv
scan code: 0x00   key code: dvd
scan code: 0x00   key code: video
scan code: 0x00   key code: audio
scan code: 0x00   key code: screen
scan code: 0x00   key code: menu
scan code: 0x00   key code: subtitle
scan code: 0x00   key code: text
scan code: 0x00   key code: delete
scan code: 0x00   key code: 1
scan code: 0x00   key code: 2
scan code: 0x00   key code: 3
scan code: 0x00   key code: home
scan code: 0x00   key code: 4
scan code: 0x00   key code: 5
scan code: 0x00   key code: 6
scan code: 0x00   key code: 7
scan code: 0x00   key code: 8
scan code: 0x00   key code: 9
scan code: 0x00   key code: refresh
scan code: 0x00   key code: video
scan code: 0x00   key code: 0
scan code: 0x00   key code: epg
scan code: 0x00   key code: info
scan code: 0x00   key code: back
scan code: 0x00   key code: channelup
scan code: 0x00   key code: channeldown
scan code: 0x00   key code: play
scan code: 0x00   key code: mute
scan code: 0x00   key code: volumeup
scan code: 0x00   key code: volumedown
scan code: 0x00   key code: red
scan code: 0x00   key code: green
scan code: 0x00   key code: yellow
scan code: 0x00   key code: blue
scan code: 0x00   key code: record
scan code: 0x00   key code: stop
scan code: 0x00   key code: pause
scan code: 0x00   key code: previous
scan code: 0x00   key code: rewind
scan code: 0x00   key code: fastforward
scan code: 0x00   key code: next
scan code: 0x00   key code: pause
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.x.org/archives/xorg/attachments/20100404/5b92a173/attachment.pgp>


More information about the xorg mailing list