USB problems solved

I'm not sure if this belongs here but my friend told me to communicate the solution I found to somewhere in Bazzite Discord.

I've had problems with my wireless mouse not connecting to dongle after I've turned my computer on. I've needed to take the dongle off and put it back on to port for it to work.
Second problem I've had has been with OpenRGB. My motherboard and RAM light's has always been restored back to default after turning computer on.

So here's the solution that worked for me I think I didn't break anything πŸ˜„ (This is day 3 and computer working fine)

Used this to see power control which is on and which is auto
cat /sys/bus/usb/devices/*/power/control


then this to force keep power on in USBs
echo on | sudo tee /sys/bus/usb/devices/usb*/power/control


then create udev-rule
sudo nano /etc/udev/rules.d/99-usb-power.rules


Rule:
ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{power/control}="on"


I hope this helps some people who has these kind of problems πŸ˜„
Solution
Used this to see power control which is on and which is auto
cat /sys/bus/usb/devices/*/power/control


then this to force keep power on in USBs
echo on | sudo tee /sys/bus/usb/devices/usb*/power/control


then create udev-rule
sudo nano /etc/udev/rules.d/99-usb-power.rules


Rule:
ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{power/control}="on"


I hope this helps some people who has these kind of problems πŸ˜„
Was this page helpful?