• Stelian Pop's avatar
    [PATCH] sonypi: add fan and temperature status/control · 05d19498
    Stelian Pop authored
    1. FAN Status/Control: you can now get the fan status (running or not) and
       also set the fan speed (for <5 seconds only). The problem is that there
       is an auto regulator that kicks in within about 5 seconds after that to
       restart the fan if it is above a threshold temperature (39 Degree C in
       my Vaio). It is useful just to get the fan status (primarily). It also
       appears that you can change the speed by increasing the values (much
       like the LCD control) - there are effectively only about 6 speeds (it
       seems - not sure, but from what I've played with on my Vaio).
    
    2. Temperature: you can get the current temperature (same as reported by
       ACPI). This is primarily useful for APM users (since ACPI already gives
       this). I have used this to detect when the fan comes on in my Vaio (39
       Degree C).
    
    From: Narayanan R S <nars@kadamba.org>
    Signed-off-by: default avatarStelian Pop <stelian@popies.net>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    05d19498
sonypi.c 37.4 KB