LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-12-2012, 04:58 AM   #1
Skyer
Member
 
Registered: Aug 2011
Posts: 113

Rep: Reputation: 6
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.0C  (high = +60.0C, crit = +95.0C)
MB Temperature:       +37.0C  (high = +45.0C, crit = +75.0C)

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

radeon-pci-0100
Adapter: PCI adapter
temp1:        +32.0C
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
 
Old 03-12-2012, 05:50 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
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.
 
Old 03-12-2012, 05:53 AM   #3
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934Reputation: 934
Before you go worring about stuff like PWM, make sure you have a PWM fan. You could have all 3 pin (non-PWM) fans.
 
Old 03-12-2012, 08:32 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by cascade9 View Post
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.
 
Old 03-12-2012, 08:42 AM   #5
Skyer
Member
 
Registered: Aug 2011
Posts: 113

Original Poster
Rep: Reputation: 6
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
 
Old 03-12-2012, 09:57 AM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by Skyer View Post
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.
 
Old 03-12-2012, 01:49 PM   #7
Skyer
Member
 
Registered: Aug 2011
Posts: 113

Original Poster
Rep: Reputation: 6
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
 
Old 03-12-2012, 02:41 PM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
What happens if you modprobe it87 and then run pwmconfig?
 
Old 03-13-2012, 04:06 PM   #9
Skyer
Member
 
Registered: Aug 2011
Posts: 113

Original Poster
Rep: Reputation: 6
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
 
Old 03-15-2012, 05:56 AM   #10
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
You could try not loading asus_atk0110 and loading it87 ...
 
  


Reply


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
Cutting fan yellow wire to disable fan speed control Mr. Alex General 2 07-30-2011 06:48 PM
How to control cpu fan speed? no fan control with BIOS, acpi, lm-sensors startover Linux - Hardware 20 01-08-2011 04:18 AM
ACPI or lm-sensors fan control on Sony Vaio (fan runs at full speed) roanm Linux - Hardware 7 11-14-2009 08:37 PM
chassis fan speed control (case fan) wastingtime Linux - Hardware 12 12-02-2007 08:08 PM
howto: control CPU fan speed and Northbridge fan speed? hedpe Linux - Software 2 04-18-2005 03:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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