* [PATCH] HID: asus: add support for the ASUS Zenbook A14 (UX3407QA) keyboard
@ 2026-11-27 16:40 Marcelo Niendicker Grando
2026-11-27 17:08 ` sashiko-bot
0 siblings, 1 reply; 2+ messages 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 related [flat|nested] 2+ messages in thread
* Re: [PATCH] HID: asus: add support for the ASUS Zenbook A14 (UX3407QA) keyboard
2026-11-27 16:40 [PATCH] HID: asus: add support for the ASUS Zenbook A14 (UX3407QA) keyboard Marcelo Niendicker Grando
@ 2026-11-27 17:08 ` sashiko-bot
0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-11-27 17:08 UTC (permalink / raw)
To: Marcelo Niendicker Grando, linux-input; +Cc: dmitry.torokhov
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] HID: asus: missing I2C_KEYBOARD_QUIRKS for Zenbook A14 I2C
keyboard
--
commit ddfdb63c8208f8d574ebd38f9f5c9b3f01175e08
Author: Marcelo Niendicker Grando <marcelogrando@icloud.com>
HID: asus: add support for the ASUS Zenbook A14 (UX3407QA) keyboard
This commit binds the ASUS Zenbook A14 UX3407QA internal I2C keyboard
(0B05:0220) to hid-asus so its vendor report 0x5a Fn hotkeys are mapped.
> diff --git a/drivers/hid/hid-asus.c b/drivers/hid/hid-asus.c
> index dcb3d50f9288e..8a8fa9fb588b1 100644
> --- a/drivers/hid/hid-asus.c
> +++ b/drivers/hid/hid-asus.c
> @@ -1907,6 +1907,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) },
[Severity: Medium]
Should this entry set I2C_KEYBOARD_QUIRKS like the other ASUS I2C notebook
keyboards?
In the device's 132-byte report descriptor, Report ID 2 declares Logical
Maximum 0x65 at rdesc[55] alongside Usage Maximum 0xdd, and Report ID 3
declares a Consumer Control array spanning usages 0x0000..0x023c.
Without QUIRK_FIX_NOTEBOOK_REPORT from I2C_KEYBOARD_QUIRKS,
asus_report_fixup() leaves rdesc[55] at 0x65, so hid-core rejects all
Keyboard/Keypad usages above 0x65. Without QUIRK_NO_CONSUMER_USAGES,
asus_input_mapping() maps dummy Consumer usages from Report ID 3 (including
BTN_MISC, ABS_VOLUME and REL_HWHEEL) onto the merged keyboard input device,
causing userspace to classify the keyboard as a pointer device.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261127164052.59518-1-marcelogrando@icloud.com?part=1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-27 17:08 UTC | newest]
Thread overview: 2+ messages (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
2026-11-27 17:08 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox