Arch linux on AMD laptop suspend immediately wakes up
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
systemctl suspendI 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
/proc/acpi/wakeupFirst 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
sudo -sThen run this command
echo GP17 > /proc/acpi/wakeupBut looks like I should make it some how persistent, because after every wake up it resets itself to enabled