Tags
android Apache Apple audio bash Chromium command line dell Distro Review fedora firefox flac gadgets gnome google google chrome GStreamer HowTo HP humor ImageMagick jaunty karmic koala LAMP linux Linux Mint Lucid Lynx mp3 MSI Wind Nautilus netbook network news ogg open source opinion phpMyAdmin review security text edit Ubuntu usb web development windows WordPress
How To Control Fan Speeds in Ubuntu
First, you need some cpu temperature monitor software. For Ubuntu you need to install a package called lm-sensors. It's available in Ubuntu's main repository. All the commands listed in this howto should be executed from the terminal.
Then you need to run sensors-detect.
and just follow the prompts. Add the recommended lines to /etc/modules.
Now, if you don't want to reboot, you'll have to manually activate the modules.
where module1 etc. = the module names provided from sensors-detect.
Next, you need to create your fancontrol file. The easiest way is to run pwmconfig.
and work your way through the instructions there.
Finally, run sensors -s to make your fan configuration take effect.
Now, you can check your temps.
Now to run fan control, type:
To have fancontrol run on startup, follow the instructions on the Ubuntu Forums. Note: This step is no longer required in 9.10 Karmic Koala. The fancontrol script is already included in the build. It will start automatically the next time you boot.
To monitor temps and speeds, I like gkrellm. To get it:
Here's a screenshot of Gkrellm.
Comments
17 Responses to “How To Control Fan Speeds in Ubuntu”
Leave a Reply Cancel reply
Subscribe by email
Top Content
- 6 Things To Do After Installing Ubuntu 13.04
- How To Control Fan Speeds in Ubuntu
- Remove Old Kernels In Ubuntu With One Command
- Send Gmail from the Linux Command Line
- How To Rotate The Screen in Ubuntu With The Nvidia Driver
- How to Configure Apache Web Server on Linux
- Fade Out Images with GIMP
- Install SSH and SFTP on Ubuntu or Linux Mint
- Review: Linux Mint 14 MATE Edition
- Installing a LAMP Server on Ubuntu
Categories
-
Archives
- ▼ 2013 (6)
- ► 2012 (19)
- ► 2011 (26)
- ► 2010 (60)
- ► Dec (4)
- ► Nov (4)
- ► Oct (4)
- ► Sep (4)
- ► Aug (3)
- ► Jul (6)
- ► Jun (4)
- ► May (9)
-
- How To Rotate The Screen in Ubuntu With The Nvidia Driver
- Lynx: A Text Only Web Browser
- Midori - A Lightweight Web Browser
- From The "WTF, Apple?" Dept.
- There's Always One Bad Apple
- Ubuntu on "The Big Bang Theory"
- Organize Your Recipes with Gourmet Recipe Manager
- TuxTweaks is now on Twitter!
- Add an Open Terminal Button to Nautilus
- ► Apr (6)
- ► Mar (6)
- ► Feb (3)
- ► Jan (7)
- ► 2009 (89)
- ► Dec (4)
- ► Nov (5)
- ► Oct (7)
- ► Sep (6)
- ► Aug (14)
-
- Enable The RT2860STA Linux Wireless Driver
- Fade Out Images with GIMP
- Command Line Basics: Redirecting Output
- Command Line Basics: View Files With cat
- Command Line Basics: Determine File MIME Types
- Batch Watermark Images in Linux
- Penguin Tweaks Outfit, Gets New Tuxedo
- How To Watermark Images With ImageMagick in Linux
- Nautilus Script to Launch a Terminal
- SUSE Studio Screenshot Tour
- Edit Your GNOME Configuration
- Open Source Apps for Windows to Introduce Users to FOSS
- Name The Next Apple Product
- Fast Boot Your PC With Xandros Presto
- ► Jul (5)
- ► Jun (7)
- ► May (11)
-
- Command Line Basics: Create Custom Commands with Alias
- Command Line Basics: List Files with ls
- Space Saving Tips for Your GNOME Desktop
- Windows Web Browser Shootout
- Command Line Basics: Navigating the File System
- Bash to Basics: Print Text with echo
- Command Line Basics: echo
- Install the Firefox 3.5 Beta in Linux
- Create a Bootable USB Drive with Ubuntu and FreeDOS
- Revert the Update Behavior in Jaunty to the Old Way
- Who Needs Windows?
- ► Apr (11)
-
- Install Picasa 3.0 for Linux (beta)
- Eight Reasons Your Next Computer Should Run Linux
- Jaunty Boots 32% Faster on the MSI Wind
- The Jackalope is Jaunting!
- Windows 7 Won't Close the Door For Linux
- Upgrade Ubuntu with a CD Image
- Get a Jump on Jaunty Jackalope
- Secure File Transfer in Nautilus with SFTP
- Add the NT Backup Tool to Windows XP
- Why I hate Dell
- How To Install AVG Antivirus 7.5 in Ubuntu
- ► Mar (13)
-
- Create an Encrypted Folder in Ubuntu with Cryptkeeper
- How To Create Multiple Firefox Profiles in Windows
- Install the Fedora 10 Desktop Theme in Ubuntu
- Download the Fedora 10 Wallpaper
- How To Install the Echo Icon Theme in Ubuntu
- How To Install the Nodoka Theme Engine in Ubuntu
- Create Your Own .deb Packages with Checkinstall
- Install Your Own Ringtones with Ubuntu and BitPim
- Install Multimedia Codecs in Ubuntu 8.04
- Use Linux to Solve the Linux Journal Scramble
- Dvorak Rings Death Knell for Microsoft's Business Model
- Microsoft to Release Windows Linux!
- Review: Sabrent 68 in 1 Internal Card Reader
- ► Feb (2)
- ► Jan (4)
- ► 2008 (37)
- ► Dec (8)
-
- Update: Logitech LX8 in Ubuntu
- Create a Button to Restart USB in Ubuntu
- Create an Ubuntu Live USB Drive
- Install Fedora Cursor Theme in Ubuntu
- Change the Week Start Day in Ubuntu
- Automatically Update the ClamAV Virus Database
- Add On-Demand Virus Scanning to Nautilus
- Put Your Own Face on Tux - Wii Fit Review
- ► Nov (6)
- ► Oct (8)
-
- Ubuntu 8.10 is Out!
- Split mp3 Files With mp3splt
- How To Install RealPlayer 11 in Ubuntu
- How To Install Free42 in Ubuntu
- Review - Sony MDR-NC6 Noise Canceling Headphones
- How To Set Up a Home Network With Ubuntu, Part 3
- How To Set Up a Home Network With Ubuntu, Part 2
- How To Set Up a Home Network With Ubuntu, Part 1
- ► Sep (6)
- ► Aug (9)
-
- How To Control Fan Speeds in Ubuntu
- How To Install avast! Antivirus in Windows XP
- How to Launch a Program in Ubuntu Without Using The Menu
- Review - Logitech LX8 in Windows XP
- Google Starts "Free The Airwaves" PR Campaign
- Review - Logitech LX8 Cordless Laser Mouse
- Subway Doesn't Like Linux!
- How To Add An Item To Ubuntu's Menu
- How to resample MP3 audio files on Linux using LAME
Favorite Sites




