[PATCH] usb: power off devices at shutdown

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

For 4 years of using linux I have problem with my USB devices on my
desktop PC. When was mouse (SD card reader, ...) plugged, still lights
(and after shutdown too). Finally some days ago I found solution of my
problem on page https://bugzilla.kernel.org/show_bug.cgi?id=5410 .
Here is also defined this problem.

I write new patch file
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/42149/+attachment/1484850/+files/usb-new.patch
and this solve my problem. When I rmmod module ohci-hcd (or shutdown
PC) all USB devices power off too.

Without this patch, I tried echo suspend >
/sys/bus/usb/devices/$USB/power/level . When module ohci-hcd was
loaded, $USB power off. But when I rmmod ohci-hcd, all USB devices
immediately power on (same after shutdown PC), it ignore power/level
settings.

With this patch I dont change power/level, it automatically power off
USB devices when ohci-hcd is unloaded.

Sorry, but I dont understand what this usb modules in kernel doing,
I'm only linux kernel user.

PS: I'm not in list, please CC my email address.

-- 
Pali Rohár
pali.rohar@xxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux