Bug 16576

Summary: USB devices are not powered off at shutdown
Product: Drivers Reporter: Mohamed Amine IL Idrissi (ilidrissiamine)
Component: USBAssignee: Greg Kroah-Hartman (greg)
Status: RESOLVED INVALID    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
URL: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/42149
Kernel Version: Subsystem:
Regression: No Bisected commit-id:
Attachments: Patch 1 that turns off all usb devices
Patch 2 that turns off all usb devices

Description Mohamed Amine IL Idrissi 2010-08-13 01:32:17 UTC
Created attachment 27422 [details]
Patch 1 that turns off all usb devices

After the machine is shut down are USB devices still powered, e.g. the optical mouse is still lighted. Other USB ports, even without any hardware connected, keep power too.

I have included two patches:
- The first patch directly turns off all usb devices without specifying module options. This might not work well on some machines, since this is untested code.
- The second patch turns off all usb devices only when specifying the "ohci_hcd.power_off_usb=1" module option.

This bug was originally reported on LaunchPad: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/42149
Comment 1 Mohamed Amine IL Idrissi 2010-08-13 01:33:44 UTC
Created attachment 27423 [details]
Patch 2 that turns off all usb devices
Comment 2 Greg Kroah-Hartman 2010-08-13 02:41:45 UTC
On Fri, Aug 13, 2010 at 01:32:20AM +0000, bugzilla-daemon@bugzilla.kernel.org wrote:
> Created an attachment (id=27422)
>  --> (https://bugzilla.kernel.org/attachment.cgi?id=27422)
> Patch 1 that turns off all usb devices

Please send all patches to the linux-usb@vger.kernel.org mailing list in
a format that we can apply them (read Documentation/SubmittingPatches
please.)

thanks,

greg k-h
Comment 3 Mohamed Amine IL Idrissi 2010-08-26 13:46:18 UTC
I just sent a message to linux-usb@vger.kernel.org containing a corrected patch. Hope it will be useful :)

PS: and sorry for being late ;)
Comment 4 Greg Kroah-Hartman 2012-02-22 21:11:12 UTC
All USB bugs should be sent to the linux-usb@vger.kernel.org mailing 
list, and not entered into bugzilla.  Please bring this issue up there,
if it is still a problem in the latest kernel release.