Re: RFC: powerd Patch & proposed future changes

From: Patrick Lamaiziere <patfbsd_at_davenulle.org>
Date: Mon, 6 Jul 2009 11:47:42 +0200
Le Mon, 6 Jul 2009 11:03:25 +0200 (CEST),
"Rene Schickbauer" <cavac_at_magicbooks.org> a écrit :

> Hi!
> 
> >> 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.
> 
> 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.
> 
> >> 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.
> 
> 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=ACPI subsystem=ACAD type=\_SB_.ADP1 notify=0x00
!system=ACPI subsystem=CMBAT type=\_SB_.BAT0 notify=0x80
(plug)
!system=ACPI subsystem=ACAD type=\_SB_.ADP1 notify=0x01
!system=ACPI subsystem=CMBAT type=\_SB_.BAT0 notify=0x80
Received on Mon Jul 06 2009 - 07:47:45 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:51 UTC