Thanks for your nice little how-to. Everytime i install a new copy of ubuntu i alway stop in her to grab the lines for fancontrol =)
[...] This is probably not necessary for most people, but if your fans are annoyingly loud, you may be able to set up automatic can control. [...]
Might be suave to show how to disable this in case somebody does something that will stop their fan. I ran "sudo gnome-system-monitor" then went to the process tab and ended fancontrol. I think it can be permanently disabled by deleting "/etc/fancontrol" file.
Also, if you have two cores, is there a way to make the fan run based on whichever core is hotter?
Thanks.
Doesn't work for me. I get a 'sorry, no sensors were detected' What shall I do next?
Not all motherboards have the sensors required for fan control. Your motherboard may also have sensors, but lm_sensors doesn't know how to talk to them. It may be that you're just out of luck on this one. Usually there will be a screen in your BIOS setup that will display the current temperatures if you do have sensors. That's perhaps the best way to know if you even have a chance of getting this to work.
One of my computers has a cheap Chaintech motherboard with no sensors. I ended up buying a manual fan controller that fits in a 3.5" bay to quiet the fans down.
Is a noisy fan not caused by a wrong swap setting (swapiness) ?
Noisy fans are usually caused by a high CPU/system temperature, or a system that doesn't regulate the fan speed based on temperature. It could also be caused by bad bearings in the fan itself.
I've never hear of swappiness causing fan noise. I guess it could cause some increased CPU load which could lead to increased fan speed on a regulated system. IDK
Thank you for the tutorial!
I am having problems. You Say "Add the recommended lines to /etc/modules." My recommended module is k10temp which is not included in my kernel as of yet. Kernel version 2.6.32
On the http://www.lm-sensors.org/wiki/Devices website to downloading the k10temp module they give me a kernel mode file - k10temp.c
Here is the problem: What do I do with it? Just place the file into a directory? Which directory? And do I have to include the full path into /etc/modules or merely k10temp? Please explain the process in some detail. Thank you ever so much!
Soenke
Soenke
Thank you for this great tutorial!
I am running into problems though. The module is not part of my kernel. I have to install it - k10temp.c
I can download the file but what do I do with it? How do I reference it correctly in /etc/modules? Do I have to add the full path or just k10temp?
I never have worked with kernel mode files yet. Please explain a little bit on what to do. Thank you ever so much!
Cheers
I'm pretty sure the file you downloaded is a source file for the module. That means you would have to compile a new kernel that includes this. That's well beyond the scope of what I've done before. Try opening the k10temp.c file in a text editor. If the file is readable in a text editor, then it is indeed a source file and you'll need to compile a new kernel that includes it. This page should be of some help for compiling. https://help.ubuntu.com/community/Kernel/Compile
OK, I just found something better. You can try adding the kernel team's PPA to your system and they currently have the 2.6.35 kernel available which should contain the module you need. You can add the PPA to your system from the terminal with
sudo apt-get update
You can then install a new kernel through synaptic, or at the time of this writing:
Linerd,
thank you for your outstanding feedback. I was thinking to wait until the next release of ubuntu, which comes with a kernel version that should include the module. As you correctly assumed, it is indeed a text-readable file. I'd rather prefer getting experience in kernel compiling on a non-essential system
Thank you again for pointing towards the PPA kernel - never about its existence (fairly new to this part of reality
). Also I found a correlating discussion going regarding variances in reported temperatures based on kernel version on the ubuntu forums. Cf. http://ubuntuforums.org/showthread.php?t=1569161
info update: the kernel installed flawlessly. However, the fglrx driver failed to work resulting in sluggish desktop performance. Thus, I wait until 10.10 release and will report on the k10temp module again.
Thank you for your work!
My DellM90 Precision run Ubuntu 10.10, 2.6.35-22 kernel.
Fun speed is always at the max value and this is boring...
the "sensor-detect" return the following:
To load everything that is needed, add this to /etc/modules:
#----cut here----
# Chip drivers
coretemp
#----cut here----
If you have some drivers built into your kernel, the list above will
contain too many modules. Skip the appropriate ones!
Do you want to add these lines automatically to /etc/modules? (yes/NO)y
Successful!
Monitoring programs won't work until the needed modules are
loaded. You may want to run '/etc/init.d/module-init-tools start'
to load them.
Unloading i2c-dev... OK
Unloading i2c-i801... OK
root@connardoia:~# /etc/init.d/module-init-tools start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service module-init-tools start
now I don't know what I have to do...
what are the needed modules that I have to load?
thank you, Gianni
I just made a $800 computer and the CPU fan will run for about a second during the time that it shows the motherboard logo and then it stops and doesn't run at all, ever. what do I do to change that. if someone can answer this than I will be able to use it.
oh and by the way I am using Ubuntu but will be setting up a dual boot with some form of windows
Many motherboards have fan control built into the BIOS or EFI. It's usually given a name like Smart Fan or something similar. If your BIOS does a good job controlling the temp of your CPU, there's no reason to try to control the fan speeds from the OS. If the built-in fan control is not working well, try disabling it in the BIOS and then try following the instructions here.
Will be running through this in a few minutes. My purpose is actually not that the fan is too loud...it's a Dell D630 and the BIOS does not seem to factor the GPU temps into when it spins the fan up. SpeedFan under Win7 works great keeping the chip from roasting again, but I prefer to keep all my systems dual-boot. This should solve it