From owner-freebsd-current@FreeBSD.ORG Mon Jul 6 09:47:45 2009 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 79E361065679 for ; Mon, 6 Jul 2009 09:47:45 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from smtp.lamaiziere.net (net.lamaiziere.net [91.121.44.19]) by mx1.freebsd.org (Postfix) with ESMTP id 3AB3C8FC08 for ; Mon, 6 Jul 2009 09:47:44 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from baby-jane.lamaiziere.net (105.10.87-79.rev.gaoland.net [79.87.10.105]) by smtp.lamaiziere.net (Postfix) with ESMTPA id 3240763353A; Mon, 6 Jul 2009 11:47:44 +0200 (CEST) Received: from baby-jane.lamaiziere.net (localhost [127.0.0.1]) by baby-jane.lamaiziere.net (Postfix) with ESMTP id E7F56BB9E; Mon, 6 Jul 2009 11:47:43 +0200 (CEST) Date: Mon, 6 Jul 2009 11:47:42 +0200 From: Patrick Lamaiziere To: "Rene Schickbauer" Message-ID: <20090706114742.4bd52252@baby-jane.lamaiziere.net> In-Reply-To: <37078.213.150.228.38.1246871005.squirrel@mail.magicbooks.org> References: <18510.213.150.228.38.1246864978.squirrel@mail.magicbooks.org> <20090706103602.394c463a@baby-jane.lamaiziere.net> <37078.213.150.228.38.1246871005.squirrel@mail.magicbooks.org> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.2; i386-portbld-freebsd7.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: RFC: powerd Patch & proposed future changes 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: Mon, 06 Jul 2009 09:47:45 -0000 Le Mon, 6 Jul 2009 11:03:25 +0200 (CEST), "Rene Schickbauer" a =E9crit : > Hi! >=20 > >> Yesterday i submitted a patch for powerd to set maximum allowed CPU > >> speed for adaptive modes (to keep the system cool and using less > >> power). > >> > >> PR: 136354 > > > > I would like an option to set the minimum allowed CPU speed, instead > > the use of the sysctl debug.cpufreq.lowest. >=20 > This is so that powerd doesn't take so long to spin up power in the > adaptive modes? If the speed is too low, my machine is not very interactive here (running KDE and all...). And with ndis if the speed is to low, my laptop hangs (on FreeBSD 7.2) > Never thought of that, but makes sense to me. i will adapt the patch. >=20 > >> Would it also make sense to have powerd run an (optional) user > >> configureable script on ac state change? I'm thinking about things > >> like dimming TFT backlight, on EEE PC turning of the webcam and so > >> on. > > > > We can do this with devd. >=20 > I'm not really familiar with devd. Could you give me a pointer how > that would work? See devd.conf, On ac state change a script is called (power_profile). # cat /var/run/devd.pipe (unplug) !system=3DACPI subsystem=3DACAD type=3D\_SB_.ADP1 notify=3D0x00 !system=3DACPI subsystem=3DCMBAT type=3D\_SB_.BAT0 notify=3D0x80 (plug) !system=3DACPI subsystem=3DACAD type=3D\_SB_.ADP1 notify=3D0x01 !system=3DACPI subsystem=3DCMBAT type=3D\_SB_.BAT0 notify=3D0x80