NotebookForums.com › Forums › General Notebook Discussions › Linux & Other OS's › How to force fan speed to max
New Posts  All Forums:Forum Nav:

How to force fan speed to max

post #1 of 10
Thread Starter 
How would I go about forcing my fan speed to max. I installed the i8k plugin to Gkrellm and can see the temps. What i'm wondering is if there is any way to force the fan to run at high speed all the time. Currently 800mhz, it's at 38C which imo is not too good...In windows, I was running 1.6ghz at 35C...But of course in windows, I was using i9kfangui to force max fan speed.

Any help would be great
post #2 of 10
Hmm while it isnt what you want I dont think, you would probably get this result from disabling ACPI.

A while back I looked into lmsensors and a few fan speed control programs, but it has been a while and I cant rememeber the names unfortunatly, but there were some requirements in as far as what hardware it would work directly on at the time(A few years ago). It has probably gotten much better in late years as ACPI support has improved a large amount.

Seablade
post #3 of 10
nhc would probably do it...

(notebook hardware control)
post #4 of 10
38C is nothing to worry about for a Pentium M. It's rated to 100C. In terms of Linux control of the fans, did you install the i8kutils package along with the plugin?;

http://packages.ubuntu.com/warty/utils/i8kutils

Once you do, you should be able to adjust the fan settings via the plugin. To install i8kutils do;

Code:
sudo apt-get install i8kutils
sudo modprobe i8k force=1

That installs and then loads the i8k module. You should be able to see and adjust fan speeds through the graphical plugin now. If you want to make the i8k module load at boot you can manually edit the following file;

Code:
sudo vim /etc/modules

add
Code:
i8k
to the end of the file. Then edit one more file;

Code:
sudo vim /etc/modprobe.d/aliases

add
Code:
options i8k force=1
to the end of the file. You should be able to see and adjust fan speeds through the graphical plugin now, through reboots.

Instead of using the plugin, you can configure your system to use the i8kmon program to run as a daemon on boot, to controls your fans. First you need to do everything mentioned above, (install i8kutils, edit modules files to load on boot), and then;

Code:
sudo vim /etc/i8kmon

and then paste in the following;

Code:
# Run as daemon, override with --daemon option
set config(daemon)      1

# Automatic fan control, override with --auto option
set config(auto)        1

# Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt}
# These were tested on the I8000. If you have a different Dell laptop model
# you should check the BIOS temperature monitoring and set the appropriate
# thresholds here. In doubt start with low values and gradually rise them
# until the fans are not always on when the cpu is idle.
set config(0)   {{- 0}  -1  40  -1  45}
set config(1)   {{- 1}  38  50  40  50}
set config(2)   {{- 2}  45  55  45  55}
set config(3)   {{- 2}  50 128  50 128}

# end of file

This is the configuration that the i8kmon will use to manage the fans. To understand these settings, PLEASE read the i8kmon man page at;

http://manpages.debian.net/cgi-bin/d...ee&format=html

For example the settings file shown above, is setup for a system that has only 1 fan (like the Inspiron 6000), and the fan is detected as fan 2. (Notice the {- n} notation. The first space with the - sign is for fan 1, and the second is for fan 2. The number shown denotes the fan speed. Again it's covered in the man page). Please make sure it's setup correctly for your hardware. As you stated, if you want the fans to automatically run max at lower temps, adjust accordingly.

Lastly, you need to create an init file to automatically load the i8kmon program at boot.

Code:
sudo vim /etc/init.d/i8kmon

and then paste in the following;

Code:
#!/bin/sh
#
# i8kmon \tinitscript to control i8kmon daemon
#\t\tThis file should be placed in /etc/init.d, 
#\t\tand linked to /etc/rcX.d directories using command update-rc.d
#
# Author:\tnanotube <nanotube@users.sf.net>
#
# Version:\t@(#)i8kmon  1.5  31-May-2006  nanotube@users.sf.net
#

set -e

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC="Hardware Monitoring for Dell Inspiron daemon"
NAME=i8kmon
DAEMON=/usr/bin/$NAME
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME

# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0

# Read config file if it is present.
#if [ -r /etc/default/$NAME ]
#then
#\t. /etc/default/$NAME
#fi

. /lib/lsb/init-functions

#
#\tFunction that starts the daemon/service.
#
d_start() {
    start-stop-daemon --start --quiet --background --make-pidfile --pidfile $PIDFILE \\
        --exec $DAEMON
}

#
#\tFunction that stops the daemon/service.
#
d_stop() {
    start-stop-daemon --stop --quiet --pidfile $PIDFILE
}

case "$1" in
  start)
    log_begin_msg "Starting $DESC: $NAME..."
    d_start
    log_end_msg $?
    ;;
  stop)
    log_begin_msg "Stopping $DESC: $NAME..."
    d_stop
    log_end_msg $?
    ;;
  restart|force-reload)
    #
    #\tIf the "reload" option is implemented, move the "force-reload"
    #\toption to the "reload" entry above. If not, "force-reload" is
    #\tjust the same as "restart".
    #
    log_begin_msg "Stopping $DESC: $NAME..."
    d_stop
        log_end_msg $?
    sleep 1
        log_begin_msg "Starting $DESC: $NAME..."
    d_start
    log_end_msg $?
    ;;
  *)
    echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
    exit 1
    ;;
esac

exit 0

Make sure to make /etc/init.d/i8kmon executable!!

Code:
sudo chmod +x /etc/init.d/i8kmon

then run the following:

Code:
sudo update-rc.d i8kmon defaults

This will configure the i8kmon program settiings, and to load at boot and run in daemon mode, so as to monitor the CPU temps and kick in the fans automatically. Again feel free to play with the temp settings if you use this method.

References:
http://pykeylogger.sourceforge.net/w...nd_Fan_Sensors
http://www.ubuntuforums.org/showthre...186003&page=13
http://people.debian.org/~dz/i8k/00-README

A great place for hardware specific questions (for your hardware) like these;
http://forums.us.dell.com/supportforums/
and for Ubuntu specific questions;
http://www.ubuntuforums.org/
post #5 of 10
Oops sorry guys! For some reason I didn't read the "and Linux" part of the forum description (when I was looking at New Posts). Naturally NHC won't work on a Linux box...

My bad.

post #6 of 10
Thread Starter 
Wow! Thx for solving my problem guys! My fans now run on full all the time
post #7 of 10
Quote:
Wow! Thx for solving my problem guys! My fans now run on full all the time
Heh glad to hear its working, of course I find it ironic considering not to long ago people were complaining this happened TO much with laptops due to buggy ACPIs in the laptop and only support for standard ACPI in the kernel Seablade
post #8 of 10
Also, there are some configurations where disabling acpi will leave you FANLESS... just fyi. Most ACPI dsdt tables are generated using Microsoft's compiler which isn't exactly according to spec. So there's a lot of bad acpi implementations out there... yet because it is the way your "supposed" to do things now... it's possible that a laptop may require ACPI to operate correctly (not sure if I know of a contemporary laptop with this issue, but certainly possible).
post #9 of 10
Yeah some lappies have come out with terrible DSDTs though recently this has been improving both on the Linux side (making it a little more...flexible for bad code) and the manufacturer side. I seem to remember Acer being one of the worst culprits in this area.

Anyway, running the fans flat out all the time sounds like a highway to a headache to me... .

EDIT: BTW if your CPU's running a little hot, have you checked that frequency scaling is working OK? Also if you don't mind getting your hands dirty you can undervolt it.
post #10 of 10
Thread Starter 
Quote:
Originally Posted by c0bblers
Yeah some lappies have come out with terrible DSDTs though recently this has been improving both on the Linux side (making it a little more...flexible for bad code) and the manufacturer side. I seem to remember Acer being one of the worst culprits in this area.

Anyway, running the fans flat out all the time sounds like a highway to a headache to me... .

EDIT: BTW if your CPU's running a little hot, have you checked that frequency scaling is working OK? Also if you don't mind getting your hands dirty you can undervolt it.

Noise is never a problem. I've got a 520W psu with 3 80mm fans right next to the lappy
Yeah, I'm probably going to start undervolting. I remember in windows, I can run my pM 730 @ 800mhz @ .700V (lowest) when I'm off on batt and 1.6ghz @ 1.000V stable. Of course in Windows, it was quite a bit easer to undervolt via NHC I've also got AS5 on both the cpu and gpu core/ram.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux & Other OS's
NotebookForums.com › Forums › General Notebook Discussions › Linux & Other OS's › How to force fan speed to max