PDA

View Full Version : AMD Cool'n'Quiet (PowerNow) on FC3 x86_64


thosmas
6th January 2005, 10:31 PM
Hi, I recently got a AMD Athlon 64 machine and installed Fedora Core 3 x86_64 on it. Things are beginning to
work fine now, but I'm unable to get the AMD Cool'n'Quiet functionality to work. I have updated to
kernel-2.6.9-1.681_FC3.

Checked the kernel-2.6.9-x86_64.config from kernel.src.rpm to verify that the CONFIG_X86_POWERNOW_K8 is enabled. It is set to y, so I shouldn't need to modprobe the
powernow-k8 kernel module, as I was first thinking.

Also made sure that Cool'n'Quiet is enabled in the BIOS. I have an ASUS K8N-E Deluxe motherboard, following the manual I set the following:
Advanced->CPU Configuration->AMD CPU Cool & Quiet Configuration->Cool'N'Quiet=Enabled
Power->ACPI 2.0 Support=Yes

But my CPU fan is still noisy (btw, a Zalman CNPS7000B w/connected FAN MATE).
Where do I go from here? Is there a service I need to enable or something?

thosmas
6th January 2005, 11:09 PM
It seems that the cpuspeed service is the thing? I verified that it is started. Then edited /etc/cpuspeed.conf and added
DRIVER="powernow-k8". Restarted service, but no positive results. Is this line needed when the powernow-k8 driver is compiled into the kernel anyway? /var/log/messages says (I'm using norwegian locale):

Jan 6 23:45:24 localhost cpuspeed: cpuspeed -INT succeeded
Jan 6 23:45:25 localhost cpuspeed: cpuspeed oppstart succeeded

Could it be that I'm using the Zalman fan which is spinning quite slow?
Or some ACPI issues?

[root@localhost 23:56:18 ~]$ cat /proc/acpi/processor/CPU1/info
processor id: 0
acpi id: 1
bus mastering control: yes
power management: no
throttling control: no
limit interface: no

[root@localhost 23:54:48 ~]$ cat /proc/acpi/processor/CPU1/power
active state: C1
default state: C1
bus master activity: 00000000
states:
*C1: promotion[--] demotion[--] latency[000] usage[00000000]
C2: <not supported>
C3: <not supported>
[
root@localhost 23:54:05 ~]$ cat /proc/acpi/processor/CPU1/throttling
<not supported>

[root@localhost 23:54:52 ~]$ cat /proc/acpi/processor/CPU1/limit
<not supported>

thosmas
6th January 2005, 11:35 PM

OK, now I'm realizing that cpu is changing frequencies:

[root@localhost 00:21:53 ~]$ cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
1000000

Then started some kernel compiling, and:

[root@localhost 00:22:24 ~]$ cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
1800000

So my problem boils down to regulating the fan. The problem here is probably (hopefully) that the fan in normal mode is
running much slower than typical CPU fans (because it's bigger). Is there any settings I can tune for this?

vanstrien
2nd February 2005, 03:48 PM
thosmas,

I've got a similar problem. I can't remember what messages I was getting now, but will check when I get home.

Hopefully we can get this sorted as my wife says any noisy box in our house is getting hid away someplace dark. :-)

macemoneta
2nd February 2005, 05:03 PM
For fan control, you will need to setup lmsensors first, then the fanconcontrol utility.

To setup lmsensors, run:

sensors-detect

Follow the instructions, and make the necessary changes to /etc/rc.d/rc.local and /etc/modprobe.conf.

Once that's done, you can setup the fan control. There is a bug (https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=145294) in the pwmconfig fancontrol setup utility, that you may need to patch. Once you successfully run pwnconfig, you will have a /etc/fancontrol file, which will look something like this:

INTERVAL=5
FCTEMPS= 2-0290/pwm2=2-0290/temp2_input
FCFANS= 2-0290/pwm2=2-0290/fan2_input
MINTEMP= 2-0290/pwm2=25
MAXTEMP= 2-0290/pwm2=45
MINSTART= 2-0290/pwm2=120
MINSTOP= 2-0290/pwm2=85

You can then add the following to your /etc/rc.d/rc.local:

/usr/sbin/fancontrol &> /var/log/fancontrol.log &

Dog-One
2nd February 2005, 07:46 PM
You may also find this thread somewhat relevant.

ahimosa
5th February 2005, 09:16 PM
there's answer in this link ===> www.sfc3-on-opt_i.com (linoczka.blox.pl/html)

jtp51
27th March 2006, 06:16 PM
What are the steps to install the patch for the pwmconfig fancontrol setup utility? Is this even needed with fc 5?

Thanks,