PDA

View Full Version : USB not working after suspend


stukov
07-17-2008, 03:00 PM
Hello,

One of the laptops I manage is having problems with the suspend/resume functions. After a few suspends/resumes, all USB devices suddenly stop working. Even the laser of the USB mouse stops working.

Do you think that this problems is more related to the hardware of the machine? Or could this be some kind of kernel module failling?

The laptop is an IBM ThinkPad X31. It is running a fresh install of Ubuntu 8.04 LTS.


Thanks for any insights.

davidgurvich
07-17-2008, 05:32 PM
For the mouse try adding hint.psm.0.flags="0x3000"to /boot/loader.conf. For usb in general look at /etc/rc.suspend and /etc/rc.resume. I added an 'ifconfig ... down' statement to rc.suspend and reset in rc.resume. If it's only one or two devices something similar may work.

Changing the irq settings in the bios may help. On an older thinkpad I've set them to auto, the default was 11.

stukov
07-17-2008, 06:13 PM
Thanks for the reply davidgurvich, but I think your solution applies only to *BSD OSes. I am currently dealing with Ubuntu 8.04 LTS :(

I'll try the IRQ thing, thanks!

Thanks anyway!

davidgurvich
07-18-2008, 02:28 AM
Sorry about that, I missed which forum the post was in. Unloading the usb modules on suspend and reloading them on resume may work. There should be specific scripts for suspend and resume in /etc/ somewhere. You may have to restart some services also.

stukov
07-21-2008, 03:01 PM
Thanks for the reply. I am going to test a few things. I'll post the solution back here when something working will be in place.

stukov
08-11-2008, 07:48 PM
Reloading the usb modules only freezes the terminal... and playing with the IRQs was of no help...

Suggestions are still appreciated. Thanks fo your posts davidgurvich.