Quantcast
Channel: Since 19.10 update, mouse movement wakes computer from sleep - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4

Answer by heynnema for Since 19.10 update, mouse movement wakes computer from sleep

$
0
0

I found something similar in an old post from 2017 at Mouse movement wakes computer from suspend, can't disable it, and the output of

grep --color -E '|enabled' /sys/bus/usb/devices/*/power/wakeup

shows:

/sys/bus/usb/devices/1-1.3.1/power/wakeup:disabled/sys/bus/usb/devices/1-1.3/power/wakeup:disabled/sys/bus/usb/devices/1-1/power/wakeup:disabled/sys/bus/usb/devices/2-1.4/power/wakeup:disabled/sys/bus/usb/devices/2-1/power/wakeup:disabled/sys/bus/usb/devices/2-2/power/wakeup:enabled/sys/bus/usb/devices/3-1.4/power/wakeup:disabled/sys/bus/usb/devices/3-1/power/wakeup:disabled/sys/bus/usb/devices/usb1/power/wakeup:disabled/sys/bus/usb/devices/usb2/power/wakeup:disabled/sys/bus/usb/devices/usb3/power/wakeup:disabled

As you can see, USB device 2-2 is enabled. If I unplug the Logitech Unifying receiver, and plug it back in, and repeat the grep command, it now shows as disabled. This means that enabled status is only determined at boot time.

My current fix is to edit /etc/rc.local and add...

# Disable wake computer from mouse movementfor f in /sys/bus/usb/devices/*/power/wakeupdo   echo "disabled"> $fdone

just BEFORE the exit 0 found at the end of the file. This forces all USB devices to show as disabled.

Sleep still works. And the mouse movement no longer wakes from sleep.


Viewing all articles
Browse latest Browse all 4

Trending Articles