From owner-freebsd-mobile@FreeBSD.ORG Fri Feb 10 18:03:15 2006 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EFC916A422 for ; Fri, 10 Feb 2006 18:03:15 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67EEF43D48 for ; Fri, 10 Feb 2006 18:03:14 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 8181754 for multiple; Fri, 10 Feb 2006 13:02:21 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k1AI34pF076585; Fri, 10 Feb 2006 13:03:04 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: Randy Bush Date: Fri, 10 Feb 2006 13:02:47 -0500 User-Agent: KMail/1.9.1 References: <43EB1470.9020806@cbs.dk> <1BA332D3-F745-40D1-AF60-13BE874DEB20@FreeBSD.org> <17388.54044.444793.889876@roam.psg.com> In-Reply-To: <17388.54044.444793.889876@roam.psg.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602101302.49534.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1283/Thu Feb 9 15:55:06 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=4.2 tests=ALL_TRUSTED,AWL autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: freebsd-mobile@freebsd.org Subject: Re: Power-drain during suspend? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2006 18:03:15 -0000 On Friday 10 February 2006 12:53, Randy Bush wrote: > >>> hw.pci.do_power_nodriver=[1|2|3] > >>> The larger the number, the more aggressive the power limitations. > >>> I use > >>> '3' on my T30 and it works fine. > >> > >> in rc.suspend, or where? > > > > Use sysctl(8) to set it for testing. If it works, you can then make > > it permanent by setting it either in /boot/loader.conf or /etc/ > > sysctl.conf. > > so, it's a running state. > > how do i know "if it works?" > > # sysctl hw.pci.do_power_nodriver > hw.pci.do_power_nodriver: 0 > # sysctl hw.pci.do_power_nodriver=1 > hw.pci.do_power_nodriver: 0 -> 1 > # sysctl hw.pci.do_power_nodriver=2 > hw.pci.do_power_nodriver: 1 -> 2 > # sysctl hw.pci.do_power_nodriver=3 > hw.pci.do_power_nodriver: 2 -> 3 Well, this one really only affects device probe (and maybe suspend/resume?), so you'd need to boot with it set via the loader to see if it works. Also, you can try suspending with it enabled and seeing if it cuts down on the amount of power drain while suspended. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org