Ubuntu: Suspend USB power to a laptop cooling pad when going to suspend mode



Question:

When I suspend the laptop, the USB devices are left on. I don't mind this in general, however I'd like to be able to turn off the cooling pad under it. I tried the things outlined in the following:

however this doesn't work anymore in Linux 3.0.0. I read the kernel docs:

and tried this (also outlined here - http://www.thinkwiki.org/wiki/How_to_reduce_power_consumption):

for i in /sys/bus/usb/devices/*/power/autosuspend; do echo 1|sudo tee $i; done   for i in /sys/bus/usb/devices/*/power/level; do echo auto|sudo tee $i; done  

I can confirm this works properly for some devices - e.g. my USB keyboard auto-suspends as expected. However, some devices do not - e.g. my USB touchpad, USB hub it's connected to and the cooler are left with power.

My questions:

  • Why are devices behaving differently? Does this mean that it's up to each of the devices to decide whether to suspend?
  • Is there a way to determine whether a device will go into suspend mode?
  • Finally, is there a way to force a device to power down?


Solution:1

I had the same problem on a Toshiba Satellite L550D. I am running Linux Mint 17 and kernel 3.13.

I had Mint 9 on it previously and it ran really well. All USB ports powered down and the cooling pad went off too. Now it stays on and I found that the application acpitool was very helpful in solving the mystery.

acpitool -w      

lists all of the devices and their current status (either disabled or enabled)

I had 3 devices (the USB ports) that were "enabled". With acpitool -W # (number of entry) the device is set to disable.

I did it for all three devices and the power now goes off when the laptop goes into suspend.

This configuration will not survive reboots. So something more needs to happen (e.g. a startup script or some configuration change that will make those settings stick)


Solution:2

The reason for that can be hardware related and nothing to do with software.

Some motherboards now a days have an option to allow some of the USB ports to be always powered no matter the state of the computer: if its plugged in / batery connected, there is power on that USB connector.

That feature can be easily identifiable by the different symbol on the USB port and some computer makers have also an option on the BIOS to enable/disable that feature

enter image description here


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »