Re: [PATCH] HID: i2c-hid-acpi: restore touchscreen IRQ routing on HP OmniBook X Flip 16
From: Jiri Kosina
Date: Thu Nov 19 2026 - 15:45:57 EST
On Wed, 30 Sep 2026, Waqar Gulzar via B4 Relay wrote:
> From: Waqar Gulzar <iamwaqargulzar@xxxxxxxxx>
>
> On the HP OmniBook X Flip 16 the ELAN2514 touchscreen interrupt is a
> GPIO pad (GPP_E_18) routed directly to the IO-APIC. The firmware's
> touchscreen power resource does
>
> PTPL._ON: \_SB.SGRA (TPI2, TPIP) // TPIP = T0IP = 0
> PTPL._OFF: \_SB.SGRA (TPI2, TPIP ^ 1)
>
> while the device's _INI enables routing with SGRA (GPLI, T0IP ^ 1).
> So _ON clears PADCFG0.GPIROUTIOXAPIC and disconnects the pad from the
> IO-APIC. Linux evaluates _ON at probe and on every D3->D0 transition
> (Windows apparently does not while _STA already reports the resource
> on), after which the level-triggered IRQ never deasserts:
>
> - ~630 interrupts/s while idle, nearly every read returns 0xffff
> - frames shifted by a leading 0xff, "incomplete report (67/7167)"
> - stylus reports arrive at ~25 Hz instead of the native ~268 Hz
> - touch stalls and false stylus proximity
>
> Re-enable the routing through the firmware's own \_SB.SGRA helper from
> the power_up hook, which runs at probe and on resume before the HID
> reset.
>
> Tested on board 8DA1 (BIOS F.20): idle interrupts drop from ~630/s to
> 0 after boot and after s2idle resume, and pen and touch behave as on
> Windows. Board 8DA0 is the other board ID of this model and is reported
> to have the same firmware code, so it is included, but it has not been
> tested because I do not have access to one.
>
> Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2142384
> Link: https://github.com/testyfishy/hp-omnibook-flip16-touchscreen-fix
> Link: https://github.com/iamwaqargulzar/hp-omnibook-x-flip-16-linux-touchscreen-pen-fix
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Waqar Gulzar <iamwaqargulzar@xxxxxxxxx>
> ---
> The HP OmniBook X Flip 16 firmware disconnects the ELAN2514 touchscreen
> interrupt from the IO-APIC in its power resource _ON method, which Linux
> runs at probe and resume. This patch re-enables the routing through the
> firmware's own helper from i2c-hid-acpi's power_up hook.
>
> Tested on board 8DA1 with BIOS F.20 on Linux 7.2.8, including s2idle
> resume. The 8DA0 entry is untested (I do not have that board).
>
> Full analysis, ACPI excerpts, and Windows/Linux traces:
> https://github.com/iamwaqargulzar/hp-omnibook-x-flip-16-linux-touchscreen-pen-fix
Applied to hid.git#for-7.4/upstream-fixes, sorry for the delay.
--
Jiri Kosina
SUSE Labs