hwdb: add XKB_FIXED_MODEL to the keyboard hwdb

System Internals / systemd - Sebastian Wick [sebastianwick.net] - 5 November 2019 09:08 EST

Chromebook keyboards have a top row which generates f1-f10 key codes but the keys have media symbols printed on them. A simple scan code to key code mapping to the correct media keys makes the f1-f10 inaccessible. To properly use the keyboard a custom key code to symbol mapping in xbk is required (a variant of the chromebook xkb model is already upstream). Other devices have similar problems. This commit makes it possible to specify which xkb model should be used for a specific device by setting XKB_FIXED_MODEL.

d7d31692bf hwdb: add XKB_FIXED_MODEL to the keyboard hwdb
hwdb.d/60-keyboard.hwdb | 33 +++++++++++++++++----------------
hwdb.d/parse_hwdb.py | 1 +
2 files changed, 18 insertions(+), 16 deletions(-)

Upstream: github.com

  • Share