Re: USB power save, battery life and laptops - testers wanted

From: Hans Petter Selasky <hselasky_at_c2i.net>
Date: Sun, 21 Dec 2008 16:56:36 +0100
Hi,

I need some help testing out my USB powersave implementation. There are now 
multiple levels of USB power save:

1) Turn off USB controller schedules when there are no transactions (1-4 
seconds, not tuneable)
2) Suspend actual USB device (30 seconds, tuneable)

Powersave is enabled by default.

Tuneables:
==========

How to set power save delay in seconds:

sysctl hw.usb2.power_timeout=10

How to disable power save for the given USB device:

usbconfig -u xxx -a yyy power_on

How to enable power save for the given USB device:

usbconfig -u xxx -a yyy power_save

Known to work:
==============

EHCI+UHCI

OHCI - not tested yet

How to install on FreeBSD -current (8.x)
========================================

svn --username anonsvn --password anonsvn \
      checkout svn://svn.turbocat.net/i4b

cd i4b/trunk/i4b/src/sys/dev
cp -r usb2 /sys/dev/
make -C /sys/modules/usb2 clean all install

--HPS
Received on Sun Dec 21 2008 - 14:54:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:39 UTC