Comment 2 for bug 13964

Revision history for this message
Martin Pitt (pitti) wrote :

(In reply to comment #1)
> Removing the host controller driver is usually not a good idea. They are part of
> the suspend process and if you remove them, you'll probably consume more power
> than expected. However, unplugging the devices should help.

Oh, I already did unplug the devices (both the WLAN and the flash memory stick).
In the case of the WLAN I did:

 - shut down network interface (wlan0)
 - unplug the device
 - removed the modules (prism2_usb and p80211)
 - sleep
 - resume
 - load the modules again
 - plug -> device is not powered

Same for the flash drive, the device does not get power if the USB driver
(ohci_hcd) is loaded.

However, if the ohci modules should be loaded when going to sleep, then it also
works to drop suspend.d/usb and instead do:

$ cat /etc/power/resume.d/usb
#!/bin/sh
rmmod ohci_hcd
rmmod ehci_hcd
modprobe ohci_hcd
modprobe ehci_hcd