Machine wakes up when power is turned on/off

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:

  1. LID is the lid of the laptop
  2. SLPB 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?
  3. GPP4 is Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge via lspci | grep 00:02.3
  4. GPP17 is Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus via lspci | 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.

There is some documentation here.

Excerpt:

Adding and Removing Arguments from a GRUB Menu Entry

The --update-kernel option can be used to update a menu entry when used in combination with --args to add new arguments and --remove-arguments to remove existing arguments. These options accept a quoted space-separated list. The command to simultaneously add and remove arguments a from GRUB menu entry has the follow format:

grubby --remove-args="argX argY" --args="argA argB" --update-kernel /boot/<kernel>

But I think that will only change the setting for one kernel. If you want the setting applied to future kernel installations, I think you will need to modify /etc/kernel/cmdline.