From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: logantolarsen@gmail.com
Cc: Andi Shyti <andi.shyti@kernel.org>,
Mika Westerberg <westeri@kernel.org>,
linux-i2c@vger.kernel.org, linux-acpi@vger.kernel.org
Subject: Re: [PATCH] i2c: acpi: Force ELAN2514 touchscreens to 100 kHz
Date: Tue, 1 Dec 2026 11:32:57 +0100 [thread overview]
Message-ID: <20261201103257.GW953667@black.igk.intel.com> (raw)
In-Reply-To: <20261201-i2c-acpi-elan2514-100khz-v1-1-6683009dadfc@gmail.com>
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>
prev parent reply other threads:[~2026-12-01 10:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=20261201103257.GW953667@black.igk.intel.com \
--to=mika.westerberg@linux.intel.com \
--cc=andi.shyti@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=logantolarsen@gmail.com \
--cc=westeri@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