From owner-freebsd-mobile@FreeBSD.ORG Mon Feb 20 08:35:35 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 AA6A916A420; Mon, 20 Feb 2006 08:35:35 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47D7543D45; Mon, 20 Feb 2006 08:35:35 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id k1K8YD5e075638; Mon, 20 Feb 2006 01:34:17 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 20 Feb 2006 01:34:33 -0700 (MST) Message-Id: <20060220.013433.110720456.imp@bsdimp.com> To: randy@psg.com From: "M. Warner Losh" In-Reply-To: <17388.54044.444793.889876@roam.psg.com> References: <17387.62649.35663.93483@roam.psg.com> <1BA332D3-F745-40D1-AF60-13BE874DEB20@FreeBSD.org> <17388.54044.444793.889876@roam.psg.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Mon, 20 Feb 2006 01:34:17 -0700 (MST) 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: Mon, 20 Feb 2006 08:35:35 -0000 In message: <17388.54044.444793.889876@roam.psg.com> Randy Bush writes: : >>> 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 It only affects 'future' devices that don't have a driver attached to them. This means you have to load at least one pci driver before this sysctl takes effect. Warner