LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Fan speed control problem (https://www.linuxquestions.org/questions/linux-newbie-8/fan-speed-control-problem-934000/)

Skyer 03-12-2012 03:58 AM

Fan speed control problem
 
Hello,
I'm trying to adjust my fan speeds in linux, but pwmconfig fails with:
Code:

/usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed
However, I have lm-sensors installed, and working:
Code:

[root@sigma skyer]# sensors
atk0110-acpi-0
Adapter: ACPI interface
Vcore Voltage:        +1.31 V  (min =  +0.85 V, max =  +1.70 V)
 +3.3 Voltage:        +3.35 V  (min =  +2.97 V, max =  +3.63 V)
 +5 Voltage:          +5.11 V  (min =  +4.50 V, max =  +5.50 V)
 +12 Voltage:        +12.44 V  (min = +10.20 V, max = +13.80 V)
CPU FAN Speed:        997 RPM  (min =  600 RPM)
CHASSIS FAN Speed:    641 RPM  (min =  600 RPM)
CHASSIS FAN 2 Speed:  421 RPM  (min =  600 RPM)
CPU Temperature:      +30.0°C  (high = +60.0°C, crit = +95.0°C)
MB Temperature:      +37.0°C  (high = +45.0°C, crit = +75.0°C)

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +0.0°C  (high = +70.0°C)
                      (crit = +90.0°C, hyst = +88.0°C)

radeon-pci-0100
Adapter: PCI adapter
temp1:        +32.0°C

Also, I can read files specifying fan speeds, but can't write to them:
Code:

[root@sigma skyer]# cat /sys/class/hwmon/hwmon0/fan1_input
997
[root@sigma skyer]# echo "800" > /sys/class/hwmon/hwmon0/fan1_input
bash: /sys/class/hwmon/hwmon0/fan1_input: Permission denied

I'm not sure if my motherboard is PWM capable, it's model m4a78t-e from Asus (it has like 2 years).

Thanks,

Skyer

catkin 03-12-2012 04:50 AM

The error message may be caused by the module not being loaded.

Try
Code:

lsmod | grep -E 'coretemp|w83627ehf'
If that gives no output try
Code:

modprobe coretemp
modprobe w83627ehf

If that gives a "No such device" error you will have to re-build the kernel with the w83627ehf module.

There's a known problem with that module and the ACPI address space so if it still doesn't work try adding kernel option acpi_enforce_resources=lax.

If the m4a78t-e is like the P8H67-V, CHA_FAN1 and CHA_FAN2 are controlled by the same PWM port in which case you will need a very recent (development?) version of the fancontrol script that can cope with it.

cascade9 03-12-2012 04:53 AM

Before you go worring about stuff like PWM, make sure you have a PWM fan. You could have all 3 pin (non-PWM) fans.

catkin 03-12-2012 07:32 AM

Quote:

Originally Posted by cascade9 (Post 4624600)
Before you go worring about stuff like PWM, make sure you have a PWM fan. You could have all 3 pin (non-PWM) fans.

PWM fans are not necessary in the (not uncommon?) situation where the fan headers are voltage controlled by the superIO chip.

Skyer 03-12-2012 07:42 AM

Thank you for replying,

catkin: Those two modprobe commands give me "No such a device". I'm not sure about need for coretemp though, I've googled a little bit and besides the fact that I know very little about this, coretemp seems to be driver for Intel family chips - while I have AMD CPU, and I'm using asus_atk0110 (which is loaded). I'm using Arch linux, and fancontrol is part of lm_sensors, which is up to date.

cascade9: Well this is embarrassing, but I do have 3pin fans, and CPU has 4pins. As I said, I don't know much about this stuff. Is there a way to control those?


Skyer

catkin 03-12-2012 08:57 AM

Quote:

Originally Posted by Skyer (Post 4624703)
catkin: Those two modprobe commands give me "No such a device". I'm not sure about need for coretemp though, I've googled a little bit and besides the fact that I know very little about this, coretemp seems to be driver for Intel family chips - while I have AMD CPU, and I'm using asus_atk0110 (which is loaded). I'm using Arch linux, and fancontrol is part of lm_sensors, which is up to date.

cascade9: Well this is embarrassing, but I do have 3pin fans, and CPU has 4pins. As I said, I don't know much about this stuff. Is there a way to control those?

OK about coretemp.

The asus_atk0110 module was unusable on the P8H67-V. This was confirmed on the lm_sensors mailing list by lm_sensors developer Luca Tettamanti. It looks as if it is not working on your system either.

What sort of Super-I/O chip does sensors-detect find?

3-pin fans can be controlled (on 4-pin headers) on the P8H67-V as they could on my previous Gigabyte motherboard.

Skyer 03-12-2012 12:49 PM

From sensors-detect:

Driver `it87':
* ISA bus, address 0x290
Chip `ITE IT8720F Super IO Sensors' (confidence: 9)

Driver `k10temp' (autoloaded):
* Chip `AMD Family 10h thermal sensors' (confidence: 9)

Skyer

catkin 03-12-2012 01:41 PM

What happens if you modprobe it87 and then run pwmconfig?

Skyer 03-13-2012 03:06 PM

pwmconfig, as I've mentioned, complains about:
Code:

/usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed
Code:

[root@sigma skyer]# modprobe it87
ERROR: could not insert 'it87': Device or resource busy

Going to play with it a little bit...



Skyer

catkin 03-15-2012 04:56 AM

You could try not loading asus_atk0110 and loading it87 ...


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