You are not logged in.

#1 2005-06-14 14:17:38

Blind
Member
From: Desert mountain
Registered: 2005-02-06
Posts: 386

Best information source to help configure PM - fan control

Hi guys,
although I see a lot of solutions of small bits of problems I always try to find a _general_ instruction set of how to configure my laptop to sleep if I hit the sleep button (at all possible??) or suspend to disk or whatever other power saving gimmicks a laptop offers. I realize every laptop is different, but is there not a general approach? Or some scripts that can easily be adjusted?
I have adopted some script to control my fans; this runs more or less satisfactory now... but all the other things seem to take an incredible amount of time to find out.

Thanks for your help,
Blind

Offline

#2 2005-06-15 00:56:07

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Best information source to help configure PM - fan control

Offline

#3 2005-06-15 12:46:42

Blind
Member
From: Desert mountain
Registered: 2005-02-06
Posts: 386

Re: Best information source to help configure PM - fan control

Thanks for your answer, tomk.
A nice resource page - although present in the link list on that page, I want to point out ACPI4Linux.

Now I have a specific problem. I have - as mentioned - adopted and modified a rc script file. It makes use of the normal ACPI fan and temperature control functions. For your reference and statements (always welcome!):

#!/bin/sh
#
# description: Switches the fan control on

. /etc/rc.conf
. /etc/rc.d/functions

case "$1" in
    start)
      stat_busy "Starting fan control"
      # Turn fans on
      echo -n 0 > /proc/acpi/fan/FN1/state
      echo -n 0 > /proc/acpi/fan/FN2/state
      # Format: Critical:Hot:Passive:Active0:Active1
      echo -n "80:70:65:55:50" > /proc/acpi/thermal_zone/THRM/trip_points
      # Activate the kernel's temperature control system
      echo 60 > /proc/acpi/thermal_zone/THRM/polling_frequency 
      # Turn fans off
      echo -n 3 > /proc/acpi/fan/FN1/state
      echo -n 3 > /proc/acpi/fan/FN2/state
      stat_done
      ;;
    stop)
      stat_busy "Stopping fan control"
      # Turn fans on
      echo -n 0 > /proc/acpi/fan/FN1/state
      echo -n 0 > /proc/acpi/fan/FN2/state
      stat_done
      ;;
    status)
      echo -n "Fan 1 "
      cat /proc/acpi/fan/FN1/state
      echo -n "Fan 2 "
      cat /proc/acpi/fan/FN2/state
      ;;
    restart)
      $0 stop
      $0 start
      ;;
    *)
      echo "usage: $0 {start|restart|stop|status}"  
esac

exit 0

My problem is: It works fine for some time but after a while, although the temperature is below Active1, the fans don't stop rotating - as if the kernel had forgotten my settings. I have no clue whatsoever why.
Thanks for your comments,
Blind

Offline

Board footer

Powered by FluxBB