You are not logged in.

#1 2023-05-04 09:29:56

Azimath
Member
Registered: 2022-09-04
Posts: 4

[Solved]Udev rules for disabling mouse from waking up doesn't working.

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

#2 2023-05-04 11:57:53

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,787

Re: [Solved]Udev rules for disabling mouse from waking up doesn't working.

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

#3 2023-05-06 03:32:45

Azimath
Member
Registered: 2022-09-04
Posts: 4

Re: [Solved]Udev rules for disabling mouse from waking up doesn't working.

Thanks for pointing out that I need to put the rules into the initramfs, now it works like charm. big_smile

Offline

#4 2023-05-06 05:41:31

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,787

Re: [Solved]Udev rules for disabling mouse from waking up doesn't working.

\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

Board footer

Powered by FluxBB