Fixing USB after powerpc resume

SmasSive smassive at menta.net
Tue Mar 22 02:54:04 CST 2005


The script works perfectly on my usb mouse. Good job!



El lun, 21-03-2005 a las 12:00 +0100, Martin Pitt escribió:
> Hi everybody!
> 
> At least on my iBook G4, USB devices do not work any more (or at least
> not correctly) after resuming from Suspend-To-RAM. [1]
> 
> A relatively safe and easy workaround is to put the following script
> into /etc/power/resume.d/:
> 
> --------------------------
> $ cat /etc/power/resume.d/usb
> #!/bin/sh
> rmmod ohci_hcd
> rmmod ehci_hcd
> modprobe ohci_hcd
> modprobe ehci_hcd
> --------------------------
> 
> This reloads the USB host controller modules, which makes USB devices
> work fine again. Can other ppc users please check this? Does USB work
> for you after resume out of the box? If not, does a script like the
> above one help?
> 
> If there is consensus to fix this, I'd like to add a simlar script to
> the pbbuttonsd package. Of course this needs some tweaks (UHCI
> support, and only load the module if it was actually loaded before).
> 
> Thanks,
> 
> Martin
> 
> [1] See https://bugzilla.ubuntu.com/show_bug.cgi?id=7619
> 




More information about the ubuntu-devel mailing list