mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] HID: asus: add support for the ASUS Zenbook A14 (UX3407QA) keyboard
@ 2026-11-27 16:40 Marcelo Niendicker Grando
  0 siblings, 0 replies; only message in thread
From: Marcelo Niendicker Grando @ 2026-11-27 16:40 UTC (permalink / raw)
  To: linux-input; +Cc: jikos, bentiss, linux-kernel, Marcelo Niendicker Grando

The internal I2C keyboard of the ASUS Zenbook A14 UX3407QA (Snapdragon X,
x1p42100) enumerates as 0B05:0220. It is currently driven by hid-generic,
which ignores the vendor report 0x5a (usage page 0xff31) the keyboard uses
for its Fn hotkeys, so Fn+F5/Fn+F6 (brightness) and the other Fn hotkeys
do nothing.

Bind it to hid-asus, which already maps these reports. Tested by binding
the device to hid-asus at runtime via new_id with driver_data 0: the
brightness hotkeys work and normal typing is unaffected.

Signed-off-by: Marcelo Niendicker Grando <marcelogrando@icloud.com>
---
Notes (not for the commit log):

- dmesg after binding (the handshake warning looks harmless, the keyboard
  works afterwards):
    asus 0018:0B05:0220.0002: input,hidraw1: I2C HID v1.00 Keyboard [hid-over-i2c 0B05:0220] on 0-0015
    asus 0018:0B05:0220.0002: Asus handshake 5a returned invalid response: 00 00 ... 00
- Report descriptor (132 bytes):
    05010906a1018502050719e029e71500250175019508810295017508810395057501
    050819012905910295017503910395067508150025650507190029dd8100c0050c09
    01a101850319002a3c021500263c02751095018100c00631ff0976a101855a19002a
    ff00150026ff0075089505810019002aff00150026ff007508953fb100c0
- The keyboard backlight answers the usual ASUS 0x5a feature reports
  (init 5a d0 8f 01, level 5a ba c5 c4 <0-3>), sent from userspace via
  hidraw. I did not add QUIRK_USE_KBD_BACKLIGHT: hid-asus now hands the
  backlight to asus-wmi through asus_hid_register_listener(), and asus-wmi
  is x86-only, so on this arm64 laptop the listener returns -ENODEV. Getting
  the backlight working here would need a fallback LED in hid-asus when
  asus-wmi is absent; I'm happy to test patches for that.
- DMI: ASUSTeK COMPUTER INC. ASUS Zenbook A14 UX3407QA_UX3407QA, BIOS UX3407QA.308 03/12/2025

 drivers/hid/hid-asus.c | 2 ++
 drivers/hid/hid-ids.h  | 1 +
 2 files changed, 3 insertions(+)

diff --git a/drivers/hid/hid-asus.c b/drivers/hid/hid-asus.c
index 4f5749c..d410907 100644
--- a/drivers/hid/hid-asus.c
+++ b/drivers/hid/hid-asus.c
@@ -1813,6 +1813,8 @@ static const struct hid_device_id asus_devices[] = {
 	{ HID_I2C_DEVICE(USB_VENDOR_ID_ASUSTEK,
 		USB_DEVICE_ID_ASUSTEK_I2C_ZENBOOK_KEYBOARD),
 	  I2C_KEYBOARD_QUIRKS | QUIRK_FILTER_CAMERA_COMPANION },
+	{ HID_I2C_DEVICE(USB_VENDOR_ID_ASUSTEK,
+		USB_DEVICE_ID_ASUSTEK_I2C_ZENBOOK_A14_KEYBOARD) },
 	{ HID_I2C_DEVICE(USB_VENDOR_ID_ASUSTEK,
 		USB_DEVICE_ID_ASUSTEK_I2C_TOUCHPAD), I2C_TOUCHPAD_QUIRKS },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ASUSTEK,
diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index 8590252..367602a 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -222,6 +222,7 @@
 #define USB_DEVICE_ID_ASUSTEK_T304_KEYBOARD	0x184a
 #define USB_DEVICE_ID_ASUSTEK_I2C_KEYBOARD	0x8585
 #define USB_DEVICE_ID_ASUSTEK_I2C_ZENBOOK_KEYBOARD	0x4b42
+#define USB_DEVICE_ID_ASUSTEK_I2C_ZENBOOK_A14_KEYBOARD	0x0220
 #define USB_DEVICE_ID_ASUSTEK_I2C_TOUCHPAD	0x0101
 #define USB_DEVICE_ID_ASUSTEK_ROG_KEYBOARD1 0x1854
 #define USB_DEVICE_ID_ASUSTEK_ROG_KEYBOARD2 0x1837
-- 
2.56.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-27 16:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27 16:40 [PATCH] HID: asus: add support for the ASUS Zenbook A14 (UX3407QA) keyboard Marcelo Niendicker Grando

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®