Fixing USB after powerpc resume

Martin Pitt martin.pitt at ubuntu.com
Mon Mar 21 05:00:41 CST 2005


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

-- 
Martin Pitt                       http://www.piware.de
Ubuntu Developer            http://www.ubuntulinux.org
Debian GNU/Linux Developer       http://www.debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.ubuntu.com/archives/ubuntu-devel/attachments/20050321/fb9512f9/attachment.pgp


More information about the ubuntu-devel mailing list