Re: Tool to enable USB power management

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

 



(Have you made other changes in the script as that line was earlier than 321?)

[root@antonia usb-pm-tool]# ./usb-pm-tool.sh

USB Power Management Tool v 0.1
Copyright (c) 2008 Intel Corporation
Author Sarah Sharp <sarah.a.sharp@xxxxxxxxxxxxxxx>

Type `./usb-pm-tool.sh --help` for more info


You will not be able to test these devices on your system:
Bus 001 Device 009: ID 058f:6362 Alcor Micro Corp. Hi-Speed 21-in-1 Flash Card Reader/Writer (Internal/External)
           drivers without auto-suspend support:  usb-storage
     Bus 001 Device 008: ID 057b:0000 Y-E Data, Inc. FlashBuster-U Floppy
           drivers without auto-suspend support:  usb-storage
Bus 001 Device 007: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 USB-2.0 "TetraHub"
           drivers without auto-suspend support:  usb-storage usb-storage
Bus 003 Device 002: ID 03f0:171d Hewlett-Packard Wireless (Bluetooth + WLAN) Interface [Integrated Module]
           drivers without auto-suspend support:  btusb btusb


These devices support auto-suspend and can be tested:
1 Bus 001 Device 010: ID 03f0:2424 Hewlett-Packard LP1965 19" Monitor Hub 2 Bus 005 Device 002: ID 08ff:2580 AuthenTec, Inc. AES2501 Fingerprint Sensor

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

Enabling auto-suspend.  Waiting for device activity to cease...

Device 54152527 - 54152321; parent 54168123 - 54167917
Device still active, test inconclusive.


On Wed, 25 Feb 2009, Sarah Sharp wrote:

On Wed, Feb 25, 2009 at 07:36:55PM +0100, Stephen J. Gowdy wrote:
No, I've not used it for a while. I did install drivers for it at first
but I didn't find it dependable enough. You could see from the usbtree
output there is/was no driver loaded for it.

Hmm, ok.  Can you try the following patch and paste the whole output
from the tool?  The code to check for device inactivity is a bit of a
kludge, and might not work well if your machine is very slow or there's
a lot of activity going on.

Sarah

---
usb-pm-tool.sh |    1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/usb-pm-tool.sh b/usb-pm-tool.sh
index 1a7ae48..df87bb7 100755
--- a/usb-pm-tool.sh
+++ b/usb-pm-tool.sh
@@ -321,6 +321,7 @@ fi
# it's parent's active time delta?  If so, the device suspended successfully.
# The delta times can be off because of delay between the cat commands.
# Put in a slight buffer
+echo "Device $TIME2 - $TIME; parent $PARENT_TIME2 - $PARENT_TIME"
if [ $(($TIME2 - $TIME)) -ge $((($PARENT_TIME2 - $PARENT_TIME) * 7 / 8)) ]; then
	echo "Device still active, test inconclusive."
	exit 1


--
 /------------------------------------+-------------------------\
|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