Prevent mouse from waking pc from sleep

Hello, my Logitech G Pro X Superlight will wake my system from sleep without any input. My solution in other distros has been to disable USB wake. I’m new to silverblue, is there a way to disable just my mouse from waking from sleep and allow other USB devices to wake the computer? Thanks!

I managed to solve it - see this answer: USB Wakeup Settings? - #2 by kuba-orlik

The best and easiest way is to put something like this into /etc/udev/rules.d/wakeup.rules:

# Prevent Logitech (046d) Bolt (c548) devices from waking up the computer
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c548", ATTR{power/wakeup}="disabled"

You’ll have to replace the vendor and device codes (046d and c548 respectively) with whatever device is waking up your PC. It’s usually not hard to figure that out, e.g.:

$ lsusb
...
Bus 001 Device 003: ID 046d:c548 Logitech, Inc. Logi Bolt Receiver
...

This solution is independent of which USB port the device is plugged in.