You are not logged in.

#1 2005-10-04 17:08:00

timtux
Member
From: Gävle, Sweden
Registered: 2005-10-04
Posts: 178
Website

AMD Powernow!

Hello evereyone!

Im pretty new to archlinux, have that in your mind if you want to help me.
I want to use AMD Powernow! for my cpu, so the cpu is downclocked when
the cpu is not in full load, because the temperature is way to high right now, and
battery life time is really bad.

So, it would be very nice if somone explained for me how to get the powernow function
working, i really hate to complie the kernel, because i never succeed so i prefer an other way
if it exist some smile

Some info about my Acer Aspire 1362WLC (Laptop):
Kernel     : 2.6.13-ARCH
CPU: Processor 0 is Mobile AMD Sempron(tm) Processor 2800+ 1601MHz, 256 KB Cache


http://timtux.net/ - my personal blog about almost everything

Offline

#2 2005-10-04 18:54:16

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: AMD Powernow!

The module you want is powernow-k8. Not sure which frequency adjusting software is best, but cpufreqd never gave me any trouble on my last box.

Offline

#3 2005-10-04 19:19:12

timtux
Member
From: Gävle, Sweden
Registered: 2005-10-04
Posts: 178
Website

Re: AMD Powernow!

Gullible Jones wrote:

The module you want is powernow-k8. Not sure which frequency adjusting software is best, but cpufreqd never gave me any trouble on my last box.

ok smile

So just:
pacman -S cpufreqd
modprobe powernow-k8

Then it should work?


http://timtux.net/ - my personal blog about almost everything

Offline

#4 2005-10-04 19:22:14

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: AMD Powernow!

You'll want to add powernow-k8 to the modules array in /etc/rc.conf, and cpufreqd to the daemons array.

Offline

#5 2005-10-04 19:36:13

timtux
Member
From: Gävle, Sweden
Registered: 2005-10-04
Posts: 178
Website

Re: AMD Powernow!

Gullible Jones wrote:

You'll want to add powernow-k8 to the modules array in /etc/rc.conf, and cpufreqd to the daemons array.

Have added them, then rebooted.
They are started, but my cpu still is on 1600mhz whit about 3% load.

Do i need to add som other deamons and/or modules? Like acpi ?

[root@tim cpufreq]# lsmod | grep powernow
powernow_k8            12688  0
freq_table              3984  1 powernow_k8
[root@tim cpufreq]# ps -aux | grep cpu
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      2558  0.3  0.1   1548   620 ?        Ss   23:25   0:02 /usr/sbin/cpufreqd
root      5861  0.0  0.1   1784   608 pts/0    R+   23:35   0:00 grep cpu


http://timtux.net/ - my personal blog about almost everything

Offline

#6 2005-10-04 19:42:32

Karma XXL
Member
From: Budapest, Hungary
Registered: 2005-06-13
Posts: 91

Re: AMD Powernow!

Have you tried to unplug your laptop's AC adapter? Cpufreqd's default configuration only downclocks your CPU when you're running on battery.

Check out /etc/cpufreqd.conf for the configuration.


Ailen:
Kernel: Linux 2.6.14-rc4-ck1 #1 PREEMPT
Built on: Mon Oct 17 14:51:37 CEST 2005
Hardware: Mobile AMD Sempron(tm) Processor 2800+ AuthenticAMD
WM: E17 snapshot 20051016

Offline

#7 2005-10-04 19:50:01

timtux
Member
From: Gävle, Sweden
Registered: 2005-10-04
Posts: 178
Website

Re: AMD Powernow!

Karma XXL wrote:

Have you tried to unplug your laptop's AC adapter? Cpufreqd's default configuration only downclocks your CPU when you're running on battery.

Check out /etc/cpufreqd.conf for the configuration.

Yes, have tried to unplug the AC adapter - whit no better results.

Just pasting this so im sure is correct:

#
# Module to load at boot-up (in this order)
#   (prefix a module with a ! to disable it)
#
MODULES=(!usbserial powernow-k8 cpufreq_ondemand via-rhine !ide-scsi)
#
# Daemons to start at boot-up (in this order)
#   (prefix a daemon with a ! to disable it)
#
DAEMONS=(syslog-ng acpid cpufreqd hotplug !pcmcia network netfs crond autofs)

http://timtux.net/ - my personal blog about almost everything

Offline

#8 2005-10-04 20:11:01

robot5x
Member
Registered: 2004-01-26
Posts: 266

Re: AMD Powernow!

I got this working by following this thread

This basically involves compiling the necessary modules into the kernel, then setting what scaling governor you want to use via /etc/rc.local. Might need to recompile the kernel, but this is a simple method which works.

Offline

#9 2005-10-04 20:39:16

timtux
Member
From: Gävle, Sweden
Registered: 2005-10-04
Posts: 178
Website

Re: AMD Powernow!

Holy Christ, now its working. Making an wiki for this later smile .Thanks everyone!

This is my solution:

First download cpufreqd whit pacman:

pacman -S cpufreqd

Then edit the DEAMONS and MODULES lines in your /etc/rc.conf to somthing like this: (dont remove your existing modules and deamons)

MODULES=(cpufreq_powersave cpufreq_ondemand cpufreq_userspace freq_table powernow-k8)
DAEMONS=(acpid cpufreqd)

Then add this line to your /etc/rc.local:

echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Reboot

shutdown -r now

Then check it (note your AC adapter have to be unpluged as deafault, just edit /etc/cpufreqd.conf as you want):

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
it should retrurn 800000

http://timtux.net/ - my personal blog about almost everything

Offline

Board footer

Powered by FluxBB