Changing hal-info to have X friendly key symbols

Martin Pitt martin.pitt at
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,
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

  <append key="" type="strlist">e00e:dvd</append>      <!-- dvd -->

  <append key="" 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:

cd /some/where/hal-info/trunk/
grep -r 'append.*' . | 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                        |
Ubuntu Developer (  | Debian Developer  (
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : 

More information about the hal mailing list