When I’m done working on my laptop I put it in “suspend”. Then I unplug the cable or switch the power off at the extension cord. But both wake the laptop from suspension, so I can suspend it again. I would like to stop changes to the power connection from triggering a wake up.
From what I found on the internet /proc/acpi/wakeup
lists the wakeup trigger and mine lists:
$ cat /proc/acpi/wakeup
Device S-state Status Sysfs node
GPP4 S0 *enabled pci:0000:00:02.3
GPP7 S0 *disabled
GP17 S0 *enabled pci:0000:00:08.1
LID S4 *enabled platform:PNP0C0D:00
SLPB S3 *enabled platform:PNP0C0E:00
But I don’t know which entry stands for power connection.
According to this, https://unix.stackexchange.com/questions/236127:
LID
is the lid of the laptopSLPB
is the “Sleep Button”. I’m not sure which button that is but I guess it is not the device I need.at , but no idea about the others. How can I find out what they stand for?GPP4
isAdvanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
vialspci | grep 00:02.3
GPP17
isAdvanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
vialspci | grep 00:08.1
Not sure what 3 and 4 are exactly, but by process of elimination maybe touchpad and keyboard?
Maybe “Power” is simply no device?
Reddit - Dive into anything suggests “pass the acpi.ec_no_wakeup=1 option to the kernel” but I’m not sure how to do this.