Here is the (original) output from #cat /proc/acpi/wakeup:
Code: Select all
Device S-state Status Sysfs node
PCI0 S5 *disabled no-bus:pci0000:00
USB0 S3 *enabled pci:0000:00:12.0
USB1 S3 *enabled pci:0000:00:12.2
USB2 S3 *enabled pci:0000:00:13.0
USB3 S3 *enabled pci:0000:00:13.2
USB4 S3 *enabled pci:0000:00:16.0
USB5 S3 *enabled pci:0000:00:16.2
USB6 S3 *enabled pci:0000:00:14.5
SBAZ S4 *disabled
PEX0 S5 *disabled pci:0000:00:15.0
PEX1 S5 *disabled pci:0000:00:15.1
PEX2 S5 *disabled
PEX3 S5 *disabled
P2P S5 *disabled pci:0000:00:14.4
PCE2 S4 *disabled pci:0000:00:02.0
PCE3 S4 *disabled
PCE4 S4 *disabled
PCE5 S4 *disabled
PCE6 S4 *disabled
PCE7 S4 *disabled
PCE9 S4 *disabled pci:0000:00:09.0
PCEA S4 *disabled pci:0000:00:0a.0
PCEB S4 *disabled
PCEC S4 *disabled
PS2M S5 *disabled
PS2K S5 *disabled
Code: Select all
echo USB0 > /proc/acpi/wakeup; echo USB1 > /proc/acpi/wakeup; echo USB2 > /proc/acpi/wakeup; echo USB3 > /proc/acpi/wakeup; echo USB4 > /proc/acpi/wakeup; echo USB5 > /proc/acpi/wakeup; echo USB6 > /proc/acpi/wakeup
Next, I hibernated. Once that was done shaking and clicking the mouse did nothing (as desired) but pressing the space bar woke the machine up.
The mouse has a PS/2 type connector coupled with an adapter that plugs into a processor box USB port. The keyboard is plugged directly into a USB port.
The computer is a generic tower case running Debian 9.2 with the MATE desktop.
(Question 2:) When researching this on the internet, (https://wiki.archlinux.org/index.php/Po ... _hibernate, and yes, I know Arch is not Debian) it said you can toggle the wakeup options (using echo, as shown above) but at the end of the next boot they're reset to their defaults; so I wrote a script to re-disable them on every boot:
Code: Select all
[Unit]
Description=Disable USB wakeup triggers in /proc/acpi/wakeup
[Service]
Type=oneshot
ExecStart=/bin/sh -c "echo USB0 > /proc/acpi/wakeup; echo USB1 > /proc/acpi/wakeup; echo USB2 > /proc/acpi/wakeup; echo USB3 > /proc/acpi/wakeup; echo USB4 > /proc/acpi/wakeup; echo USB5 > /proc/acpi/wakeup; echo USB6 > /proc/acpi/wakeup"
ExecStop=/bin/sh -c "echo USB0 > /proc/acpi/wakeup; echo USB1 > /proc/acpi/wakeup; echo USB2 > /proc/acpi/wakeup; echo USB3 > /proc/acpi/wakeup; echo USB4 > /proc/acpi/wakeup; echo USB5 > /proc/acpi/wakeup; echo USB6 > /proc/acpi/wakeup"
RemainAfterExit=yes;
[Install]
WantedBy=multi-user.target
Code: Select all
# systemctl enable disable-USB-wakeup.service
# systemctl start disable-USB-wakeup.service
I am open to suggestion.
Caitlin