Hi – I’m basically using this forum as my external memory.
I’ve been noticing that in the winter my 978 dongle goes to red status (disconnected) after a certain amount of time with no pings from 978 aircraft. Due to bad weather, no 978 aircraft are flying, and after an unknown amount of time my ubuntu box shuts off the usb port it’s attached to to save power.
I don’t need this feature. It’s called USB autosuspend. I googled it and this is how to turn off the USB autosuspend in Ubuntu. I have 24.04, but it seems to work on most versions within the last 10 years or so.
Thanks to this link and this link for showing me the way–
sudo sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="[a-z ]*/& usbcore.autosuspend=-1/' /etc/default/grub
sudo update-grub2
reboot
Then check that USB autosuspend is actually returning -1 (mine was returning 2 until I switched it to -1)
cat /sys/module/usbcore/parameters/autosuspend
And you should be all set.
The askubuntu link has a slightly different set of commands that gets you to the same place (well, it reloads grub instead of grub2). I only tried the one above (from github), not this one, but they should both get you there–
sudo sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="/&usbcore.autosuspend=-1 /' /etc/default/grub
sudo update-grub
sudo systemctl reboot