Preventing usb mouse from waking computer

Hello, I have a Logitech G Pro X Superlight mouse which will wake the computer from sleep without ever being moved. I’m trying to disallow it from ever triggering a wake event, which is something I have done before by preventing any USB device from waking the computer (although it’s been a long time and I can’t find my notes so I don’t remember how I did it). I would like to disable on this mouse and allow other devices to wake the computer butI haven’t been able to find a solution from searches.

This is the device from lsusb I want to block:

Bus 001 Device 017: ID 046d:c547 Logitech, Inc. USB Receiver

Any help would be greatly appreciated!

Check the following guide out:
https://wiki.archlinux.org/title/Power_management/Wakeup_triggers

That was it, thank you! The following udev rule prevents it from being able to wake the computer.

ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c547", ATTR{power/wakeup}="disabled"

I think at some point in the past I did this successfully, didn’t take good notes, and didn’t manage to stumble upon this arch wiki entry when I was searching to try and fix it again.

Thank you so much for your help!!

Good result. Glad to have been of guidance.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.