Preventing the wireless mouse from waking up a suspended laptop?
Adam Funk
a24061 at ducksburg.com
Thu Dec 22 20:00:03 UTC 2022
On 2022-11-25, Colin Law wrote:
> On Wed, 23 Nov 2022 at 10:21, Adam Funk <a24061 at ducksburg.com> wrote:
>>
>> (I'm running Ubuntu-MATE 22.04 LTS on my current laptop, but I've had
>> the same problem with all previous versions and laptops.)
>>
>> If my USB wireless mouse is moved while the laptop is suspended (with
>> the lid closed), the laptop wakes up. I have to remember to flip the
>> switch on the underside of the mouse off before moving it
>> anywhere. (Otherwise I get to work/home and find that the laptop is
>> warm and the battery has dropped 10% or so.)
>>
>> Is there an option to disable this so only the keyboard can wake it
>> up?
>
> Most usb ports are powered down when the laptop is disabled, so the
> receiver should not signal anything. My laptop has one which stays
> powered up. perhaps you have plugged the receiver into one of those.
>
> Otherwise this may help
> http://www.das-werkstatt.com/forum/werkstatt/viewtopic.php?f=7&t=1985
I have figured it out by combining that link with these two:
https://askubuntu.com/questions/152403/how-do-i-make-changes-to-proc-acpi-wakeup-permanent
https://askubuntu.com/questions/1146264/apply-the-proc-acpi-wakeup-settings-permanently
'/proc/acpi/wakeup' didn't have anything with "USB" in the name or
anything else I could recognize, but
'/sys/devices/pci0000:00/0000:00:14.0/usb1/idVendor' and
the 'idProduct' file in the same directory match the device id in
`lsusb` output, and
that directory is a symlink pointing to
'/sys/devices/pci0000:00/0000:00:14.0/usb1', and
that number matches the stuff in the 'XHC' line of the wakeup file, so
I used acpitool -w and then -W to disable it.
Thanks for the pointer!
More information about the ubuntu-users
mailing list