LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-23-2016, 02:10 PM   #1
ajayphilip
LQ Newbie
 
Registered: Jul 2013
Location: Halifax, NS
Distribution: Slackware
Posts: 2

Rep: Reputation: Disabled
Fan control on Dell Latitude E6520


This is a note of a working configuration for setting up fan control on a Dell Latitude E6520
For Slackware 14.1 x86_64 ( i.e. 64bit)

Build and install i8kutils, using slackbuilds.org

get dellfan from https://github.com/clopez/dellfan , run make and place the dellfan executable in /usr/sbin

edit the /etc/i8kmon.conf and change the settings at the bottom to:
Code:
set config(0)   {{0 0}  -1  60  -1  65}
set config(1)   {{0 1}  50  70  55  75}
set config(2)   {{0 2}  60  80  65  85}
set config(3)   {{0 2}  70 128  75 128}
The second fan is the only one that is controllable.

create /etc/rc.d/rc.i8k and set it as executable. The contents:
Code:
#!/bin//sh
#
# i8k: Fan control daemon
#
# description: This daemon monitors the temperatures 
#               and sets the fan speed. For E6520.
#              

DELLFAN=/usr/sbin/dellfan
EXEC="/usr/bin/i8kmon"
I8KCTL="/usr/bin/i8kctl"
PIDFILE="/var/run/i8kmon.pid"

case "$1" in
   'start')

      # Start the i8kmon program..
      echo "starting ${EXEC} --daemon --auto "
      "${EXEC}" --daemon --auto &
      echo "$!" > "${PIDFILE}"

      # Disabling SMM control of fans.

      echo "Disabling BIOS control of fan."
      "${DELLFAN}" 2 1

   ;;

   'stop')

      if [ -e "$PIDFILE" ] ; then 
         echo "Enabling BIOS control of fan."
         "${DELLFAN}" 1 0

         PID=`cat "${PIDFILE}"`
         rm -f "${PIDFILE}"
         echo "Terminating i8kmon"
         kill -TERM $PID

      else
         echo "$PIDFILE not found. Not stopping anything."
      fi

   ;;

   'restart')
      echo "restart not implemented"
   ;;

   'status')

      "${I8KCTL}"
      if [ -e "$PIDFILE" ] ; then 
         PID=`cat $PIDFILE`
         echo "PID of i8kmon is $PID"
      else 
         echo "i8kmon doesn't appear to be running. check ps -aux" 
      fi

   ;;

esac
# end of rc.i8k script
Edit /etc/rc.d/rc.M
Put the following line after starting HAL:

Code:
# Start fan control
if [ -x /etc/rc.d/rc.i8k ]; then
   /etc/rc.d/rc.i8k start
fi
edit /etc/rc.modules ( it's a symbolic link to rc.modules-3.10.17 or whichever is the kernel you're running )

Add after the end of enabling cpu scaling support:

Code:
modprobe i8k fan_mult=1
Without the fan_mult=1, the reported rpm's are abnormally high.
For speed 1 , the fan should read abourt 2000rpm, and at speed 2, it's in the 4000rpm range.

Last edited by ajayphilip; 05-23-2016 at 04:42 PM. Reason: Add missing info.
 
Old 05-23-2016, 02:33 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
It would improve the look and readability if you enclosed the conf files in code tags.

Code:
[code]paste here[/code]
But thanks for sharing!

Last edited by bassmadrigal; 05-23-2016 at 02:35 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard Mapping Issue on Dell Latitude E6520 bdanderson Slackware - Installation 3 11-28-2015 12:49 PM
fan control on dell inspiron tux111 Linux - Hardware 21 10-09-2012 01:01 PM
How to control cpu fan speed? no fan control with BIOS, acpi, lm-sensors startover Linux - Hardware 20 01-08-2011 03:18 AM
Slack 11 Dell Latitude C600, APM Fan doesn't work theangler Linux - General 0 12-26-2006 10:48 PM
Dell Latitude D810 No Sound Control FC4 Rich_in_Name Linux - Laptop and Netbook 5 03-02-2006 03:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration