You are not logged in.

#1 2023-06-19 17:45:31

dan361
Member
Registered: 2022-06-24
Posts: 1

udev rule for waking up my system not working after re-connect

Hey,

I got a setup with a USB hub that can be switched between systems (in my example between my work laptop and my private machine).

Because both mouse and keyboard are connected to this hub to be switched on a single press between systems I am looking for a solution after I switched for example to work laptop and then to my suspended private machine.

What works:

- Wakeup from keyboard/mouse action when the hub wasn't disconnected

I wrote a udev rule according to the wiki:

Here is all the output:

lsusb
Bus 001 Device 017: ID 05e3:0610 Genesys Logic, Inc. Hub <--- switchable usb hub
Bus 001 Device 019: ID 0951:16d3 Kingston Technology HyperX Pulsefire Surge <-- mouse
Bus 001 Device 018: ID 0951:16e6 Kingston Technology HyperX Alloy Origins Core <-- keyboard
grep 0610 /sys/bus/usb/devices/*/idProduct 
/sys/bus/usb/devices/1-10/idProduct:0610

udev rule:

ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="05e3", ATTRS{idProduct}=="0610", ATTR{power/wakeup}="enabled", ATTR{driver/1-10/power/wakeup}="enabled"

After I suspend my private machine and switch to my work laptop (which is kinda a disconnect I guess) and then re-switching back to my private machine nothing happens.

I am not sure if the hub itself needs power maybe , this is what I didn't try yet but as I only connect kb/mouse this should be enough power I guess.

Any hints?

Thanks

Offline

Board footer

Powered by FluxBB