31

Possible Duplicate:
USB slots stop working suddenly from time to time

The usb ports of my laptop fail for some reason from time to time. This concerns apparently mainly the external mouse and keyboard connected by usb, while connecting an external hard disk to the same ports may activate them. All gets back to normal after restart. How could I get the same effect without restart?

Since the issue reemerges after reinstalling OS and due to random variations I have created a new question asking for a permanent solution.. In case I get an answer I will close this one.

EDIT: /sys/module/usbcore/parameters/autosuspend contais only the line 2. /sys/bus/usb/devices/usb2/power/autosuspend and /sys/bus/usb/devices/usb3/power/autosuspend contain 0 (This was verified after solving the problem by restart, not before..)

I do not see Legacy USB Support in BIOS

I have edited and updated this question because I have some answers and comments here: but for new solutions please try answering my new question.

3 Answers3

17

Make sure that all USB devices are unplugged/safely removed and then try:

sudo modprobe -r usbhid && sleep 5 && sudo modprobe usbhid

and

sudo modprobe -r usb-storage
sudo modprobe usb-storage

This will reload the kernel modules for USB keyboards/mice and usb hdd's, and might emulate whatever it is about restarting that is fixing your problem. Good luck.

ish
  • 141,990
adempewolff
  • 12,400
2

Another thing worth trying: restart the udev subsystem:

sudo restart udev

Tell us whether that one worked.

As for finding out what happens, I would start by going through the system logs. For example, when something like that happens, try

dmesg | tail

Otherwise, record the exact time, and later see in

/var/log/syslog

for example by

gksudo gedit /var/log/syslog
January
  • 37,208
0

a while ago I had the same problem with my openbox in Archlinux. This was due to laptop tools (or laptop mode tools) disabled the usb's after a few minutes of inactive.

The solution was to uninstall the package.