System wakes immediately after sleep

Hello all, I tried to find a solution for this but I’m a bit lost

I am running Fedora 42 KDE Wayland on an Asus Proart PX13 laptop with Nvidia gpu disabled via supergfxctl

The system wakes right after putting to sleep.

Here is my journalctl ouput. It looks a bit different if I try with the Nvidia enabled. I’ve also tried sleep on USB Live Boot it doesn’t work either

Filebin | n4p7ybmlhrltq8t3

If someone could peek through the logs and point me in the right direction it would be really appreciated. Thanks

I’d try to switch to deep sleep mode instead of s2idle, you can easily try it by adding kernel parameter

mem_sleep_default=deep

while booting and check is it suspending properly or not.
But first you need to check if the deep mode is even available in your system:

cat /sys/power/mem_sleep

it should show something like

[s2idle] deep

Thanks for the reply. The output I get from

cat /sys/power/mem_sleep

Is just

[s2idle]

Does that mean deep sleep mode isn’t available with my hardware?

exactly.

have you tried to enable airplane mode first ( disabling wifi and bluetooth )?

systemd session freeze:

from your logs:

Jun 02 14:03:08 fedora systemd-sleep[6718]: User sessions remain unfrozen on explicit request ($SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=0).
Jun 02 14:03:08 fedora systemd-sleep[6718]: This is not recommended, and might result in unexpected behavior, particularly
Jun 02 14:03:08 fedora systemd-sleep[6718]: in suspend-then-hibernate operations or setups with encrypted home directories.
Jun 02 14:03:08 fedora systemd-sleep[6718]: Performing sleep operation 'suspend'...
Jun 02 14:03:12 fedora systemd-sleep[6718]: System returned from sleep operation 'suspend'.

You could try to enable session freeze, and see if things improve, see

You could check your BIOS if there any settings about S3 (deep) sleep mode.
Probably you should update the BIOS for that.
Also you could try to unlock advanced BIOS feautures and patch DSDT tables in order to get deep sleep (S3) jn your machine though it could be unsafe.

Thanks for the help all. I found a solution

I did try airplane mode and enabling system freeze but still waking. I have yet to check my bios and see if I can enable deep sleep.

Some Asus specific device was waking me from sleep. I narrowed it down with ChatGPT and disabled it with this line. The sleep started working:

echo disabled | sudo tee /sys/bus/i2c/devices/i2c-ASCP1A00:00/power/wakeup

Then made a systemd service to disable wakeup for that device on every boot. I guess this will work