Changing hal-info to have X friendly key symbols
martin.pitt at ubuntu.com
Wed Feb 4 04:48:43 PST 2009
I'm currently at an Ubuntu team sprint with lots of laptops around,
and one of my goals is to fix hotkeys on everyone's laptop. While
doing that, we are keeping some notes about debugging howto .
Sometimes hal-info assigns key symbols which are > 255; However, X.org
currently cannot use those , and fixing this requires a protocol
change. After 25 years of X11, X12 won't happen anytime soon, so we
shouldn't hold our breath for it.
hal-info currently has some key codes which are affected by this; for
<append key="input.keymap.data" type="strlist">e00e:dvd</append> <!-- dvd -->
<append key="input.keymap.data" type="strlist">e002:displaytoggle</append> <!-- Fn+F4 CRT/LCD -->
So I propose that we change those mappings to a key symbol < 256, so
that they will actually be useful. In particular,
displaytoggle -> switchvideomode
dvd -> media
This doesn't affect a lot of current keybindings, but I still want to
ask for consensus to do this. If nobody complains in the next week,
I'll just commit it.
P.S. My command for finding affected keycodes:
grep -r 'append.*input.keymap.data' . | sed -r 's/.*:([[:alnum:]]+).*/key_\1/' | sort -u | tr '[:lower:]' '[:upper:]' | while read; do grep "$REPLY.*0x" /usr/include/linux/input.h; done
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/hal/attachments/20090204/3dd7da0c/attachment.pgp
More information about the hal