Zum Inhalt springen

D945GCLF2 Fan and temperature control

Getting the fan and temperature information on the D945GCLF2 is a little tricky in Ubuntu Server 10.10. So here are some steps I have taken to get most of this to work using lm-sensors and hddtemp.

Installation and setup

Install lm-sensors

lm-sensors will give you information about your current motherboard voltages, temperatures and fan speeds. This is prettry straight forward, do as follows (each line is a new command):

apt-get install lm-sensors

You will be asked if you want to add the detected sensors to the /etc/modules file. Confirm this, and you should find the following has been added:

# Generated by sensors-detect on Fri Feb 25 08:05:31 2011
# Adapter drivers
# Chip drivers

Now you can reboot and then enter "sensors" or start the sensing manually for testing purposes with:

modprobe -a i2c-i801 smsc47m192 smsc47m1

You should get an output, similar to this. Note: fan speeds and processor temperatures (coretemp) are missing or showing an error.

Adapter: SMBus I801 adapter at 3000
in0:         +2.56 V  (min =  +0.00 V, max =  +3.32 V)
Vcore:       +1.15 V  (min =  +0.00 V, max =  +2.99 V)
+3.3V:       +3.33 V  (min =  +2.97 V, max =  +3.63 V)
+5V:         +4.95 V  (min =  +4.50 V, max =  +5.50 V)
+12V:       +11.94 V  (min = +10.81 V, max = +13.19 V)
VCC:         +3.35 V  (min =  +2.97 V, max =  +3.63 V)
in6:         +1.58 V  (min =  +0.00 V, max =  +1.99 V)
in7:         +1.77 V  (min =  +0.00 V, max =  +2.39 V)
SIO Temp:    +33.0°C  (low  = -127.0°C, high = +127.0°C)
temp2:       +41.0°C  (low  = -127.0°C, high = +127.0°C)
temp3:       +38.0°C  (low  = -127.0°C, high = +127.0°C)
cpu0_vid:   +2.050 V

Installing hddtemp

hddtemp will give you information about the temperature of your harddrives. To install, do the following:

apt-get install hddtemp

During the installation process you may be asked if you want to run hddtemp as a deamon, e.g. you can broadcast the information on the network. I choose not to do this, since it's easy enough to login with Putty and get the info when I want it. No need to start another process. Once installation is finished you can call up the information with the following command:

sudo hddtemp /dev/sda

It is a requirement that you tell hddtemp which hard drive it should give information about. However, you can call up infos on multiple hard drives in one line (separate each drive with a space), e.g.

sudo hddtemp /dev/sda /dev/sdb /dev/sde /dev/sdf /dev/sdg

The results shown should be similar to this:

/dev/sda: WDC WD2500BEVT-75ZCT2: 32°C
/dev/sdb: Hitachi HDS721050CLA362: 28°C
/dev/sde: Hitachi HDS721050CLA362: 26°C
/dev/sdf: Hitachi HDS721050CLA362: 27°C
/dev/sdg: Hitachi HDS721050CLA362: 26°C

Missing fan information

So after looking around a while, I found the following solution to get the fan information going. However, be warned some believe that doing this may be dangerous for your system, while others say they have been doing it for years, with no harm. Decide yourself, for me it worked. Edit the /etc/default/grub as follows:

sudo nano /etc/default/grub
There, find the line beginning with GRUB_CMDLINE_LINUX_DEFAULT="quiet ..." and add the parameter acpi_enforce_resources="lax". The result should be similar to this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi_enforce_resources=lax"

Save the file and then rebuild your grub.cfg with the following command:

sudo update-grub

Now, do a reboot and enter "sensors" again. You should now see information about your fan(s). Note: I don't have a chassis fan connected to the motherboard, that's why fan1 shows 0 RPM. fan2 is the CPU fan.

Adapter: ISA adapter
fan1:          0 RPM  (min = 1280 RPM, div = 4)  ALARM
fan2:       4468 RPM  (min = 1280 RPM, div = 4)

Processor core temperatures not working

I haven't managed to get them to work yet. Currently the cores are shown, but with an error message ("ERROR: Can't get value of subfeature temp1_input: Can't read") and no temperature information. I'll update this page, soon as I find out what (if anything) can be done to solve this problem. Of course, if anyone knows, do please let me know.

1 Kommentar

[1] Gravatar0
Rahul Jawale sagte ...
30. März 2012, 21:12

Danke!!! This helped me to setup my HTPC. :)

Kommentiere diesen Artikel

Kommentar (erforderlich) (keine Anzeige) (optional)
Ja, erkenne mich, wenn ich das nächste mal hier bin