diff options
| author | Kang Kang <kk1987@gmail.com> | 2026-09-13 09:37:39 +0000 |
|---|---|---|
| committer | Vladimir Kondratyev <wulf@FreeBSD.org> | 2026-09-13 09:37:39 +0000 |
| commit | 11ad849f1c50b2469ff13ee74e2ab0f5bcfa6cc9 (patch) | |
| tree | 315bcd6067c645f610dace265f52072d806eb967 /decoder/build/linux/(developers-only) | |
| parent | 5de4183c0db0ca7802d84a632c4c91cddaf6b595 (diff) | |
Chromebook keyboards driven by the ChromeOS EC emit the top-row action
keys as scancode set 1 codes 0xE0 0x11 - 0xE0 0x1E (see the codeset 1
comments on the SCANCODE_* enum in chrome-ec
include/keyboard_8042_sharedlib.h). The e0 half of the
evdev_scancode2key() translation table leaves eleven of those at NONE,
so on FreeBSD those keys emit no evdev event at all and userspace
remappers such as keyd have nothing to bind to:
e0 11 fullscreen KEY_ZOOM
e0 12 overview KEY_SCALE
e0 13 screenshot KEY_SYSRQ
e0 14 brightness down KEY_BRIGHTNESSDOWN
e0 15 brightness up KEY_BRIGHTNESSUP
e0 16 privacy screen toggle KEY_PRIVACY_SCREEN_TOGGLE
e0 17 kbd backlight down KEY_KBDILLUMDOWN
e0 18 kbd backlight up KEY_KBDILLUMUP
e0 1a play/pause KEY_PLAYPAUSE
e0 1b mic mute KEY_MICMUTE
e0 1e kbd backlight toggle KEY_KBDILLUMTOGGLE
Fill those in. Only entries that were previously NONE are touched: the
EC's remaining top-row codes already have mappings here (e0 10 prev
track, e0 19 next track, e0 20 mute, e0 2e / e0 30 volume, e0 67 refresh,
e0 69 forward, e0 6a back), as do e0 1c keypad enter and e0 1d right
control, and none of them change.
Signed-off-by: Kang Kang <kk1987@gmail.com>
Tested on: Lenovo ThinkPad C14 Chromebook (Google primus, ChromeOS EC)
Reviewed by: wulf
MFC after: 2 weeks
Diffstat (limited to 'decoder/build/linux/(developers-only)')
0 files changed, 0 insertions, 0 deletions
