Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
27
rated 0 times [  27] [ 0]  / answers: 1 / hits: 46855  / 3 Years ago, sun, august 8, 2021, 1:17:21

I have a HP pavillion g6, running Xubuntu 14.04 64-bit. I have 3 USB ports. For some reason, 2 of them stopped working this morning.



I have xserver-xorg-input-all installed, followed the instructions here which didn't work. My laptop is updated and upgraded to the latest version. lsusb outputs



Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0a5c:21e3 Broadcom Corp. HP Portable Valentine
Bus 001 Device 005: ID 2188:0ae1
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


I tried on Manjaro live cd, and all ports are working. Isn't there an error log for usb ports so i can see whats going on?



My /var/log/dpkg.log and /var/log/apt/history.log are here


More From » 14.04

 Answers
6

Here I got my USB3 ports not working after a while: only a restart fixes the problem.



After some research, I've found that a lot of USB3 ports presents a power management problem In a lot of different hardwares and OSs. You can find people reporting this kind of problem on Windows, Linux, etc.



So, I've disabled USB power management, and now everything is fine.



1. Disabling USB Power Management



For Ubuntu, usbcore module is compiled in the kernel, so we need to change the kernel boot parameters.



Edit the /etc/default/grub file and change the GRUB_CMDLINE_LINUX_DEFAULT line to add the usbcore.autosuspend=-1 option:



GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1"


Note that quit splash were options already present. So keep other options you have too.



Save file and close.



2. Update grub



After save the file, update grub:



sudo update-grub


And reboot.



3. Check autosuspend after reboot



After reboot, check autosuspend value:



cat /sys/module/usbcore/parameters/autosuspend


And it should display -1.


[#23150] Monday, August 9, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
armis

Total Points: 38
Total Questions: 106
Total Answers: 118

Location: Mali
Member since Sat, Feb 12, 2022
2 Years ago
;