Changing hal-info to have X friendly key symbols
Martin Pitt
martin.pitt at ubuntu.com
Wed Feb 4 04:48:43 PST 2009
Hello all,
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 [1].
Sometimes hal-info assigns key symbols which are > 255; However, X.org
currently cannot use those [2], 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
example:
./fdi/information/10freedesktop/30-keymap-hp.fdi:
<append key="input.keymap.data" type="strlist">e00e:dvd</append> <!-- dvd -->
./fdi/information/10freedesktop/30-keymap-misc.fdi:
<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.
Thanks,
Martin
[1] https://wiki.ubuntu.com/Hotkeys/Troubleshooting
[2] https://bugs.freedesktop.org/show_bug.cgi?id=11227
P.S. My command for finding affected keycodes:
cd /some/where/hal-info/trunk/
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
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/hal/attachments/20090204/3dd7da0c/attachment.pgp
More information about the hal
mailing list