Subject: Re: Question about speedstep and the est.frequency.target sysctl
To: None <netbsd-users@netbsd.org>
From: Pierre Pronchery <khorben@defora.org>
List: netbsd-users
Date: 08/24/2007 12:30:21
	Hey Brian,

Brian Buhrow wrote:
> My script tries to slow the cpu down by setting
> machdep.est.frequency.target to the desired value, in my case, 800MHZ.
> this appears to work, and the CPU slows down, for a little while, i.e. a
> minute or so.
> 	Then, after a minute, the target value climes from 800 back to 1000,
> then to 1200, and back to 1400, which is as high as it can go.  This
> happens without any  obvious intervention from me.  
> 	Can anyone explain why it is that this value doesn't stay where I set
> it?

If you're using estd, the battery is already being managed under
whatever strategy is currently selected. If that's the case, you can
modify it at run-time though. Here is my script:
case "${2}" in
"pressed")
        pkill -USR2 estd estd
        ;;
"released")
        pkill -USR1 estd estd
        ;;

HTH,
-- 
khorben