Re: Tool to enable USB power management

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

 



Hi Sarah,
	It is a new-ish kernel;

[antonia] ~ > uname -r
2.6.28.4

but I probably don't have that option enabled. Hmm, that option isn't in the config;

[root@antonia usb-pm-tool]# grep USB_PM /usr/src/kernels/linux-2.6.28.4/.config
<nothing>

I see there is a CONFIG_USB_SUSPEND, is that the one? I don't have that enabled. I do have the power directory but it doesn't have those files in it;

[root@antonia usb-pm-tool]# ls /sys/bus/usb/devices/usb3/3-1/power/
persist  wakeup

						regards,

						Stephen.


On Tue, 24 Feb 2009, Sarah Sharp wrote:

On Wed, Feb 25, 2009 at 12:22:37AM +0100, Stephen J. Gowdy wrote:
Hi Sarah,
	I just tried two devices and the script said they failed. However,
there were lots of errors from the script so perhaps I need something
else turned on in my kernel? I've attached the broke-devices file anyway.
Here is the output from the script;

These devices support auto-suspend and can be tested:
     1  Bus 003 Device 003: ID 03f0:171d Hewlett-Packard Wireless
(Bluetooth + WLAN) Interface [Integrated Module]
     2  Bus 005 Device 002: ID 08ff:2580 AuthenTec, Inc. AES2501
Fingerprint Sensor

Which USB device would you like to test? (0 cancels test): 1

cat: /sys/bus/usb/devices/3-1/power/autosuspend: No such file or directory
cat: /sys/bus/usb/devices/3-1/power/level: No such file or directory
cat: /sys/bus/usb/devices/usb3/power/level: No such file or directory
Enabling auto-suspend.  ./usb-pm-tool.sh: line 276:
/sys/bus/usb/devices/3-1/power/autosuspend: No such file or directory
./usb-pm-tool.sh: line 278: /sys/bus/usb/devices/usb3/power/level: No
such file or directory
./usb-pm-tool.sh: line 280: /sys/bus/usb/devices/3-1/power/level: No such
file or directory

Do you have CONFIG_USB_PM enabled?  From this output it looks like you
don't have that option enabled.  Or maybe you're running on a really old
kernel that doesn't have the level or autosuspend files?  Can you run
uname -a?

Sarah

On Tue, 24 Feb 2009, Sarah Sharp wrote:

A couple months ago, I started on a tool to automatically test and enable
automatic power management for USB devices.  The USB Power Management tool (USB
PM tool) is now mostly complete, and is available for download:

	git clone git://git.moblin.org/usb-pm-tool.git

I would love for people to start testing USB devices with this tool.  I haven't
yet found any devices that can't handle selective suspend, so I really need
testers with broken USB devices.

If you run the tool and test a couple devices, please send me these two files:

	/etc/usb-pm-tool/pm-enabled-devices.txt
	/etc/usb-pm-tool/pm-broken-devices.txt


About the tool:
==============

The script usb-pm-tool.sh will present the user with a list of devices on their
system that are capable of auto-suspend.  The user picks a device to test,
follows the prompts on the screen, and reports whether the device works
successfully after the auto-suspend test.

If the device passes the test, the script will prompt the user if they always
want to enable auto-suspend for this device.  If so, the script will generate a
udev rule to enable auto-suspend for the device whenever it is plugged in.
Enabling auto-suspend will lower system power consumption, but only if *all* the
USB devices on the system have auto-suspend enabled.

Eventually I want the tool to ask the user if they want to send info about their
device to a centralized server.  Then people could download the latest list of
devices that correctly auto-suspend.  That's still work in progress.

Thanks for testing!

Sarah Sharp
--
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


--
 /------------------------------------+-------------------------\
|Stephen J. Gowdy                     | CERN       Office: 8-1-11|
|http://cern.ch/gowdy/                | CH-1211 Geneva 23        |
|                                     | Switzerland              |
|EMail: gowdy@xxxxxxx                 | Tel: +41 76 487 2215     |
 \------------------------------------+-------------------------/

03f0:171d
Notes:  Device disconnected during test.
08ff:2580
Notes:  Device disconnected during test.


--
 /------------------------------------+-------------------------\
|Stephen J. Gowdy                     | CERN       Office: 8-1-11|
|http://cern.ch/gowdy/                | CH-1211 Geneva 23        |
|                                     | Switzerland              |
|EMail: gowdy@xxxxxxx                 | Tel: +41 76 487 2215     |
 \------------------------------------+-------------------------/
--
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