NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: estd default high / low watermarks



                Hi iMil, netbsd-users@,

On 30/04/2013 16:14, iMil wrote:
> 
> I'm using `estd' in order to have dynamic frequency scaling on
> my workstation, but while watching the machdep.powernow.frequency.current
> sysctl values, I realized the CPU frequency was actually never
> scaled up or down.

funny, I never had this issue myself.

In case it's useful to anyone, I am using the patch attached on my
laptops; it tells estd to switch from the aggressive to the smooth
frequency-switching strategy whenever the AC adapter is disconnected or
connected, accordingly.

The relevant lines should then be uncommented of course (the ones
invoking "pkill").

HTH,
-- 
khorben
Index: etc/powerd/scripts/acadapter
===================================================================
RCS file: /cvsroot/src/etc/powerd/scripts/acadapter,v
retrieving revision 1.4
diff -p -u -r1.4 acadapter
--- etc/powerd/scripts/acadapter        31 Dec 2010 09:29:43 -0000      1.4
+++ etc/powerd/scripts/acadapter        3 May 2013 19:52:01 -0000
@@ -33,6 +33,11 @@ pressed)
        #
        # /etc/rc.d/cron start
 
+       # Set estd to aggressive mode
+       #
+       # pkill -USR2 estd &&
+       # pkill -USR2 estd
+
        exit 0
        ;;
 
@@ -69,6 +74,11 @@ released)
        # pkill syslogd
        # /usr/sbin/syslogd -s -f /etc/syslog.conf.battery
 
+       # Set estd to battery mode
+       #
+       # pkill -USR1 estd &&
+       # pkill -USR1 estd
+
        exit 0
        ;;
 


Home | Main Index | Thread Index | Old Index