You are not logged in.
I tried the udev rule from the udev page: Waking_from_suspend_with_USB+device
$ cat /etc/udev/rules.d/50-disable-logitech-mouse-wakeup.rules
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c53f", ATTR{power/wakeup}="disabled"
After
$ udevadm test /sys/bus/usb/devices/3-2
The result:
$ cat /sys/bus/usb/devices/3-2/power/wakeup
disabled
It do actually work, but there is one problem. It just won't load the rules after reboot.
I find out that I must replug the bluetooth dongle in order to load the rules.
Just want to ask is there any way to make udev load rules after reboot while the USB dongle is still on?
Last edited by Azimath (2023-11-04 16:13:39)
Offline
If the device shows up too_early™, you might have to add the rule to the initramfs, https://wiki.archlinux.org/title/Udev#Debug_output
If that's not the problem, please post your complete system journal for the boot:
sudo journalctl -b | curl -F 'file=@-' 0x0.st
Offline
Thanks for pointing out that I need to put the rules into the initramfs, now it works like charm.
Offline
\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline