From: Sheer El-S. <sh...@gm...> - 2007-03-29 21:30:11
|
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 <an...@an...> 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 <an...@an...> () Ascii Ribbon Campaign > /\ Support plain text > e-mail > ANDURAS service solutions AG > Innstra=DFe 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 60= 32 > Mitglieder des Vorstands: Sven Anders, Marcus Junker > Vorsitzender des Aufsichtsrats: Dipl. Kfm. Thomas Tr=E4ger > |