Update: Found the root cause and workaround.

The issue is caused by the ELAN0415 I2C HID touchpad waking the laptop
during s2idle suspend.

The wake source was identified as:

```
i2c-ELAN0415:00
```

Disabling ACPI wake device GP17 did not solve the issue.

Workaround:

Created a systemd sleep hook:

```
/lib/systemd/system-sleep/elan-suspend-fix
```

Script:

```bash
#!/bin/bash

case "$1" in
pre)
    echo i2c-ELAN0415:00 > /sys/bus/i2c/drivers/i2c_hid_acpi/unbind
    ;;
post)
    sleep 2
    echo i2c-ELAN0415:00 > /sys/bus/i2c/drivers/i2c_hid_acpi/bind
    ;;
esac
```

After applying this workaround:

- Suspend works correctly
- Laptop no longer immediately wakes
- ELAN touchpad works after resume

Tested on:

Acer TravelLite TL14-42M  
AMD Ryzen 7 7730U  
Ubuntu 24.04.4 LTS  
Kernel 6.17.0-1030-oem

The issue appears to be related to ELAN0415 I2C HID wake handling during
s2idle suspend.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2162061

Title:
  ELAN0415 I2C HID touchpad causes immediate wake after suspend on AMD
  laptop

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2162061/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to