Views:
16,262β
Votes: 9β
β
Solution
Tags:
usb
18.04
Link:
π See Original Answer on Ask Ubuntu β§ π
URL:
https://askubuntu.com/q/1056420
Title:
USB ports not working after resume from sleep on Ubuntu 18.04
ID:
/2018/07/15/USB-ports-not-working-after-resume-from-sleep-on-Ubuntu-18.04
Created:
July 15, 2018
Edited: December 19, 2020
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
This answer from Unix & Linux Stack Exchange (slightly enhanced here) has a solution.
- Edit
/etc/default/grub
and find the line containingLINUX_DEFAULT
. Change the line from:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1"
-
Save the file, run
sudo update-grub
, and reboot. -
After using this, you will find:
$ cat /sys/module/usbcore/parameters/autosuspend
-1
The default value is 2
. The kernel parameter changes this value.
Setting the kernel parameter helped me. Now my mouse works again when resuming from suspend.
Suggestion: When USB devices donβt work after suspend, you can also reload the driver using the following commands as root:
modprobe -r uhci_hcd
modprobe uhci_hcd
and/or:
modprobe -r ehci_hcd
modprobe ehci_hcd