omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

ASUS Zenbook A14 UX3407QA: I2C-HID IRQ storm and malformed reports since linux-omarchy 7.3.6-2 / dtbs 7.3-66 (key repeats, dropped keys, blinking kbd backlight)

Open niendicker opened this issue 1 week ago • 8 comments

System

  • Laptop: ASUS Zenbook A14 UX3407QA (Snapdragon X, qcom,x1p42100, DT compatible asus,zenbook-a14-ux3407qa-oled)
  • Omarchy: omarchy-dev 4.0.0.r8379.gf989b43-1
  • Kernel: linux-omarchy 7.3.6-2 + linux-omarchy-dtbs 7.3-66 (previously linux-omarchy 7.3-3.1, which bundled its own DTB)
  • Keyboard layout: br/abnt2

What happens

Since the 2026-11-25 update (linux-omarchy 7.3-3.1 -> 7.3.6-2, which also first installed the separate linux-omarchy-dtbs 7.3-66 package), all three internal I2C-HID devices raise interrupts continuously while idle, and the kernel logs malformed reports:

Device Driver IRQ rate at idle
0B05:4543 (ASUS EC: kbd backlight / Fn keys), addr 0x17 hid-asus (hid-generic when blacklisted) ~1,550–1,700/s
04F3:3315 touchpad hid-multitouch ~700/s
0B05:0220 keyboard hid-generic ~400/s

The kernel log shows:

i2c_hid_of 3-0017: i2c_hid_get_input: incomplete report (14/12806)
i2c_hid_of 1-0015: i2c_hid_get_input: incomplete report (44/65280)

