Page 1 of 2 12 LastLast
Results 1 to 10 of 65

Thread: HOWTO: Install and configure i8kmon for configurable automatic fan speed control

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Location
    Stockholm, Sweden
    Beans
    694
    Distro
    Ubuntu Development Release

    HOWTO: Install and configure i8kmon for configurable automatic fan speed control

    Here is how to install i8kmon and set it up with sane settings for a XPS M1330:

    1.
    Code:
    sudo apt-get install i8kutils
    2. Add "i8k" on a new line in /etc/modules:
    Code:
    sudo gedit /etc/modules
    3. Add "options i8k force=1" on a new line in /etc/modprobe.d/options
    Code:
    sudo gedit /etc/modprobe.d/options
    4. Here, either restart your computer or run:
    Code:
    sudo modprobe i8k force=1
    5. Open up a new file called /etc/i8kmon:
    Code:
    sudo gedit /etc/i8mon
    And save the following to it:
    Code:
    # Run as daemon, override with --daemon option
    set config(daemon)      0
    
    # Automatic fan control, override with --auto option
    set config(auto)        1
    
    # Report status on stdout, override with --verbose option
    set config(verbose)	1
    
    # Status check timeout (seconds), override with --timeout option
    set config(timeout)	1
    
    # Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt}
    set config(0)   {{-1 0}  -1  55  -1  55}
    set config(1)   {{-1 1}  55  70  55  70}
    set config(3)   {{-1 2}  70  128  70  128}
    
    # For computer with 2 fans, use a variant of this instead:
    # Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt}
    # set config(0)	{{-1 0}  -1  52  -1  65}
    # set config(1)	{{-1 1}  41  66  55  75}
    # set config(2)	{{-1 1}  55  80  65  85}
    # set config(3)	{{-1 2}  70 128  75 128}
    
    # end of file
    (based on http://www.cvjb.de/comp/linux/debian/i8kmon but adapted for the one-fan-only XPS M1330)

    Now you can run "i8kmon" from a terminal to see (and hear) how it adjusts your fan speed. Or you can add it to the gnome panel (for autostart upon login as well as easy monitoring) by the following instructions:
    1.
    Code:
    sudo apt-get install gnome-swallow-applet
    2. Add the swallow applet to the gnome panel by right-clicking on the latter and choosing Add to panel
    3. Enter "i8kmon" for Program name and leave the second field blank

    Alternatively, you can have i8kmon autostart without the applet part by adding "i8kmon --daemon" as an entry to your sessions autostart list (in System -> Settings -> Sessions)

    Note: Even though i8kmon seems to do it's job very well, erratic fan behavior can be experienced due to the built-in fan control methods of Dell's laptops. I am trying to get more advice on how to solve that matter in a parallell thread: http://ubuntuforums.org/showthread.php?p=5275392 Informative replies in that thread are very welcome!

  2. #2
    Join Date
    Feb 2007
    Location
    United Kingdom
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Install and configure i8kmon for configurable automatic fan speed control

    Unfortunately this doesn't work on the M1530, here's the dmesg output:

    Code:
    dmesg | grep i8k
    
    [   27.713816] i8k: not running on a supported Dell system.
    [   27.713819] i8k: vendor=Dell Inc., model=XPS M1530                       , version=A08
    [   27.714137] i8k: unable to get SMM BIOS version
    The sensors applet will pickup i8k when configured as a daemon, and successfully report the CPU Temp and FAN speed.

  3. #3
    Join Date
    Mar 2006
    Location
    Stockholm, Sweden
    Beans
    694
    Distro
    Ubuntu Development Release

    Re: HOWTO: Install and configure i8kmon for configurable automatic fan speed control

    Quote Originally Posted by sc00ter View Post
    Unfortunately this doesn't work on the M1530, here's the dmesg output:

    Code:
    dmesg | grep i8k
    
    [   27.713816] i8k: not running on a supported Dell system.
    [   27.713819] i8k: vendor=Dell Inc., model=XPS M1530                       , version=A08
    [   27.714137] i8k: unable to get SMM BIOS version
    The sensors applet will pickup i8k when configured as a daemon, and successfully report the CPU Temp and FAN speed.
    I get the same output - no worries!
    And since sensors applet is picking up the scent everything seems ok.

  4. #4
    Join Date
    Jun 2007
    Beans
    20
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: Install and configure i8kmon for configurable automatic fan speed control

    I followed all the steps but for some reason doing this does not work. The fan will not behave according /etc/i8kmon. I am using a dell inspiron 1420 with 8.04 2.6.24-20-generic.

    in my /etc/i8kmon i defined these settings. the rest of the file is the same as the above.
    Code:
    set config(0)	{{-1 0}  -1  50  -1  65}
    set config(1)	{{-1 1}  40  60  55  75}
    set config(2)	{{-1 2}  50  70  65  85}
    set config(3)	{{-1 2}  75 128  75 128}
    I have two fans, one that is controllable and the other is on at a fix speed all the time (uncontrollable).
    Code:
    mrynit@dell-desktop:~$ i8kfan 
    -1 0
    mrynit@dell-desktop:~$ i8kfan - 2
    -1 2
    mrynit@dell-desktop:~$ cat /proc/i8k 
    1.0 A09 HS12GF1 40 -22 2 27660 119940 -1 -22
    mrynit@dell-desktop:~$ i8kctl 
    1.0 (null) HS12GF1 40 -1 2 27660 119940 0 -1

    sensors-applet 2.2.1

    i took the screen shot at a different time so that is why the temps are different from the terminal output.

    From the above I know that the right fan is the controllable fan. I configured the temp settings to work with it. I got the info from here http://people.debian.org/~dz/i8k/00-README, also the man page for i8kmon has the same info.

  5. #5
    Join Date
    Jul 2008
    Location
    Tennessee
    Beans
    7
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: Install and configure i8kmon for configurable automatic fan speed control

    how would I configure this to make my fan run at medium speed all the time?
    Last edited by Ryan_macy; August 13th, 2008 at 10:20 PM.

  6. #6
    Join Date
    Jun 2007
    Beans
    20
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: Install and configure i8kmon for configurable automatic fan speed control

    Quote Originally Posted by Ryan_macy View Post
    how would I configure this to make my fan run at medium speed all the time?
    I would assume just setting the fan to 1 in config(0)

    Code:
    set config(0)	{{-1 1}  -1  50  -1  65}
    Last edited by mrynit; August 14th, 2008 at 03:34 AM.

  7. #7
    Join Date
    Mar 2006
    Location
    Stockholm, Sweden
    Beans
    694
    Distro
    Ubuntu Development Release

    Re: HOWTO: Install and configure i8kmon for configurable automatic fan speed control

    Quote Originally Posted by Ryan_macy View Post
    how would I configure this to make my fan run at medium speed all the time?
    You do understand that this could cause overheating with possibly malfunctioning and broken hardware as a consequence?

  8. #8
    Join Date
    Apr 2009
    Beans
    130

    Re: HOWTO: Install and configure i8kmon for configurable automatic fan speed control

    Quote Originally Posted by motin View Post
    5. Open up a new file called /etc/i8kmon:
    Code:
    sudo gedit /etc/i8mon
    Edit your post. Should be:

    Code:
    sudo gedit /etc/i8kmon
    Not:
    Code:
    sudo gedit /etc/i8mon
    Caused a noob like me a bit of trouble when trying to install.

  9. #9
    Join Date
    May 2009
    Location
    Jah's Pocket
    Beans
    733
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: HOWTO: Install and configure i8kmon for configurable automatic fan speed control

    I think this may have changed:
    Quote Originally Posted by l-x-l View Post
    Edit your post. Should be:

    Code:
    sudo gedit /etc/i8kmon
    Not:
    Code:
    sudo gedit /etc/i8mon
    Caused a noob like me a bit of trouble when trying to install.
    Can anyone verify that the config file is now, /etc/i8kmon.conf. I looked inside /usr/bin/i8kmon and see this line.
    Code:
    sysconfig   /etc/i8kmon.conf

  10. #10
    Join Date
    Apr 2009
    Beans
    130

    Re: HOWTO: Install and configure i8kmon for configurable automatic fan speed control

    Quote Originally Posted by maletek View Post
    I think this may have changed:


    Can anyone verify that the config file is now, /etc/i8kmon.conf. I looked inside /usr/bin/i8kmon and see this line.
    Code:
    sysconfig   /etc/i8kmon.conf

    I think it was simply a typo by Motin. It should be "sudo gedit /etc/i8kmon".

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •