* [PATCH] i2c: acpi: Force ELAN2514 touchscreens to 100 kHz
@ 2026-12-01 7:13 Logan Larsen via B4 Relay
2026-12-01 10:32 ` Mika Westerberg
0 siblings, 1 reply; 2+ messages in thread
From: Logan Larsen via B4 Relay @ 2026-12-01 7:13 UTC (permalink / raw)
To: Andi Shyti, Mika Westerberg; +Cc: linux-i2c, linux-acpi, Logan Larsen
From: Logan Larsen <logantolarsen@gmail.com>
The ELAN2514 touchscreen (HID ID 04F3:43EF) with pen support on the HP
OmniBook X Flip Laptop 16-as0xxx (BIOS F.20, 04/27/2026) is connected
to the Lunar Lake I2C #4 controller (8086:a850, \_SB.PC00.I2C4). The
DSDT picks the bus speed in TPL1._INI from a BIOS NVS variable, and the
BIOS selects 400 kHz.
At 400 kHz pen input is badly broken. i2c-hid frequently reads a
corrupted length header and drops the report:
i2c-ELAN2514:00: i2c_hid_get_input: incomplete report (67/7167)
With Arch Linux's 7.3.6 kernel, during 45 seconds of continuous drawing
the pen delivered 22 reports/s, with 258 gaps longer than 50 ms, 273
position jumps of more than 4% of the screen diagonal and 102 of the
above errors. Forcing 1 MHz was no better than 400 kHz.
Add ELAN2514 to i2c_acpi_force_100khz_device_ids so that it operates at
100 kHz.
With this patch on v7.4-rc5 the kernel reports
DSDT uses known not-working I2C bus speed 400000, forcing it to 100000
and the controller runs in Standard Mode (100 kHz). In the same test the
pen delivered 150 reports/s over 17 seconds in range, with 11 gaps
longer than 50 ms (at most 117 ms), no position jumps and none of the
above errors. Finger input is unaffected.
AI disclosure: this contribution is entirely AI-generated. The AI coding
assistant Claude Code (model Claude Opus 5.5) did all of the technical
work: it diagnosed the problem, wrote the test harness and an ACPI
override used during the investigation, found the existing quirk table,
wrote this patch, built and tested the patched kernel, analysed the
results and wrote this changelog. The submitter did not write any of
the code or text. They only prompted the assistant (roughly: "fix the
pen on this laptop", "finger touch stops working after using the pen",
"make this fix mergeable into the mainline kernel"), ran the commands
that needed root and used the pen and the touchscreen during the
measurements.
Signed-off-by: Logan Larsen <logantolarsen@gmail.com>
---
The 400 kHz and 100 kHz numbers in the changelog come from different
kernels (Arch Linux 7.3.6 and v7.4-rc5 with this patch). To rule out a
kernel-version effect: on CachyOS 7.3.6, with the bus forced to 100 kHz
through an ACPI table override instead of this patch, the same test gave
146 reports/s, no position jumps and 2 "incomplete report" errors over
39 seconds of pen use.
---
drivers/i2c/i2c-core-acpi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/i2c/i2c-core-acpi.c b/drivers/i2c/i2c-core-acpi.c
index 84841ed13..dc8ab57e6 100644
--- a/drivers/i2c/i2c-core-acpi.c
+++ b/drivers/i2c/i2c-core-acpi.c
@@ -377,6 +377,7 @@ static const struct acpi_device_id i2c_acpi_force_100khz_device_ids[] = {
{ .id = "ELAN0678" },
{ .id = "ELAN06FA" },
{ .id = "ELAN1300" },
+ { .id = "ELAN2514" },
{ }
};
---
base-commit: 19cc08c1a6a650f8e54c0461ff198be6448f425d
change-id: 20261201-i2c-acpi-elan2514-100khz-cabbf3b58fe5
Best regards,
--
Logan Larsen <logantolarsen@gmail.com>
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] i2c: acpi: Force ELAN2514 touchscreens to 100 kHz
2026-12-01 7:13 [PATCH] i2c: acpi: Force ELAN2514 touchscreens to 100 kHz Logan Larsen via B4 Relay
@ 2026-12-01 10:32 ` Mika Westerberg
0 siblings, 0 replies; 2+ messages in thread
From: Mika Westerberg @ 2026-12-01 10:32 UTC (permalink / raw)
To: logantolarsen; +Cc: Andi Shyti, Mika Westerberg, linux-i2c, linux-acpi
Hi,
On Tue, Dec 01, 2026 at 12:13:10AM -0700, Logan Larsen via B4 Relay wrote:
> From: Logan Larsen <logantolarsen@gmail.com>
>
> The ELAN2514 touchscreen (HID ID 04F3:43EF) with pen support on the HP
> OmniBook X Flip Laptop 16-as0xxx (BIOS F.20, 04/27/2026) is connected
> to the Lunar Lake I2C #4 controller (8086:a850, \_SB.PC00.I2C4). The
> DSDT picks the bus speed in TPL1._INI from a BIOS NVS variable, and the
> BIOS selects 400 kHz.
>
> At 400 kHz pen input is badly broken. i2c-hid frequently reads a
> corrupted length header and drops the report:
>
> i2c-ELAN2514:00: i2c_hid_get_input: incomplete report (67/7167)
>
> With Arch Linux's 7.3.6 kernel, during 45 seconds of continuous drawing
> the pen delivered 22 reports/s, with 258 gaps longer than 50 ms, 273
> position jumps of more than 4% of the screen diagonal and 102 of the
> above errors. Forcing 1 MHz was no better than 400 kHz.
>
> Add ELAN2514 to i2c_acpi_force_100khz_device_ids so that it operates at
> 100 kHz.
>
> With this patch on v7.4-rc5 the kernel reports
>
> DSDT uses known not-working I2C bus speed 400000, forcing it to 100000
>
> and the controller runs in Standard Mode (100 kHz). In the same test the
> pen delivered 150 reports/s over 17 seconds in range, with 11 gaps
> longer than 50 ms (at most 117 ms), no position jumps and none of the
> above errors. Finger input is unaffected.
>
> AI disclosure: this contribution is entirely AI-generated. The AI coding
> assistant Claude Code (model Claude Opus 5.5) did all of the technical
> work: it diagnosed the problem, wrote the test harness and an ACPI
> override used during the investigation, found the existing quirk table,
> wrote this patch, built and tested the patched kernel, analysed the
> results and wrote this changelog. The submitter did not write any of
> the code or text. They only prompted the assistant (roughly: "fix the
> pen on this laptop", "finger touch stops working after using the pen",
> "make this fix mergeable into the mainline kernel"), ran the commands
> that needed root and used the pen and the touchscreen during the
> measurements.
>
> Signed-off-by: Logan Larsen <logantolarsen@gmail.com>
Acked-by: Mika Westerberg (Intel) <westeri@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-12-01 10:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 7:13 [PATCH] i2c: acpi: Force ELAN2514 touchscreens to 100 kHz Logan Larsen via B4 Relay
2026-12-01 10:32 ` Mika Westerberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox