Skip to content

Instantly share code, notes, and snippets.

@gpetuhov
Last active February 7, 2024 02:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gpetuhov/cb2f53d438ad7b9051c72f5c2149f84f to your computer and use it in GitHub Desktop.
Save gpetuhov/cb2f53d438ad7b9051c72f5c2149f84f to your computer and use it in GitHub Desktop.
Ubuntu USB autosuspend disable
If Android phone constantly disconnects:
1. Try to disable Ubuntu USB autosuspend
https://www.makeuseof.com/tag/fix-usb-device-port-linux/
cat /sys/module/usbcore/parameters/autosuspend
(if the result is 2, then autosuspend is enabled)
sudo nano /etc/default/grub
Change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1"
and save file
sudo update-grub
reboot system
After reboot
cat /sys/module/usbcore/parameters/autosuspend
(result should be -1)
2. Another solution:
Turn off usb intel xhci mode in BIOS (this will turn off USB 3.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment