Wednesday, July 4, 2018

Stop mouse from waking the system


cat /proc/acpi/wakeup | sort
and look for items that are marked "enabled".
Then, test which of the commands like below stop the mouse from waking up the PC:
sudo sh -c "echo EHC1 > /proc/acpi/wakeup"
sudo sh -c "echo EHC2 > /proc/acpi/wakeup"
sudo sh -c "echo NXUC > /proc/acpi/wakeup"
If the `/etc/rc.local` file doesn't exist - create it and make it executable:

printf '%s\n' '#!/bin/bash' 'exit 0' | sudo tee -a /etc/rc.local
sudo chmod +x /etc/rc.local
and add (kate /etc/rc.local) like so:

echo EHC1 > /proc/acpi/wakeup
echo EHC2 > /proc/acpi/wakeup
echo NXUC > /proc/acpi/wakeup

exit 0


No comments:

Post a Comment