I've attached a simple bash script (and a gif of some plots) for all
your enjoyment.  You can just run it as follows:

mkdir power_data
poll_temp.sh first_run

This creates a directory power_data/first_run and in that directory
puts a bunch of files with temperatures, fan speeds and load as
reported by uptime.  I then process the uptime file a bit:

cat uptime |awk '{print $1*5000}'  > norm_min_uptime

And then plot this all in gnuplot:

plot "fan0_actual_speed" smooth csplines, "fan1_actual_speed" smooth
csplines, "temperature_0" smooth csplines, "temperature_1" smooth
csplines, "temperature_2" smooth csplines,  "temperature_3" smooth
csplines, "temperature_4" smooth csplines, "temperature_5" smooth
csplines

replot "norm_min_uptime" smooth csplines

Since running this script I've added some comments with the above so I
hope I haven't broken it but its should be very easy to play with
(there might be something better than uptime to run).  It might be
good to normalize all the data to have a max value at one but I
haven't thought too hard about how to do that.

There's definitely some correlation between temperature_1 and the fan
data (it would be good to know what temp1 is) but there may also be
some lead time.  Maybe we can use this to figure out what's happening.

cheers,
Sheer






On 3/29/07, Sven Anders <[EMAIL PROTECTED]> wrote:
Sheer El-Showk schrieb:
> I wrote my last email before seeing this response of yours.  Perhaps
> this result of yours verifies Marios hypothesis that OS X configures
> the SMC at boot time and then just leaves it that way.  When you say
> booted OS X and then returned to Linux did you mean started OS X and
> then rebooted into linux or switched off and then returned to Linux?

Normally I boot strait into Linux and it worked like expected.
The last two days I rebooted very ofter and switched to MacOSX, maybe
something special happened I did not realize...

Regards
 Sven

--
 Sven Anders <[EMAIL PROTECTED]>                 () Ascii Ribbon Campaign
                                                 /\ Support plain text
e-mail
 ANDURAS service solutions AG
 Innstraße 71 - 94036 Passau - Germany
 Web: www.anduras.de - Tel: +49 (0)851-4 90 50-0 - Fax: +49 (0)851-4 90
50-55

Rechtsform: Aktiengesellschaft - Sitz: Passau - Amtsgericht Passau HRB 6032
Mitglieder des Vorstands: Sven Anders, Marcus Junker
Vorsitzender des Aufsichtsrats: Dipl. Kfm. Thomas Träger

Attachment: plot.gif
Description: GIF image

Attachment: poll_temp.sh
Description: Bourne shell script

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mactel-linux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mactel-linux-users

Reply via email to