mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Marcelo Niendicker Grando <marcelogrando@icloud.com>
To: linux-input@vger.kernel.org
Cc: jikos@kernel.org, bentiss@kernel.org,
	linux-kernel@vger.kernel.org,
	Marcelo Niendicker Grando <marcelogrando@icloud.com>
Subject: [PATCH] HID: asus: add support for the ASUS Zenbook A14 (UX3407QA) keyboard
Date: Fri, 27 Nov 2026 13:40:52 -0300	[thread overview]
Message-ID: <20261127164052.59518-1-marcelogrando@icloud.com> (raw)

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


                 reply	other threads:[~2026-11-27 16:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261127164052.59518-1-marcelogrando@icloud.com \
    --to=marcelogrando@icloud.com \
    --cc=bentiss@kernel.org \
    --cc=jikos@kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®