LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-07-2007, 05:49 PM   #1
d00m1001
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Rep: Reputation: 0
How to lower fan speeds?


I'm not sure how to do this and I've been searching for/installing scripts for days and none seem to work.

A while ago I got sensors-detect to install correctly and sensors gave me the information but now, it seems broken and wont work correctly. Basically, I just want a way to slow my fan speeds down. Don't care if it's GUI or terminal. I'm not too sure what hardware is needed or what hardware I have for that matter. Any help is appreciated.
 
Old 11-07-2007, 07:16 PM   #2
digger95
Member
 
Registered: Oct 2007
Location: Indiana, PA
Distribution: Slackware 14
Posts: 330

Rep: Reputation: 45
I had to do this for my machine, not because I wanted to slow my fans down but because I needed to speed them up. (I lost acpi fan control when I installed Slackware 12 so my fans weren't spinning up with cpu load).

First you need to get lm-sensors working correctly again. I had to first load the module for my winbond sensors at startup via an entry in rc.modules. Then lm-sensors worked consistently.

I use GKrellM to monitor my temps which is a very nice gui that came pre-installed with Slackware 12 (/usr/bin/gkrellm). I did a full-install though so whether its on your machine or not I don't know.

Then run pwmconfig as root to generate your fancontrol configuration (/etc/fancontrol). Pwmconfig will walk you through the steps and will also determine if your fans are even controllable. Once the fancontrol file is generated you can use 'fancontrol start' and 'fancontrol stop' to use it.

I borrowed a script called rc.fancontrol from this nice fella:

http://nil-techno.blogspot.com/

and added entries to /etc/rc.d/rc.local and /etc/rc.d/rc.local_shutdown to
start and stop fancontrol at startup/shutdown.

This has all worked very well for me.

Dig
 
Old 11-07-2007, 07:19 PM   #3
digger95
Member
 
Registered: Oct 2007
Location: Indiana, PA
Distribution: Slackware 14
Posts: 330

Rep: Reputation: 45
P.S. I'm a Slackware newbie so if you burn your computer up its not my fault
 
Old 11-07-2007, 08:02 PM   #4
d00m1001
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by digger95 View Post
I had to do this for my machine, not because I wanted to slow my fans down but because I needed to speed them up. (I lost acpi fan control when I installed Slackware 12 so my fans weren't spinning up with cpu load).

First you need to get lm-sensors working correctly again. I had to first load the module for my winbond sensors at startup via an entry in rc.modules. Then lm-sensors worked consistently.

I use GKrellM to monitor my temps which is a very nice gui that came pre-installed with Slackware 12 (/usr/bin/gkrellm). I did a full-install though so whether its on your machine or not I don't know.

Then run pwmconfig as root to generate your fancontrol configuration (/etc/fancontrol). Pwmconfig will walk you through the steps and will also determine if your fans are even controllable. Once the fancontrol file is generated you can use 'fancontrol start' and 'fancontrol stop' to use it.

I borrowed a script called rc.fancontrol from this nice fella:

http://nil-techno.blogspot.com/

and added entries to /etc/rc.d/rc.local and /etc/rc.d/rc.local_shutdown to
start and stop fancontrol at startup/shutdown.

This has all worked very well for me.

Dig
Well I tried this technique and it does work... I'm testing it now to see how hot it will get with my current config file. Let's hope for no fires... Thanks
 
Old 11-07-2007, 08:18 PM   #5
pbhj
Member
 
Registered: Dec 2002
Location: UK
Distribution: Slackware 12; Ubuntu 7.10
Posts: 358

Rep: Reputation: 31
I get this
Quote:
/usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed
. I presume I can trust that response? My system is quite old and very noisy!
 
Old 11-07-2007, 08:25 PM   #6
d00m1001
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pbhj View Post
I get this . I presume I can trust that response? My system is quite old and very noisy!
You might not have the proper hardware that monitors things like fanspeed/temp/etc... I don't know either though, I'm new at this as well.
 
Old 11-07-2007, 09:08 PM   #7
digger95
Member
 
Registered: Oct 2007
Location: Indiana, PA
Distribution: Slackware 14
Posts: 330

Rep: Reputation: 45
Glad it worked for you d00m1001. I recently upgraded my kernel to 2.6.23.1 and lo and behold the acpi was fixed! Now my system fans run normally again with the proper temperature thresholds so I have no need for the fancontrol script.

Last edited by digger95; 11-07-2007 at 09:35 PM.
 
Old 11-07-2007, 09:32 PM   #8
digger95
Member
 
Registered: Oct 2007
Location: Indiana, PA
Distribution: Slackware 14
Posts: 330

Rep: Reputation: 45
Quote:
Originally Posted by pbhj View Post
I get this... I presume I can trust that response? My system is quite old and very noisy!
I'm new too but it appears that either your system isn't capable of pwm fan control (you did say it's pretty old), or you don't have the sensor module loading at boot. Have you tried sensors-detect to see what it says?
 
Old 11-07-2007, 09:53 PM   #9
d00m1001
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Been a couple hours and no fires yet! System runs pretty fast, theres some slight slowing but it's bearable. I put a huge load on Linux and it still stands. Thanks for the help.
 
Old 11-08-2007, 04:24 AM   #10
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
On newer BIOSes (like on my new computer) there is an option for automatic fan regulation, in which the fans speed up and slow down according to internal temperatures. I suppose on older systems that is not available ... still it's worth a try to check.
 
Old 11-08-2007, 06:20 AM   #11
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,270
Blog Entries: 3

Rep: Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445
Quote:
Originally Posted by pbhj View Post
I get this . I presume I can trust that response? My system is quite old and very noisy!
Hi,

Do you have the hardware specifications? Knowing the hardware would help you to see if the hardware can do what you are expecting.
 
Old 11-08-2007, 05:46 PM   #12
pbhj
Member
 
Registered: Dec 2002
Location: UK
Distribution: Slackware 12; Ubuntu 7.10
Posts: 358

Rep: Reputation: 31
Onebuck .. my hardware details are at http://alicious.com/hardinfo (not quite current wrt the software).

I've used the the sensors-detect prog which gives me

Quote:
To make the sensors modules behave correctly, add these lines to
/etc/modules.conf:

#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----

To load everything that is needed, add this to some /etc/rc* file:

#----cut here----
# I2C adapter drivers
modprobe i2c-viapro
# Chip drivers
# Warning: the required module eeprom is not currently installed
# on your system. For status of 2.6 kernel ports check
# http://www.lm-sensors.org/wiki/Devices. If driver is built
# into the kernel, or unavailable, comment out the following line.
modprobe eeprom
modprobe via686a
# sleep 2 # optional
/usr/bin/sensors -s # recommended
#----cut here----
Now eeprom and i2c-viapro aren't probe-able so I guess I'll need to compile them in. Then try again. gkrellm does give me data on fan speeds though at the moment, I guess the i2c is used to make settings based on that data. When I'm feeling like doing some kernel compiling I'll give it a go.

I have an NVIDIA card (geForce2 GTS) and some flag apparently gets set whenever you compile any modules which means that I have to recompile my graphics drivers ... they don't like compiling unless it's a harvest moon, low tide and the monitor is draped with year-old sage fronds ... so I tend to steer clear if I can.

Last edited by pbhj; 11-08-2007 at 05:48 PM. Reason: error spotted
 
Old 11-09-2007, 06:43 AM   #13
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,270
Blog Entries: 3

Rep: Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445Reputation: 1445
Hi,

Which motherboard are you using? The motherboard would dictate if the support is there.
 
Old 11-09-2007, 12:41 PM   #14
digger95
Member
 
Registered: Oct 2007
Location: Indiana, PA
Distribution: Slackware 14
Posts: 330

Rep: Reputation: 45
Quote:
Originally Posted by H_TeXMeX_H View Post
On newer BIOSes (like on my new computer) there is an option for automatic fan regulation, in which the fans speed up and slow down according to internal temperatures.
I'm trying to understand how all this works so forgive the noob question.

My computer is a low-end HP Pavilion I bought at Wal-Mart in 2004 so it's fairly old but I believe my fans are regulated by the BIOS. When running WinXP, and now the latest Linux kernel, my cpu fan and rear case fan speed up automatically as soon as my cpu temp reaches 63C. However when acpi was broken in the stock Slackware kernel my fans did not work as expected and I was forced to use the fancontrol scripts I outlined above.

Does the BIOS therefore depend on acpi to control fan speeds?

Dig
 
Old 11-09-2007, 01:04 PM   #15
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Quote:
The most widely recognized element of the standard is power management, of which there have been two major improvements. First, it puts the operating system (OS) in control of power management. This stands in contrast with the previously existing APM model, which assigns power management control to the BIOS, with limited intervention from the OS. In ACPI, the BIOS provides the operating system with methods for directly controlling the low-level details of the hardware so it has nearly complete control over the power savings.
source: http://en.wikipedia.org/wiki/Acpi

Thus, you may want to try using apm instead of acpi, especially on an older laptop. I don't think a 2004 laptop is that old, and it should work fine with acpi ... but maybe the acpi implementation in the BIOS is buggy ... so try apm. You can add 'acpi=off' to the '/etc/lilo.conf' append to turn off acpi, and if you have apm, then it will take acpi's place. Remember to run '/sbin/lilo' to update the lilo.conf after you modify it.
 
  


Reply

Tags
fan, linux, slackware, speed


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
/proc/acpi/fan is empty and the fan always work akasa Linux - Laptop and Netbook 1 04-08-2006 01:02 PM
How do I lower security? njbrain Slackware 12 05-01-2005 12:51 PM
howto: control CPU fan speed and Northbridge fan speed? hedpe Linux - Software 2 04-18-2005 02:18 AM
Lower resolution on 9.1? pprms Mandriva 1 09-07-2003 01:52 PM
gkrellm reporting half fan speeds?? wr3ck3d Linux - Software 2 01-12-2003 02:32 AM


All times are GMT -5. The time now is 02:05 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration