Skip to content

linux-omarchy: expose the ASUS NumberPad backlight as an LED (Zenbook 14 UX3405) - #536

Open
lordyoyi wants to merge 1 commit into
omacom:masterfrom
lordyoyi:linux-omarchy-asus-numberpad-led
Open

lordyoyi wants to merge 1 commit into
omacom:masterfrom
lordyoyi:linux-omarchy-asus-numberpad-led

Conversation

@lordyoyi

Copy link
Copy Markdown

Summary

The ASUS Zenbook 14 UX3405 (touchpad ASUP1415, I2C-HID 093A:300C) has a NumberPad: an LED-lit numeric keypad under the touchpad glass. On Linux nothing drives it, so the feature is dead. Existing community drivers light it by writing raw I2C frames behind the kernel driver's back (i2ctransfer -f).

The touchpad firmware has no "numpad mode" — it always reports plain touches. The only hardware piece is the backlight, controlled by a vendor feature report the device declares in its own descriptor (0x0d, usage page 0xff00).

Fix

Register a standard LED class device, /sys/class/leds/asus::numberpad (brightness 0–8), in hid-multitouch for this touchpad, sending that feature report through the normal HID path. It only registers if the device actually declares the report. LEDs turn off on suspend and restore on resume. No change to touch handling. Mapping taps to keys stays in userspace.

Test plan

Zenbook 14 UX3405CA, linux-omarchy 7.2.5-3, patched hid-multitouch built out-of-tree and loaded:

  1. asus::numberpad appears under /sys/class/leds/.
  2. Writing 1–8 to brightness lights the grid at 8 distinct levels; 0 turns it off.
  3. Suspend with brightness 8: grid goes dark on suspend and comes back lit at the same level on resume.
  4. Touchpad, gestures and the touchscreen (same driver) behave as before; dmesg clean.
  5. With a small userspace daemon (https://github.com/lordyoyi/zenbook-numberpad) the NumberPad is fully usable: hold the corner icon to toggle, tap to type, pointer and scroll keep working.

Notes

  • Unsigned patch, no .sig. 0567 is taken by linux-omarchy: fix silent Neewer CM26 Pro mic (HID GET_REPORT EPROTO) #534, hence 0568; happy to renumber.
  • checkpatch clean. I intend to send this to linux-input upstream as well.
  • Not done here: a full linux-omarchy package build. The patch was verified to apply cleanly to v7.2.5 hid-multitouch.c and the PKGBUILD source/checksum arrays line up.

🤖 Generated with Claude Code

maralcbr added a commit that referenced this pull request Sep 25, 2026
…n it

From omacom/omarchy-mac#544 the Apple drop-ins no longer add Plymouth
themselves and build on omarchy-settings' 00-omarchy-hooks.conf (#536). A
settings version cannot express that (quattro candidates sort below stock
releases and omarchy pins its settings exactly), so a build whose payload has
no 93-omarchy-mac-plymouth.conf depends on the name
omarchy-mkinitcpio-hooks-baseline, which settings packages that ship the
baseline must provide.
APS6 pushed a commit to APS6/omarchy-pkgs that referenced this pull request Sep 26, 2026
…n it

From omacom/omarchy-mac#544 the Apple drop-ins no longer add Plymouth
themselves and build on omarchy-settings' 00-omarchy-hooks.conf (omacom#536). A
settings version cannot express that (quattro candidates sort below stock
releases and omarchy pins its settings exactly), so a build whose payload has
no 93-omarchy-mac-plymouth.conf depends on the name
omarchy-mkinitcpio-hooks-baseline, which settings packages that ship the
baseline must provide.
@kwilczynski
kwilczynski self-requested a review October 6, 2026 18:38

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant