Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jul 2009 11:47:42 +0200
From:      Patrick Lamaiziere <patfbsd@davenulle.org>
To:        "Rene Schickbauer" <cavac@magicbooks.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: RFC: powerd Patch & proposed future changes
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>

next in thread | previous in thread | raw e-mail | index | archive | help
Le Mon, 6 Jul 2009 11:03:25 +0200 (CEST),
"Rene Schickbauer" <cavac@magicbooks.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090706114742.4bd52252>