omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Touchpad not working

Open nightdevil00 opened this issue 3 months ago • 3 comments

System details

HP laptop (ELAN0709 I2C touchpad), Omarchy 4.0

What's wrong?

ELAN I2C Touchpad Not Working on Older Laptops — Analysis & Fix

Problem

Touchpad completely non-functional on an older HP laptop running Omarchy (Arch Linux + Hyprland). No cursor movement, no tap-to-click, no scrolling.

Environment

  • Laptop: Older HP laptop (ELAN0709 I2C touchpad)
  • OS: Omarchy (Arch Linux, kernel 7.1.9-arch1)
  • Compositor: Hyprland 0.55+ (Lua config)
  • Touchpad: ELAN0709:00 04F3:31BF (I2C HID)
  • BIOS: Already on latest version

Investigation

1. Initial Config Review

The input.lua had several issues that were not the root cause but needed fixing:

  • Unicode smart quotes (¨flat¨) in accel_profile line caused a Lua parse error
  • tap was used instead of tap_to_click (renamed in Hyprland 0.55+)
  • accel_profile was misplaced inside touchpad block (it's a top-level input option)

2. Kernel Driver Status

hid_multitouch    36864  0
i2c_hid_acpi      12288  0
i2c_hid           45056  1 i2c_hid_acpi

All modules loaded. Touchpad detected in /proc/bus/input/devices and /dev/input/event*.

3. Raw Event Test

Reading /dev/input/event* for 5 seconds returned 0 events. The kernel driver registered the device but zero events were reaching userspace.

4. dmesg — The Smoking Gun

i2c_hid_acpi i2c-ELAN0709:00: i2c_hid_get_input: incomplete report (14/3583)

The i2c_hid_acpi driver was receiving corrupted/incomplete HID reports from the ELAN touchpad (14 bytes instead of expected 3583).

5. Blacklist Attempt (Failed)

echo "blacklist i2c_hid_acpi" | sudo tee /etc/modprobe.d/touchpad-fix.conf

After reboot: touchpad completely vanished from /proc/bus/input/devices. The i2c_hid_acpi driver is the only one that binds to this ACPI device — blacklisting it left the touchpad undetected.

6. Resolution

sudo rm /etc/modprobe.d/touchpad-fix.conf
sudo reboot

After removing the blacklist and rebooting, the touchpad returned and worked. The incomplete report warning in dmesg was harmless — a known ELAN quirk where the IRQ line stays high after data transfer, causing a spurious report. The driver handles it gracefully.


Root Cause

The i2c_hid_acpi driver's incomplete report (14/3583) error is a known kernel bug with ELAN I2C touchpads. It's caused by:

  1. ELAN touchpad firmware takes ~7-8ms to pull IRQ back to high after data transfer
  2. The I2C host reads incomplete data before the touchpad is ready
  3. This generates a kernel error message but does not prevent the touchpad from working

The touchpad was not actually broken — the driver was working. The initial investigation revealed that zero raw events were reaching the test script, but after removing the interfering blacklist and rebooting, the driver resumed normal operation.


Fix Applied

Change Purpose
Added tap_to_click = true to touchpad block Enable tap-to-click (correct option name for Hyprland 0.55+)
Fixed Unicode quotes in accel_profile line Resolve Lua parse error preventing config from loading
Removed /etc/modprobe.d/touchpad-fix.conf Undo blacklist that broke touchpad detection entirely

Lessons Learned

  1. Don't blacklist i2c_hid_acpi on ELAN touchpads — it's the only driver that binds to the ACPI device
  2. The incomplete report warning is cosmetic on most ELAN devices
  3. Hyprland 0.55 Lua config renamed tap → tap_to_click and accel_profile stays under input, not input.touchpad
  4. Always test raw events (/dev/input/event*) to distinguish hardware vs software issues
  5. Check dmesg before touching config — the kernel log told us the real story

Related Kernel Bug

This is tracked in multiple places:

nightdevil00 avatar Aug 27 '26 10:08 nightdevil00

Hey everyone, just sharing how I finally got my touchpad working on Omarchy OS in case anyone else bumps into this thread with a dead trackpad.

This usually happens on newer laptops (like Huawei MateBook, Honor, or Asus models) that use the GXTP7863 or similar I2C hardware.

What's going wrong?

If you run sudo dmesg | grep -i i2c and see a bunch of timed out errors ending in -110, your hardware isn't broken—it's just waking up too slowly for the Linux kernel during the initial boot phase:

i2c_designware i2c_designware.0: controller timed out
i2c_hid_acpi i2c-GXTP7863:00: can't add hid device: -110

Normally, people fix this by unloading and reloading the modules at runtime, but on Omarchy, i2c_designware_platform is compiled builtin into the kernel, so modprobe -r won't work. We have to tell the kernel to chill and wait a bit longer right from the start.

How to fix it

We just need to bump the I2C timeout window to 5 seconds by throwing a boot parameter into Limine (since Omarchy doesn't use GRUB):

  1. Open your boot config:
    sudo nvim /boot/limine.conf
    
  2. Find your active boot profile (Omarchy defaults to //linux-lts, but you can do this for //linux too).
  3. Go to the very end of the cmdline: row and append i2c_designware.timeout_ms=5000 (just leave a space before pasting it).

It should look something like this:

  //linux-lts
  ...
  cmdline: cryptdevice=... quiet splash loglevel=0 systemd.show_status=false rd.udev.log_level=0 vt.global_cursor_default=0 i2c_designware.timeout_ms=5000
  1. Save and exit (:wq). Limine reads this file on the fly, so you don't need to rebuild or update anything.

  2. Bonus check: Don't forget to open ~/.config/hypr/input.lua and make sure your touchpad block is actually uncommented and has tap_to_click = true enabled, otherwise Hyprland won't register your taps even if the hardware is awake.

Do a quick reboot, and your touchpad should be perfectly responsive! Hope this saves someone a few hours of head-scratching.

xxYENxx avatar Aug 27 '26 16:08 xxYENxx

Additional evidence from the same ELAN0709:00 04F3:31BF touchpad on an HP Laptop 15-dw3xxx (board 881D, Core i5-1135G7, BIOS F.68 dated 2024-10-14).

This may be a separate failure mode from the incomplete HID report described above: on some boots, the touchpad produces unwanted dragging/selection and unusable movement, and Linux disables the parent Intel LPSS controller's IRQ before the desktop starts.

On Omarchy 4.0.4-1, kernel 7.2.5-4-omarchy:

irq 27: nobody cared (try booting with the "irqpoll" option)
handlers:
idma64_irq [idma64]
i2c_dw_isr
Disabling IRQ #27

The interrupt counter stopped at 100,000. The controller is PCI 8086:a0e8 at 0000:00:15.0, subsystem 103c:881d. Its only I²C client is the ELAN touchpad.

Raw evdev capture showed repeated touch/release pairs roughly 100 ms apart, without physical left-button presses. Disabling Hyprland tap-and-drag did not help. Rebinding only the i2c_hid_acpi touchpad device did not help either.

Rebinding the parent PCI device through the intel-lpss driver removed and recreated both IRQ handlers. The IRQ counter restarted at 626, and normal pointer movement returned immediately. However, that recovery also logged:

sysfs: cannot create duplicate filename '/kernel/software_nodes/node1/i2c-0'

The trace includes software_node_notify, i2c_register_adapter, i2c_dw_probe, and intel_lpss_probe. Because of that warning, automatic repeated rebinds have not been installed or proposed as a permanent fix.

This is intermittent: a subsequent stock Arch 7.2.3-arch1-3 boot worked, and the following 7.2.5-4-omarchy boot was also clean. Historical logs also contain the IRQ-disable signature on stock Arch 7.1.9-arch1-2 with BIOS F.66. That rules out this being a newly introduced symptom unique to the bespoke kernel, but does not establish equivalent behavior across current kernels or BIOS versions.

TheUriF avatar Sep 20 '26 01:09 TheUriF

I checked this report and both follow-ups against Omarchy's current quattro branch. Nothing here traces back to a defect in Omarchy, so there is no fix to propose.

  • The original report (HP, ELAN0709, kernel 7.1.9). As you described, the touchpad came back once the smart quotes in your own input.lua were fixed and your /etc/modprobe.d/touchpad-fix.conf blacklist was removed. Omarchy's shipped config doesn't contain either problem: the input.lua template in ~/.config/hypr (config/hypr/input.lua) uses plain quotes with accel_profile under input, default/hypr/input.lua doesn't disable the device, and Omarchy installs no modprobe blacklist for i2c_hid_acpi. The incomplete report line in dmesg comes from the kernel. Nobody found out why no events arrived before the reboot.
  • GXTP7863 timing out with -110 at boot. This is the kernel's I2C controller timing out while the touchpad is still powering up. The i2c_designware.timeout_ms boot parameter is a workaround for that one machine and not something Omarchy sets.
  • HP 15-dw3xxx, irq 27: nobody cared. The kernel switched off the Intel LPSS controller's interrupt, and this happens on stock Arch 7.1.9 and 7.2.3 as well as linux-omarchy, so it isn't caused by Omarchy's kernel. Note that omarchy restart trackpad only unbinds and rebinds i2c_hid_acpi, which you found doesn't recover this state. Only rebinding the parent intel-lpss device did, and that logged a sysfs warning. Fixing this belongs in the kernel or firmware, and it's a different failure from #11245, which only started with 7.2.

None of these can be reproduced on a worker, because a virtual machine has no I2C touchpad or LPSS controller. So I ran nothing.

Codex Medium reviewed the issue separately and came to the same conclusion. It found no Omarchy file or line at fault and agreed that none of these can be reproduced without the hardware. It may have seen this analysis before giving its answer, so it isn't a fully independent check.

Next step: the maintainer decides whether to close this or keep it open to track the HP LPSS interrupt problem.

omarchybot avatar Oct 09 '26 03:10 omarchybot