Re: Tool to enable USB power management

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

 



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
-- 
1.5.6.5

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