Hi,

Ludovic Rousseau wrote:
> On 14/10/06, Nicolas Boichat <[EMAIL PROTECTED]> wrote:
>   
>> I think sensors data might be accessed using the SMC controller,
>> however, I don't know what key to read (SMC uses a 4-byte key for each
>> connected led/sensor). You might have a look at the code in SVN, there
>> is code to do bruteforce probing of keys, with different reading length.
>> You might be able to find something (I did not try very hard...).
>>     
>
> Another solution is to just get the source code of a similar
> application running on Mac OS X.
>
> For example a Linux equivalent of the fan speed control [1, 2] would be nice.
>
>   
I didn't know about this program... I searched for something like that
1-2 months ago, but didn't find anything. So, thanks for pointing this out.

I added support for fan control in applesmc. I use the attached script
to control the fans, as the left side is almost always warmer, I set the
speed of the left side to 2x the speed of the right side (controlled by
SMC), and set the minimum speed to 3500 RPM instead of 1000 RPM on that fan.

Best regards,

Nicolas
#!/bin/sh

DIR=/sys/devices/platform/applesmc

while [ 1 ]; do
        FAN1=`cat $DIR/fan1_target_speed`
        echo 1 > $DIR/fan0_manual
        let FAN0=FAN1*2
        if [ $FAN0 -lt 3500 ]; then
                FAN0=3500
        fi
        echo $FAN0 > $DIR/fan0_target_speed
        sleep 1
done
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mactel-linux-users mailing list
Mactel-linux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mactel-linux-users

Reply via email to