Bug 16576 - USB devices are not powered off at shutdown
Summary: USB devices are not powered off at shutdown
Status: RESOLVED INVALID
Alias: None
Product: Drivers
Classification: Unclassified
Component: USB (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Greg Kroah-Hartman
URL: https://bugs.launchpad.net/ubuntu/+so...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-13 01:32 UTC by Mohamed Amine IL Idrissi
Modified: 2012-02-22 21:11 UTC (History)
0 users

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Patch 1 that turns off all usb devices (407 bytes, patch)
2010-08-13 01:32 UTC, Mohamed Amine IL Idrissi
Details | Diff
Patch 2 that turns off all usb devices (52 bytes, text/plain)
2010-08-13 01:33 UTC, Mohamed Amine IL Idrissi
Details

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.

Note You need to log in before you can comment on or make changes to this bug.