How to add usb port to usb wake up list?
Hi, I have a usb dongle connected to a wireless controller? I checked its /etc folder and there is no /power/wakeup files.
1. How can we add this usb port to a list of usb wakeup from sleep?
2. Or how to keep that usb on during sleep?
4 Replies
I have the same issue on my Rog Ally X. @Ratha have you found any fix to this?
I'm trying to make my 8BitDo Ultimate wake up my device. It seems like the power/wakeup file does not get created in
/sys/bus/usb/devices/usbX/power/wakeup
where usbX is the bus/device combination.
I don't think it's BIOS related because a cheap 2.4ghz dongle mouse is able to wake it up if I move the mouse.No answer from the team yet. It is probably due to rule and XInput. Something I don't understand yet.
This guy can do it on his manjiro. I asked him but no reply yet. https://youtu.be/Q2tuKK1HXBk?si=kZeTdyhMOysH6RSx
F K Tech
YouTube
Wake up Mini PC using Game Controller | Manjaro Linux
I always wanted to use my Mini PC as a gaming console and this is one of the convenience to control almost all the expect of the device using just the controller.
Controller Used: 8BitDo Ultimate (Thanks to 8BitDo for sending the test units)
Mini PC: @minisforumofficial UM790-Pro
I managed to get it to work based on this post: https://discord.com/channels/1072614816579063828/1320873947344015523
I have the 8BitDo dongle connected via a USB-C Dock. You need to find out which USB bus and device your 8BitDo Controller is. To find that out run this command
sudo dmesg | grep usb
. On my end, the controller is on 5-1.2:
Next step is creating a udev rule so that it writes the power/wakeup to the controller (or parent device). Whenever I inspected the device using udevadm info -a -p /sys/bus/usb/devices/5-1.2
the actual device/controller does not show an ATTRS{power/wakeup} entry. The parents did though (5-1 and usb5). I had to enable the wakeup for 5-1 (USB port of the 8BitDo controller) and usb5 (whole usbc dock). Not sure if that applies to your controller or if you're using a dock but it might help.
This is my udev rule (sudo nano /etc/udev/rules.d/10-wakeup.rules
):
If you want to test it before rebooting you can trigger it via:
The reason why I enabled wakeup for the whole dock is because the controller would not wake it up if the device was put to sleep while the controller was off. So if I have my controller off/charging on it's dock and the device reboots or I put it to sleep then I would not be able to wake it with the controller. I could only wake it up if the controller was connected to it before sleeping.
The drawback is that the device will listen for other wake signals from the dock. Like once you connect or disconnect the whole dock it triggers a wake signal. Another one is that if you turn off the controller or put it on charging dock while the device is sleeping it will send a wake signal to the device. I can live with that since my controller charger/dongle is next to the device so I can just press the sleep button after I put the controller in it's charging dock.
Feel free to ping me if you need help.