From owner-freebsd-current@FreeBSD.ORG Sun Dec 21 15:54:24 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F25A1065675; Sun, 21 Dec 2008 15:54:24 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.freebsd.org (Postfix) with ESMTP id 8BDA18FC08; Sun, 21 Dec 2008 15:54:23 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=JUWrZJl3310A:10 a=HLJsKEY6ouAA:10 a=1AwWA-ggXVpBKgDV7uoA:9 a=ND2af4viEZko2fkLxHoA:7 a=GR40GUKunbRtgrXWxZQktwi0gtQA:4 a=50e4U0PicR4A:10 Received: from [193.217.167.134] (account mc467741@c2i.net HELO [10.0.0.186]) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1173895502; Sun, 21 Dec 2008 16:54:21 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Sun, 21 Dec 2008 16:56:36 +0100 User-Agent: KMail/1.9.7 References: <200812201343.59663.hselasky@c2i.net> <6eb82e0812200557o2700eb8ble49b5bb062693f85@mail.gmail.com> In-Reply-To: <6eb82e0812200557o2700eb8ble49b5bb062693f85@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812211656.38478.hselasky@c2i.net> Cc: Rong-en Fan , freebsd-usb@freebsd.org Subject: Re: USB power save, battery life and laptops - testers wanted X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Dec 2008 15:54:24 -0000 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