From owner-freebsd-mobile@FreeBSD.ORG Tue Nov 23 12:16:57 2004 Return-Path: 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 136C516A4CE for ; Tue, 23 Nov 2004 12:16:57 +0000 (GMT) Received: from seed.net.tw (sn16.seed.net.tw [139.175.54.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BA5143D54 for ; Tue, 23 Nov 2004 12:16:56 +0000 (GMT) (envelope-from plasma@ms9.hinet.net) Received: from [59.104.132.121] (port=58056 helo=me) by seed.net.tw with smtp (Seednet 4.23:1) id 1CWZbL-0005ih-Le; Tue, 23 Nov 2004 20:16:55 +0800 Received: (nullmailer pid 1049 invoked by uid 1001); Tue, 23 Nov 2004 12:16:51 -0000 Date: Tue, 23 Nov 2004 20:16:51 +0800 From: plasma To: Bruno Ducrot Message-ID: <20041123121651.GA871@plasmanb.plasma.idv.tw> References: <20041122084814.GA1358@plasmanb.plasma.idv.tw> <20041122100701.GE33509@bombur.guldan.demon.nl> <20041122121210.GA857@plasmanb.plasma.idv.tw> <20041122122827.GH33509@bombur.guldan.demon.nl> <20041122144407.GA821@plasmanb.plasma.idv.tw> <20041122184414.GL33509@bombur.guldan.demon.nl> <20041123065935.GB20758@plasmanb.plasma.idv.tw> <20041123093420.GB4353@poupinou.org> <20041123100834.GA72233@plasmanb.plasma.idv.tw> <20041123102712.GD4353@poupinou.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041123102712.GD4353@poupinou.org> User-Agent: Mutt/1.5.6i cc: freebsd-mobile@freebsd.org Subject: Re: [speedstep] Testers wanted X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2004 12:16:57 -0000 On Tue, Nov 23, 2004 at 11:27:12AM +0100, Bruno Ducrot wrote: > There are some API in kernel in order to detect power profile changes > (performance vs economy). When Nate will polish his cpufreq, this will > be done in a generic way. But in the meantime, it may be helpfull to > implement that in ichist so that we don't have to care about AC changes > via acpi or apm. This sounds good! Should I just poll a sysctl variable periodically, or ...? Anyway, I've wrote a test version, which is available at http://svn.ntcu.net/~plasma/ichctrl-ac_test.tar.gz. The size is 2697, and the md5 b5604f66f949a89afaca8cd4535c7ece. This version will try to use ACPI then APM to check AC line status. plasma