]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb/keyboard: fix KP_Enter on Clevo PA70ES
authorMatheus Afonso Martins Moreira <matheus@matheusmoreira.com>
Sat, 9 May 2026 11:53:01 +0000 (08:53 -0300)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 9 May 2026 17:08:27 +0000 (18:08 +0100)
The ITE keyboard controller firmware (version 0xAB83) is shared
between the Clevo PA70ES and the X+ piccolo series.

The piccolo's hwdb rule matches by input device ID
(evdev:input:b0011v0001p0001eAB83*) and remaps scan code 0x9c
(KP_Enter) to Enter, since the piccolo has no numpad and its
main Enter key sends the wrong scan code.

The Clevo PA70ES has a real numpad. The piccolo rule matches it
because both laptops use the same ITE controller firmware, which
breaks KP_Enter on the PA70ES.

Add a DMI-specific override that restores KEY_KPENTER for 0x9c
on the PA70ES.

The piccolo rule should ideally be narrowed to use DMI matching
instead of input device ID to avoid catching other laptops with
the same ITE controller firmware.

hwdb.d/60-keyboard.hwdb

index ebc08560fe9e86230f185ad27e8829bee44a3a1f..23023740901acbf08f9cde6325c64f89f3f7ec31 100644 (file)
@@ -344,6 +344,15 @@ evdev:atkbd:dmi:bvn*:bvr*:bd*:svn*BenQ*:pn*Joybook*R22*:*
 # Clevo
 ###########################################################
 
+# Clevo PA70ES (Avell C73)
+# The ITE keyboard controller firmware (version 0xAB83) is shared with
+# the X+ piccolo. The piccolo rule (below) matches by input device ID
+# and remaps KP_Enter to Enter since the piccolo has no numpad and its
+# main Enter sends the wrong scan code. The PA70ES has a real numpad,
+# so the remap breaks KP_Enter. This restores the correct mapping.
+evdev:atkbd:dmi:bvn*:bvr*:bd*:svnNotebook:pnPA70ES:*
+ KEYBOARD_KEY_9c=kpenter
+
 evdev:atkbd:dmi:bvn*:bvr*:bd*:svnNotebook:pnW65_67SZ:*
  KEYBOARD_KEY_a0=!mute
  KEYBOARD_KEY_a2=!playpause