short commands
prevent wakeup by touching hid
# view configuration
> cat /proc/acpi/wakeup
....
Device S-state Status Sysfs node
X162 S4 *disabled
GP17 S4 *enabled pci:0000:00:08.1
XHC0 S4 *enabled pci:0000:06:00.3
XHC1 S4 *enabled pci:0000:06:00.4
PS2K S3 *disabled
PS2M S3 *disabled
X161 S4 *disabled
PTXH S4 *enabled pci:0000:01:00.0
X1_1 S4 *disabled
X1_2 S4 *disabled
WIFI S4 *disabled pci:0000:03:00.0
RLAN S4 *disabled pci:0000:04:00.0
M2_2 S4 *disabled
# disbale hid`s teporarly
> echo XHC0 > /proc/acpi/wakeup
> echo XHC1 > /proc/acpi/wakeup
# persistent solution
> edit /etc/tmpfiles.d/disable-usb-wake.conf
# Path Mode UID GID Age Argument
w /proc/acpi/wakeup - - - - XHC0
w /proc/acpi/wakeup - - - - XHC1
check (
systemd-tmpfiles
)[https://man.archlinux.org/man/systemd-tmpfiles.8] for more details
25-02-2021