LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How to control cpu fan speed? no fan control with BIOS, acpi, lm-sensors (https://www.linuxquestions.org/questions/linux-hardware-18/how-to-control-cpu-fan-speed-no-fan-control-with-bios-acpi-lm-sensors-853460/)

startover 12-31-2010 11:35 AM

How to control cpu fan speed? no fan control with BIOS, acpi, lm-sensors
 
I cannot get any fan information from 'lm-sensors' or 'sensors', I tried to run 'pwmconfig' and got this:
Code:

/usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed
I get the following result from 'acpi'
Code:

~$ acpi -c
Cooling 0: LCD 5 of 10
Cooling 1: Processor 0 of 3
Cooling 2: Processor 0 of 3

but I have no tools to control the fan speed from 'acpi'. in particular '/proc/acpi/fan' is an empty directory.

There are no fan info/controls in BIOS either.

I believe the fans do not work as fast as they should and I am trying to find a way to fix this before the cpu cores are melted down from overheating.
Any idea folks?


Laptop information: HP Pavilion dv2500t

Code:

uname -a
Linux uname.host 2.6.35.10-74.fc14.x86_64 #1 SMP Thu Dec 23 16:04:50 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux


Chickenchaser 12-31-2010 12:08 PM

im dealing with same problem and im sensors is retarted and never wants to work same as (cough)*ubuntu*(cough)

business_kid 12-31-2010 02:55 PM

Been there on a HP Compaq 6715S (quite similar). Twin turion 2 Ghz, etc.

Boot a distro kernel, run sensors-detect and set it up to list the modules. Ignore all smart alecs telling you to install ubuntu. I did that and I have _never_ had a slower starting & running box in my life. I go back as far as 386s, but my first real linux box was a '586 with 64 Megs of ram & kde-2.2. THAT was faster than ubuntu.

EDIT: lm_sensors seems to be for folks with no life who want to reprofile their box's thermal behaviour or add temperature monitoring for their outside jacks or somesuch - I never quite figured out which. What it does a good job of is finding your sensors so you can throw modules at them.

startover 12-31-2010 03:22 PM

Quote:

Originally Posted by business_kid (Post 4209053)
Boot a distro kernel, run sensors-detect and set it up to list the modules.

I have run sensors-detedt multiple of times. results:
Code:

HWMON_MODULES="coretemp"
MODULE_0=coretemp

no result for cpu fans.

business_kid 01-01-2011 04:39 AM

I'd be surprised if there were. You want temperature monitoring chips.
Are you scanning _everything_ with sensors-detect?

Code:

What you need to see is temperature chips for your cpu. Here is what I get
AMD K8 thermal sensors...                                  Success!
    (driver `k8temp')

Do you want to scan for Super I/O sensors? (YES/no): y
Trying family `SMSC'...                                    Yes
Found unknown chip with ID 0x3600

ISA slots! Do you want to scan the ISA I/O ports? (YES/no): y

Do you want to probe the I2C/SMBus adapters now? (YES/no): y
Using driver `i2c-piix4' for device 0000:00:14.0: ATI Technologies Inc SB600/SB700/SB800 SMBus
Module i2c-dev loaded successfully.

Next adapter: SMBus PIIX4 adapter at 8200 (i2c-0)
Do you want to scan it? (YES/no/selectively): y
Probing for `Maxim MAX1617'...                              Success!
    (confidence 3, driver `adm1021')
Probing for `Analog Devices ADM1032'...                    Success!
    (confidence 6, driver `lm90')


markush 01-01-2011 06:13 AM

Hello together,

you will need a module to enable the cpu-frequency support, for the AMD-processors it is "powernow-k8", for Intel Core2Duo (which seems to be in startover's laptop) there should be a module "acpi-cpufreq" loaded.

Check
Code:

lsmod | grep acpi
Load
Code:

modprobe acpi-cpufreq
I'd recommend to check this, mostly this module is not automatically loaded without further configuration.

Markus

theacerguy 01-01-2011 10:33 AM

i have the same problem on my hp laptop on vista the fan is controlled and slow but on opensuse 11.3 is is really loud and gets realy hot (93 degrees c)

startover 01-01-2011 11:50 AM

Quote:

Originally Posted by business_kid (Post 4209416)
Are you scanning _everything_ with sensors-detect?

Yes, I am scanning everything. This is the verbose scanning results:
Code:

~$ su -c 'sensors-detect'
Password:
Stopping lm_sensors:                                      [  OK  ]
# sensors-detect revision 5861 (2010-09-21 17:21:05 +0200)
# System: Hewlett-Packard HP Pavilion dv2600 Notebook PC (laptop)
# Board: Wistron 30CE

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): y
Silicon Integrated Systems SIS5595...                      No
VIA VT82C686 Integrated Sensors...                          No
VIA VT8231 Integrated Sensors...                            No
AMD K8 thermal sensors...                                  No
AMD Family 10h thermal sensors...                          No
AMD Family 11h thermal sensors...                          No
Intel Core family thermal sensor...                        Success!
    (driver `coretemp')
Intel Atom thermal sensor...                                No
Intel AMB FB-DIMM thermal sensor...                        No
VIA C7 thermal sensor...                                    No
VIA Nano thermal sensor...                                  No

Some Super I/O chips contain embedded sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no): y
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor'...                  No
Trying family `SMSC'...                                    No
Trying family `VIA/Winbond/Nuvoton/Fintek'...              No
Trying family `ITE'...                                      No
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor'...                  No
Trying family `SMSC'...                                    No
Trying family `VIA/Winbond/Nuvoton/Fintek'...              No
Trying family `ITE'...                                      No

Some hardware monitoring chips are accessible through the ISA I/O ports.
We have to write to arbitrary I/O ports to probe them. This is usually
safe though. Yes, you do have ISA I/O ports even if you do not have any
ISA slots! Do you want to scan the ISA I/O ports? (YES/no): y
Probing for `National Semiconductor LM78' at 0x290...      No
Probing for `National Semiconductor LM79' at 0x290...      No
Probing for `Winbond W83781D' at 0x290...                  No
Probing for `Winbond W83782D' at 0x290...                  No

Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no): y
Using driver `i2c-i801' for device 0000:00:1f.3: Intel 82801H ICH8
Module i2c-dev loaded successfully.

Next adapter: nouveau-0000:01:00.0-2 (i2c-0)
Do you want to scan it? (YES/no/selectively): y
Client found at address 0x50
Probing for `Analog Devices ADM1033'...                    No
Probing for `Analog Devices ADM1034'...                    No
Probing for `SPD EEPROM'...                                No
Probing for `EDID EEPROM'...                                Yes
    (confidence 8, not a hardware monitoring chip)

Next adapter: nouveau-0000:01:00.0-0 (i2c-1)
Do you want to scan it? (YES/no/selectively): y

Next adapter: nouveau-0000:01:00.0-1 (i2c-2)
Do you want to scan it? (YES/no/selectively): y

Now follows a summary of the probes I have just done.
Just press ENTER to continue:

Driver `coretemp':
  * Chip `Intel Core family thermal sensor' (confidence: 9)

Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no): y
Starting lm_sensors: loading module coretemp              [  OK  ]
Unloading i2c-dev... OK


startover 01-01-2011 11:56 AM

Quote:

Originally Posted by markush (Post 4209454)
you will need a module to enable the cpu-frequency support, for the AMD-processors it is "powernow-k8", for Intel Core2Duo (which seems to be in startover's laptop) there should be a module "acpi-cpufreq" loaded.

acpi_cpufreq is already loaded

Code:

~$ lsmod | grep acpi
acpi_cpufreq            7345  1
freq_table              3955  2 cpufreq_ondemand,acpi_cpufreq
mperf                  1481  1 acpi_cpufreq


business_kid 01-01-2011 02:56 PM

Where I have k8, you have coretemp. That is really the critical one, cpu core temperature.
bash-4.1$ lsmod |grep k8
powernow_k8 11244 1
freq_table 2475 2 cpufreq_ondemand,powernow_k8
processor 29915 1 powernow_k8
k8temp 3395 0
hwmon 1449 2 thermal_sys,k8temp

I would run 'modprobe coretemp' and then lsmod |grep coretemp

startover 01-01-2011 06:52 PM

Quote:

Originally Posted by business_kid (Post 4209789)
I would run 'modprobe coretemp' and then lsmod |grep coretemp

it seems that coretemp is already loaded as well

Code:

~$ lsmod |grep coretemp
coretemp                6196  0


business_kid 01-02-2011 02:54 AM

Then I reckon something else is missing and lm_sensors didn't find it, because you don't have a manual for it. Try for other owners
http://www.linux-laptop.net

startover 01-03-2011 11:14 AM

Quote:

Originally Posted by business_kid (Post 4210178)
Then I reckon something else is missing and lm_sensors didn't find it, because you don't have a manual for it. Try for other owners
http://www.linux-laptop.net

Wasn't helpful at all.
I did lots of google search on that website and didn't get anything useful

business_kid 01-04-2011 02:55 AM

Well, I tried. Nobody twists my arm - I'm a volunteer, trying to help.

The bottom line is that I don't think you are talking to temperature control chip.

H_TeXMeX_H 01-04-2011 03:51 PM

Make sure to have the modules 'fan' 'processor' 'thermal' inserted. I don't think the lm-sensors are important.

startover 01-05-2011 07:21 AM

Quote:

Originally Posted by business_kid (Post 4212346)
Well, I tried. Nobody twists my arm - I'm a volunteer, trying to help.

and I didn't blame you,
I just said that my problem is not solved yet,

Quote:

Originally Posted by business_kid (Post 4212346)
The bottom line is that I don't think you are talking to temperature control chip.

what does that suppose to mean?

startover 01-05-2011 07:27 AM

Quote:

Originally Posted by H_TeXMeX_H (Post 4213199)
Make sure to have the modules 'fan' 'processor' 'thermal' inserted. I don't think the lm-sensors are important.

they are all already inserted

Code:

~$ modprobe --first-time -a processor thermal fan
WARNING: Module processor already in kernel (builtin).
WARNING: Module thermal already in kernel (builtin).
WARNING: Module fan already in kernel (builtin).


business_kid 01-05-2011 11:50 AM

Quote:

Originally Posted by startover (Post 4213876)
and I didn't blame you,
I just said that my problem is not solved yet,

Fine - Don't mind me - I was feeling grouchy.

Quote:

Originally Posted by startover (Post 4213876)
what does that suppose to mean?

I think the solution to this will be in discovering some chip you're not talking to yet.

H_TeXMeX_H 01-06-2011 09:22 AM

Maybe clean the dust out. Also, how exactly do you know that the fans are not running at full speed ?

TobiSGD 01-06-2011 09:53 AM

Quote:

Originally Posted by theacerguy (Post 4209596)
i have the same problem on my hp laptop on vista the fan is controlled and slow but on opensuse 11.3 is is really loud and gets realy hot (93 degrees c)

I don't see how this can go together. If your fan is loud it should be running fast, and therefore your CPU's temperature should be low. If it isn't, I would assume that your powersaving isn't set up correctly.


@business_kid: In some cases it really can become handy to monitor temperatures, especially if you are like me and sometimes accidently cover the little slits for cooling on your laptop.

@startover: I have the same problem on my laptop, I can't monitor the fan speed. But that doesn't bother me, because I don't have to. The only important measurement is the CPU temperature, so the first thing to go for should be to get that working. Forget about the fans now, we will get back to that later, if even necessary. Please have a look at /proc/acpi/thermal_zone and look for your CPU. The directory for my CPU for example is named CPUZ. Look into this folder (if there is one and post the files you see.

business_kid 01-08-2011 03:18 AM

@business_kid: In some cases it really can become handy to monitor temperatures, especially if you are like me and sometimes accidentally cover the little slits for cooling on your laptop.

I don't deny it. I use acpitools.


All times are GMT -5. The time now is 06:57 PM.