git: d34baf1b5ca0 - main - evdev: Map the HP mic mute and programmable keys
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 23 Nov 2026 09:04:40 UTC
The branch main has been updated by olivier:
URL: https://cgit.FreeBSD.org/src/commit/?id=d34baf1b5ca05611515db76370b96abbea3988a9
commit d34baf1b5ca05611515db76370b96abbea3988a9
Author: Olivier Cochard <olivier@FreeBSD.org>
AuthorDate: 2026-11-17 13:35:24 +0000
Commit: Olivier Cochard <olivier@FreeBSD.org>
CommitDate: 2026-11-23 08:58:06 +0000
evdev: Map the HP mic mute and programmable keys
HP laptops send these keys as AT scancodes 0xE0 0x01 and 0x68, which
evdev dropped. Map 0xE0 0x01 to KEY_MICMUTE, as systemd's hwdb does
for the HP business laptops (EliteBook, ProBook, ZBook, Elite
Dragonfly), and 0x68 to KEY_PROG1, as it does for the Elite
Dragonfly G2.
hwdb maps 0xE0 0x01 to Fn+Esc on the other HP models. The AT table is
not per machine, so Fn+Esc there now sends KEY_MICMUTE instead of
nothing.
Reviewed by: wulf
Approved by: wulf
Pull Request: https://ron-dev.freebsd.org/FreeBSD/src/pulls/122
---
sys/dev/evdev/evdev_utils.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/sys/dev/evdev/evdev_utils.c b/sys/dev/evdev/evdev_utils.c
index bd3039c3b825..07ea01f31432 100644
--- a/sys/dev/evdev/evdev_utils.c
+++ b/sys/dev/evdev/evdev_utils.c
@@ -148,14 +148,16 @@ static uint16_t evdev_at_set1_scancodes[] = {
/* 0x60 - 0x7f */
NONE, NONE, NONE, NONE,
NONE, NONE, NONE, NONE,
- NONE, NONE, NONE, NONE,
+ /* 0x68: HP programmable key */
+ KEY_PROG1, NONE, NONE, NONE,
NONE, NONE, NONE, NONE,
KEY_KATAKANAHIRAGANA, KEY_HANJA, KEY_HANGEUL, KEY_RO,
NONE, NONE, KEY_ZENKAKUHANKAKU, KEY_HIRAGANA,
KEY_KATAKANA, KEY_HENKAN, NONE, KEY_MUHENKAN,
NONE, KEY_YEN, KEY_KPCOMMA, NONE,
/* 0x00 - 0x1f. 0xE0 prefixed */
- NONE, NONE, NONE, NONE,
+ /* 0xE0 0x01: HP mic mute (Fn+Esc on other HP models) */
+ NONE, KEY_MICMUTE, NONE, NONE,
NONE, NONE, NONE, NONE,
NONE, NONE, NONE, NONE,
NONE, NONE, NONE, NONE,