Arch linux on AMD laptop suspend immediately wakes up

26. jūnijs, 2024

So now I have laptop with AMD Ryzen 7 5800H with Radeon Graphics. Everything works greate except when I try to suspend it suspends but immediately wakes up

Bash
systemctl suspend

I found one solution which kind-or works for me.

It was found here https://www.reddit.com/r/archlinux/comments/y7b97e/my_computer_wakes_up_immediately_after_i_suspend

There is linux system file. Which is not regular file. So you cant just vim into it and make changes

Bash
/proc/acpi/wakeup

First open this file and see who is enabled

In my case it was GP17. I really dont know what GP177 is, but looks like it is causing my laptop to immediately wake up after suspend

So how to disable it

Enter super user by typing sudoi -s

Bash
sudo -s

Then run this command

Bash
echo GP17 > /proc/acpi/wakeup

But looks like I should make it some how persistent, because after every wake up it resets itself to enabled