Re: Fan control ?

View: New views
4 Messages — Rating Filter:   Alert me  

Re: Fan control ?

by John K. Parejko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I just signed up to debian-powerpc, and noticed Niels S. Eliasen's  
question from September 7th. I was able to get some power management  
and sensors working on my g4 powerbook (12" 1.33GHz PowerBook6,4).

It is now serving as a webserver, NAT firewall, and wireless access  
point. (hostapd works with the nl80211 drivers in master mode, but  
required updating to kernel 2.6.30 from backports and hostapd 0.6.9  
from testing.)

Try the following to get a reading of the temperature and fan speed  
(I've included the output on my machine as an example):

$ cat /sys/devices/temperatures/*temp*
49
61
$ cat /sys/devices/temperatures/*fan*
64 (4770 rpm)
64 (0 rpm)
64

The temperatures are in Celsius, with sensor?_location (in the same  
directory) giving "CPU TOPSIDE" for the first and "GPU ON DIE" for the  
second. I installed powernowd to get some control over the cpu  
scaling, but I don't know whether that will work on a tibook.

The best way I was able to manage some control over the fan was to do:

echo 2 >> /sys/devices/temperatures/limit_adjust

which adds 2 degrees to the temperature at which the fan steps up and  
down, keeping it at low speed slightly longer.  Setting it to -4 would  
have the fan on most of the time, while 4 would mean it wouldn't step  
up until the temperature got much higher.  I don't know of any way to  
change the exact values; limit_adjust applies to all of the built-in  
values, and the only way I can figure them out is to watch what  
temperature causes the fan to step up and down.

Hope this helps!
John


--
To UNSUBSCRIBE, email to debian-powerpc-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Fan control ?

by Elimar Riesebieter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* John K. Parejko [090916 15:12 -0400]

> Hello,
>
> I just signed up to debian-powerpc, and noticed Niels S. Eliasen's
> question from September 7th. I was able to get some power management
> and sensors working on my g4 powerbook (12" 1.33GHz PowerBook6,4).
>
> It is now serving as a webserver, NAT firewall, and wireless access
> point. (hostapd works with the nl80211 drivers in master mode, but
> required updating to kernel 2.6.30 from backports and hostapd 0.6.9
> from testing.)
>
> Try the following to get a reading of the temperature and fan speed
> (I've included the output on my machine as an example):
>
> $ cat /sys/devices/temperatures/*temp*
> 49
> 61
> $ cat /sys/devices/temperatures/*fan*
> 64 (4770 rpm)
> 64 (0 rpm)
> 64
To check my sensors i ran the attached script.

Elimar


--
  Learned men are the cisterns of knowledge,
  not the fountainheads ;-)

#! /bin/sh

#if  LC_ALL=C cat /sys/devices/temperatures/cpu_fan_speed = 82 ;
#   then FANSPEEDCPU=0
#else
    FANSPEEDCPU=`LC_ALL=C cat /sys/devices/temperatures/sensor1_fan_speed | sed -e s#rpm#U\/min#`
#fi

#if [ `LC_ALL=C cat /sys/devices/temperatures/gpu_fan_speed` = 82 ]
#   then FANSPEEDGPU=0
#else
#    FANSPEEDGPU=`LC_ALL=C cat /sys/devices/temperatures/gpu_fan_speed`
#fi

dialog --title " Temperatures of my AlBook G4 " \
       --backtitle " `cat /proc/version` at `hostname -f` " \
       --infobox \
"  cpu fan speed:       $FANSPEEDCPU \n \
 cpu limit:           `LC_ALL=C cat /sys/devices/temperatures/sensor1_limit` °C\n \
 cpu temperature:     `LC_ALL=C cat /sys/devices/temperatures/sensor1_temperature` °C\n \
 gpu limit;           `LC_ALL=C cat /sys/devices/temperatures/sensor2_limit` °C \n \
 gpu temperature:     `LC_ALL=C cat /sys/devices/temperatures/sensor2_temperature` °C\n \
 limit adjust:        `LC_ALL=C cat /sys/devices/temperatures/limit_adjust` \n \
 specified fan speed: `LC_ALL=C cat /sys/devices/temperatures/specified_fan_speed` \n \
 hdd temp:            `LC_ALL=C sudo hddtemp /dev/hda | awk '{print $3}' | sed -e s/°C//` °C\n
  cpu clock:           `LC_ALL=C cat /proc/cpuinfo | grep clock| awk '{print $3}i' | sed -e s/000/\ /g`" 12 45

# vim:tw=120

Re: Fan control ?

by nse :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

interesting.... but must be something only available on newer PowerPC  
boxes...
I have no such thing as "/sys/devices/temperatures" .. or anything  
remotely resembling this....

But then again... my TiBook is also one of the earliest Powerbooks  
available.... ;-)

Den 16/09/2009 kl. 23.13 skrev Elimar Riesebieter:

> * John K. Parejko [090916 15:12 -0400]
>> Hello,
>>
>> I just signed up to debian-powerpc, and noticed Niels S. Eliasen's
>> question from September 7th. I was able to get some power management
>> and sensors working on my g4 powerbook (12" 1.33GHz PowerBook6,4).
>>
>> It is now serving as a webserver, NAT firewall, and wireless access
>> point. (hostapd works with the nl80211 drivers in master mode, but
>> required updating to kernel 2.6.30 from backports and hostapd 0.6.9
>> from testing.)
>>
>> Try the following to get a reading of the temperature and fan speed
>> (I've included the output on my machine as an example):
>>
>> $ cat /sys/devices/temperatures/*temp*
>> 49
>> 61
>> $ cat /sys/devices/temperatures/*fan*
>> 64 (4770 rpm)
>> 64 (0 rpm)
>> 64
>
> To check my sensors i ran the attached script.
>
> Elimar
>
>
> --
>  Learned men are the cisterns of knowledge,
>  not the fountainheads ;-)
> <cattemp.txt>

kind regards

nse

"Ach, crivens, what a wee snotter....."

Quote from "The Wee Free Men" by Terry Pratchett


--
To UNSUBSCRIBE, email to debian-powerpc-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Fan control ?

by Benjamin Cama :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Niels S. Eliasen a écrit :
> interesting.... but must be something only available on newer PowerPC
> boxes...
> I have no such thing as "/sys/devices/temperatures" .. or anything
> remotely resembling this....

Yes, these entries are offered by the therm-adt746x module, which works
only on: "iBook G4, and the ATI based aluminium PowerBooks" according to
the module's documentation (though it also works on my 12" nVidia, from
memory).

Regards,
Benjamin


--
To UNSUBSCRIBE, email to debian-powerpc-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...