USB devices disconnecting
USB devices disconnect (and reconnect, if wired) constantly, i believe it's related to this usb powersaving setting I'v found, but I am very inexperienced with linux overall and am having trouble troubleshooting this properly
setting is located in /sys/module/usbcore/parameters/autosuspend.
far as I can tell, there's no actual corresponding setting for this listed anywhere, not anywhere obvious like power-management atleast
trying to figure out how to overwrite that file, my understanding is that with bazzite being an immutable distro there's no easy way for me to actually edit system files like that.
it'll ask for my password to elevate access when attempting to save over, but then it'll still say i can't overwrite
making the change permanent is separate issue though, right now i'm just trying to figure out if that's actually the cause of my weird usb-devices problem, but I can't figure out any way to change that 2 to a -1. any help would be appreciated.
setting is located in /sys/module/usbcore/parameters/autosuspend.
far as I can tell, there's no actual corresponding setting for this listed anywhere, not anywhere obvious like power-management atleast
trying to figure out how to overwrite that file, my understanding is that with bazzite being an immutable distro there's no easy way for me to actually edit system files like that.
it'll ask for my password to elevate access when attempting to save over, but then it'll still say i can't overwrite
making the change permanent is separate issue though, right now i'm just trying to figure out if that's actually the cause of my weird usb-devices problem, but I can't figure out any way to change that 2 to a -1. any help would be appreciated.
Solution
just like any other linux system you can just add
in bazzite you do it with
also the only read only part of the system is
usbcore.autosuspend=-1 to the kernel arguments to turn off usb autosuspendin bazzite you do it with
rpm-ostree kargs --append-if-missing="usbcore.autosuspend=-1"also the only read only part of the system is
/usr/sys is temporariy so nothing you change there is kept even on a normal distro so nothing of what you have been trying to do would have been stopped by bazzite having /usr read only (you also need to change the files in /sys using echo blah | sudo tee from a terminal prompt to temporarily change them)