Skip to content

Add keys from Linux kernel 2.5.26

This adds the keys that had been added in Linux 2.5.26: basically only the media keys from commit https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=722c0aaf35f7bc758895a22eb05403fe8a61ff9d ("Add key definitions for set-top boxes.").

The first commit contains the lines that I generated with scripts/keysym-generator.py, using tags from https://git.kernel.org/pub/scm/linux/kernel/git/history/history.git/ and using a modified keysym-generator.py script (so that it can handle the older tag names). In further commits I made manual adjustments to the keysyms.

For the following keysyms I am not sure whether they are mapped well in this MR:

  • KEY_POWER2: according to https://www.kernel.org/doc/html/v6.11/userspace-api/media/rc/rc-tables.html this is for keys labeled "TV ON/OFF / POWER", while KEY_POWER is for "SYSTEM POWER / COMPUTER POWER".
  • KEY_VENDOR: this appears to be for "keys with vendor logo". I guess this key is different from the existing XF86XK_VendorHome (which has the comment "Display vendor home web site").
  • KEY_PROGRAM: based on comments in Linux code this is for "Media Select Program Guide".
  • KEY_MHP: apparently this acronym means "Multimedia Home Platform"; but based on comments in Linux code this key is often labeled "Picture".
  • KEY_MODE: according to https://www.kernel.org/doc/html/v6.11/userspace-api/media/rc/rc-tables.html this is for keys labeled "MONO/STEREO" and has the function "Change sound mode". Unfortunately the name is quite generic and could be confused with any other "mode" switch.
  • KEY_PLAYER: again a very generic name.
  • KEY_AB: this looks to be for keys labeled "A/B" (like on the remote control of TeVii S650).

Merge request reports

Loading