Recently purchased a Framework 13 with AMD AI 300 series, installed Fedora 42 on it and I can’t get it to suspend on lid closed.
When I press the power button suspend seems to work,
When I close the lid it does not go to sleep (is hard to tell i just hear a very faded fan sound and when I open the screen is instant no flicker nothing is like it was already powered on)
I did leave it over the night with the lid closed and when I opened it the next day the screen was still on but this time the trackpad was not working, or the keyboad on the login screen, I had to switch to a terminal and reboot.
Thanks for the reply, I’ve installed amd-debug-tools via pipx, supposely you wanted me to run amd-s2idle --test. I’ve run it the system entered sleep, I’ve closed the lid the system woke up once the lid was fully closed.
You’re not getting to the deepest state. That should be the focal area for debug.
Please do the following:
Remove all USB devices (including cards and dongles).
Turn off kernel lockdown (it’s turned on by secure boot with some distro kernels so turn off secure boot)
Repeat the test. If it still happens the script will gather more information when lockdown is off. If it doesn’t, try to narrow it down to which USB device is causing it.
The good news; this actually looks like it’s getting to deepest state now compared to the other one. I suspect something USB was acting up.
The bad news; I see that the reason you’re waking up is that both the lid and GPIO controller are active:
PM: Triggering wakeup from IRQ 7
Dispatching Notify on [LID0] (Device) Value 0x80 (Status Change)
It seems to me that the active interrupt is GPIO 8 which should be the touchpad. Is it possible your lid is physically pushing on the touchpad?
Try modifying /sys/bus/i2c/drivers/i2c_hid_acpi/i2c-PIXA3854:00/power/wakeup from enabled to disabled manually. If that works you can use an LLM to help guide you to making a udev rule.