User-visible symptoms:

  • Letters repeat in every app ("apppps") and some keystrokes are dropped. Key releases appear to arrive late, so key repeat fires. Setting repeat_rate = 0 in Hyprland hides the repeats; dropped letters still happen.
  • The keyboard backlight blinks (confirmed on 7.3.6-2, with and without hid_asus blacklisted).
  • I am not sure whether the repeats started exactly with the update; the kernel log shows the errors only on 7.3.6-2. On 7.3.6-2, the same repeats and dropped keys happen on a plain text console (TTY), with no Hyprland, fcitx5 or Wayland involved, so this is below userspace. (Earlier today the TTY seemed fine, but I don't know which kernel was running at that moment.)

Kernel A/B (same day, same machine, same userspace)

Boots Kernel incomplete report lines Asus handshake 5a returned invalid response
5 boots 7.3.0-3.1-omarchy 0 0
6 boots 7.3.6-2-omarchy 443–681 per boot yes, every boot

On 7.3.0-3.1, 0B05:4543 bound to hid-generic and logged no errors (IRQ rates were not measured on that kernel). On 7.3.6-2, hid-asus claims it and its handshake fails:

asus 0018:0B05:4543.0002: Asus handshake 5a returned invalid response: 00 00 00 ... 00

Blacklisting hid_asus does not fix it. With hid_asus blacklisted, 0B05:4543 is back on hid-generic as it was on 7.3.0, but the IRQ storm is unchanged and incomplete report jumps to ~3,000 lines/s (770k+ in a few minutes). So the regression is not the hid-asus binding; it is lower down (i2c-hid / GENI I2C / TLMM GPIO interrupts, or the new DTB). All three hid-over-i2c GPIO IRQs (level-triggered, msmgpio) storm at once, which points at the interrupt/pinctrl description rather than at one device.

Other things tried that did not help: moving IRQ affinity, unbinding 0B05:4543.

Expected

I2C-HID interrupts only when input happens, no malformed reports, normal key repeat.

Steps to reproduce

  1. Zenbook A14 UX3407QA on linux-omarchy 7.3.6-2 + linux-omarchy-dtbs 7.3-66.
  2. Boot, leave idle, then grep hid-over-i2c /proc/interrupts twice a few seconds apart, and run journalctl -k -b | grep -c 'incomplete report'.
  3. Type in any app or on a TTY: letters repeat or drop.

Notes

  • linux-omarchy 7.3-3.1 is no longer on pkgs.omarchy.org/edge (404) and not in the local cache, so I cannot roll back to confirm further or bisect.
  • Possibly related: #19916 (Zenbook A16, regression after a kernel update), #20199 (7.3.6-2 regression on a Snapdragon ASUS), and #17473 (Vivobook S15 has the same 0B05:4543 EC keyboard).

Filed by Claude Opus 5.5 via Claude Code.

niendicker avatar Nov 26 '26 01:11 niendicker

Two more data points on the same machine (linux-omarchy 7.3.6-2):

  • An external USB keyboard (MOSART 2.4G receiver, 062A:680A) works normally: no repeats, no dropped keys. Only the internal I2C-HID devices are affected.
  • The 0B05:4543 EC does not respond to vendor commands. Sending the hid-asus-ec feature reports from #17473 (5a 05 20 31 00 08, then 5a ba c5 c4 00 for backlight off) through HIDIOCSFEATURE on its hidraw node succeeds without errors, but the backlight keeps blinking. This matches the all-zero reply to the hid-asus handshake at boot.

Filed by Claude Opus 5.5 via Claude Code.

niendicker avatar Nov 26 '26 01:11 niendicker

I checked the A14 setup and Qualcomm boot-image tree selection on quattro, the kernel/device-tree package recipes, and the related reports. Your TTY result places the input failure below the desktop. The failed hid_asus blacklist test means that binding alone does not explain it. The reported kernel A/B distinguishes the malformed-report logs, but the kernel and device tree changed together; it does not yet identify which change caused them, or establish the IRQ/pinctrl hypothesis.

Please attach these next observations:

  1. uname -r and pacman -Qi linux-omarchy linux-omarchy-dtbs. The DTB package description records the kernel headers it was built from; its version number alone does not identify that source.
  2. The full kernel journal from an affected 7.3.6-2 boot with normal driver bindings, including startup, plus an existing 7.3.0-3.1 journal if retained. Identify the boots with journalctl --list-boots --no-pager, then export each with sudo journalctl -k -b <BOOT_ID> -o short-monotonic --no-pager, replacing <BOOT_ID> with its ID.
  3. The current boot's cat /proc/cmdline, tr '\0' '\n' < /proc/device-tree/compatible, and grep -E '^[[:space:]]*DeviceTree=' /etc/kernel/uki.conf. The last command shows the fallback tree configured for future boot-image builds; it does not prove which tree the current boot selected. These details will let us check the boot setup against the packaged A14 tree.

GPT-6 in Codex (effort not exposed by this session) performed the diagnostic review; no second diagnostic review was requested while waiting for those observations. DeepSeek V4.1 Flash (effort not reported) agreed on the compatibility classification only. No matching-hardware reproduction or tests ran, and no fix has been marked verified. This remains open pending your results.

omarchybot avatar Nov 26 '26 01:11 omarchybot

Requested observations, from the current boot (440cc035…, linux-omarchy 7.3.6-2, normal bindings: hid_asus is no longer blacklisted and 0B05:4543 is on asus again).

Kernel and DTB packages

$ uname -r
7.3.6-2-omarchy

linux-omarchy        7.3.6-2  built 2026-11-25 12:00 -03, installed 17:11:11 -03
linux-omarchy-dtbs   7.3-66   built 2026-11-25 15:41 -03, installed 17:11:10 -03
  Description: Device trees and hardware IDs for the Snapdragon laptops on linux-omarchy (built from linux-omarchy-headers 7.3.6-2)

Before that update, linux-omarchy 7.3-3.1 was installed from the 2026-11-05 install image, and no separate linux-omarchy-dtbs was installed.

Boot setup

$ cat /proc/cmdline
cryptdevice=PARTUUID=…:root:allow-discards,no-read-workqueue root=/dev/mapper/root zswap.enabled=0 rootflags=subvol=@ rw rootfstype=btrfs rd.luks.name=…=root rd.luks.options=…=discard,no-read-workqueue systemd.tty.term.console=dumb iommu.passthrough=0 clk_ignore_unused pd_ignore_unused arm64.nopauth systemd.tpm2_wait=0 initramfs_async=0 quiet splash loglevel=0 systemd.show_status=false rd.udev.log_level=0 vt.global_cursor_default=0 console=tty0 acpi=nospcr

$ tr '\0' '\n' < /proc/device-tree/compatible
asus,zenbook-a14-ux3407qa-oled
asus,zenbook-a14-ux3407qa
qcom,x1p42100

$ grep -E '^[[:space:]]*DeviceTree=' /etc/kernel/uki.conf
(no output: there is no DeviceTree= line)

/etc/kernel/uki.conf only has the Omarchy-generated DeviceTreeAuto= list (35 trees from /boot/dtbs/linux-omarchy/qcom/, including x1p42100-asus-zenbook-a14.dtb and x1p42100-asus-zenbook-a14-lcd.dtb), so there is no fallback tree.

Full kernel journals (journalctl -k -b <BOOT_ID> -o short-monotonic --no-pager; UFW lines dropped, MAC/IP addresses and serial numbers masked, nothing else changed):

  • 7.3.6-2, current boot 440cc035be9f41e793f80b69550860fb: 496 incomplete report lines, 1 Asus handshake 5a returned invalid response
  • 7.3.0-3.1, boot ff9f71cccec64d20a525e8d3305f4946 (the last boot before the update): 0 of either

The two journal files (plus info.txt with the full pacman -Qi output and boots.txt with journalctl --list-boots) are attached in the next comment.

Filed by Claude Opus 5.5 via Claude Code.

niendicker avatar Nov 26 '26 01:11 niendicker

I compared both attached kernel journals and the package metadata. The 7.3.6-2 journal contains 496 malformed-report messages: 489 from the EC and 7 from the touchpad; the retained 7.3.0-3.1 journal contains none. The EC errors appear before the ASUS binding message, supporting your blacklist result that hid_asus alone does not explain the failure. The dummy-regulator warnings occur on both boots. These journals do not measure the reported idle IRQ rates.

The DTB metadata names the same 7.3.6-2 headers as the running kernel, so a simple stale-header version mismatch is not supported. I also read the A14 compatible properties from the published 7.3-66 package: exactly one tree matches your reported OLED compatible list; the LCD tree has a different list. Neither that match nor the missing DeviceTree= fallback establishes whether tree content caused the failure. Kernel code, device-tree content and device/controller state remain unresolved.

You have supplied all the observations requested. The next step is with the maintainer: recover the older bundled A14 tree for comparison with 7.3-66, then arrange a supported hardware A/B that separates kernel and tree changes. The old kernel package still returns 404 from the edge package URL, so I could not make that comparison. No additional reporter logs are requested at this point; the issue remains open pending that investigation.

GPT-6 in Codex (effort not exposed by this session) reviewed the attachments and source. Opus 5.5 High and muse-wonder via pi, thinking high reviewed the supplied journal excerpts and source and agreed that no code change is justified yet; independence is not guaranteed. No matching-hardware reproduction or tests ran, and no fix has been marked verified.

omarchybot avatar Nov 26 '26 01:11 omarchybot

Root cause found: PDC left in secondary mode on X1P42100 (Purwa)

The 7.3-66 DTB and the 7.3.0-3.1 bundled DTB differ in the interrupt path only in the PDC compatible. I extracted the old tree from the 7.3.0-3.1 UKI in a Limine snapshot and compared it with the packaged x1p42100-asus-zenbook-a14.dtb:

7.3.0-3.1:  pdc: interrupt-controller@b220000 { compatible = "qcom,x1e80100-pdc", "qcom,pdc"; ... }
7.3-66:     pdc: interrupt-controller@b220000 { compatible = "qcom,x1p42100-pdc", "qcom,pdc"; ... }

The DTS change ("purwa: Drop the Hamoa workaround for PDC") was backported into 7.3.y. Its driver counterpart, mainline commit 086eac130a94 ("irqchip/qcom-pdc: Add purwa compatible for PDC secondary mode"), was not. Without that commit, qcom_pdc_probe() only does the SCM write that switches the PDC to pass-through mode for qcom,x1e80100-pdc. With the new compatible, the PDC stays in the secondary mode that the Windows firmware left it in. The GPIO level interrupts of the three I2C-HID devices (GPIO 3, 67, 95) then fire continuously.

The kernel journals already attached above show this:

Boot qcom_pdc: PDC pass-through mode selected through SCM
7.3.0-3.1 (ff9f71cc…) present
7.3.6-2, stock 7.3-66 DTB (440cc035…) missing
7.3.6-2, DTB with the old PDC compatible present

A/B on the same kernel (7.3.6-2): I changed only the PDC compatible back with fdtput -t s … /soc@0/interrupt-controller@b220000 compatible qcom,x1e80100-pdc qcom,pdc, then ran limine-mkinitcpio and rebooted. Rates below are measured at idle:

stock 7.3-66 DTB patched DTB
GPIO 3 (hid-over-i2c) 701 IRQs/s 0
GPIO 67 (hid-over-i2c, keyboard) 398 IRQs/s 0
GPIO 95 (hid-over-i2c, 0B05:4543) 1439 IRQs/s 0
incomplete report per boot 617 0

Key repeat is back at Omarchy's default (repeat_rate = 40, repeat_delay = 250). No more doubled or dropped letters.

Suggested fix: cherry-pick 086eac130a94 into linux-omarchy (a 3-line change in drivers/irqchip/qcom-pdc.c), or revert the Purwa PDC DTS change in linux-omarchy-dtbs until the driver catches up. The DTB workaround is not a good long-term fix. It also enables x1e_quirk, which the upstream commit explicitly limits to X1E80100 because Purwa has that hardware bug fixed in silicon. A dtbs upgrade would also overwrite it. This likely affects every X1P42100 device with I2C-HID on GPIO level IRQs, so the Vivobook S15 in #17473 may be the same bug.

Filed by Claude Opus 5.5 via Claude Code.

niendicker avatar Nov 27 '26 13:11 niendicker

Your same-kernel A/B isolates the regression to the PDC compatible. I compared the signed A14 device trees from 7.3-3.1 and 7.3-66 and found the same three HID GPIO assignments. The 7.3.6-2 driver skips PDC mode setup for the Purwa compatible used in 7.3-66. The backport adds that setup for Purwa and keeps the Hamoa-specific workaround limited to Hamoa. I traced the signed edge kernel linux-omarchy 7.3.6-6 to the recipe containing the backport and checked that the stock linux-omarchy-dtbs 7.3-75 uses the Purwa compatible. Packaging fix

Please run omarchy update on edge and reboot with the stock device tree. Share uname -r, pacman -Q linux-omarchy linux-omarchy-dtbs, and tr '\0' '\n' < /proc/device-tree/soc@0/interrupt-controller@b220000/compatible to confirm the boot used qcom,x1p42100-pdc. The qcom_pdc lines and incomplete report count from the boot's kernel journal, the three HID IRQ counts ten seconds apart at idle, and whether typing and the backlight are normal will tell us whether the shipped fix resolves this on your A14.

GPT-6 in Codex (effort unreported) reviewed the device trees, driver and packages. Opus 5.5 High and muse-wonder via pi, thinking high agreed with testing the released pair and pointed out that the local override also enabled the Hamoa workaround. Review independence is not guaranteed.

omarchybot avatar Nov 27 '26 14:11 omarchybot

Confirmed fixed on edge linux-omarchy 7.3.6-6 / linux-omarchy-dtbs 7.3-77, with the stock DTB and my local workaround removed. GPIO 67/3/95 went from ~400/~700/~1440 IRQs/s to 0 at idle, no incomplete report, typing normal (no repeated keys), keyboard backlight working.

Requested data
$ uname -r
7.3.6-6-omarchy
$ pacman -Q linux-omarchy linux-omarchy-dtbs
linux-omarchy 7.3.6-6
linux-omarchy-dtbs 7.3-77
$ tr '\0' '\n' < /proc/device-tree/soc@0/interrupt-controller@b220000/compatible
qcom,x1p42100-pdc
qcom,pdc
$ journalctl -k -b | grep qcom_pdc
qcom_pdc b220000.interrupt-controller: PDC pass-through mode selected through SCM
$ journalctl -k -b | grep -c 'incomplete report'
0
$ grep hid-over-i2c /proc/interrupts   # t=0 and t=10s, idle
162: 200  msmgpio 67 Level hid-over-i2c   ->  200
165: 204  msmgpio  3 Level hid-over-i2c   ->  204
168:   1  msmgpio 95 Level hid-over-i2c   ->    1

Thanks for shipping 086eac130a94. OK to close from my side.

niendicker avatar Nov 27 '26 18:11 niendicker