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
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
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
Then run this command
But looks like I should make it some how persistent, because after every wake up it resets itself to enabled