Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CPU frequency scaling
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
styggentorsken
n00b
n00b


Joined: 05 Jul 2007
Posts: 22

PostPosted: Thu Jul 05, 2007 11:03 pm    Post subject: CPU frequency scaling Reply with quote

Hi
I am quite new to gentoo, and have just almost completed my first installation.

I'm now trying to make my cpu clock automaticly up and down to save battery power on my laptop.
I used this guide: http://gentoo-wiki.com/HOWTO_Gentoo_on_laptops#CPU_frequency_scaling
And I used the command
Code:
genkernel --menuconfig all
to do the kernel changes.
When i closed the program it compiled a new kernel, and I assume its just to reboot to apply it?

But when I run
Code:
localhost fredrik # cpufreq-info
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
  no or unknown cpufreq driver is active on this CPU


And during the bootup I get this message
Code:
 cpufreqd requires the kernel to be configured with CONFIG_CPU_FREQ


Code:
localhost fredrik # zcat /proc/config.gz | grep CONFIG_CPU_FREQ
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y
# CONFIG_CPU_FREQ_DEBUG is not set
CONFIG_CPU_FREQ_STAT=y
# CONFIG_CPU_FREQ_STAT_DETAILS is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y


Code:
localhost fredrik # cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 36
model name      : AMD Turion(tm) 64 Mobile Technology MT-37
stepping        : 2
cpu MHz         : 1989.867
cache size      : 1024 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow up pni lahf_lm ts fid vid ttp tm stc
bogomips        : 3982.77
clflush size    : 64


Any help appreciated :(
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9625
Location: beyond the rim

PostPosted: Fri Jul 06, 2007 12:32 am    Post subject: Reply with quote

Do you have CONFIG_X86_POWERNOW_K8 enabled?
(Personally I'd just set the governor to ondemand or conservative manually via sysfs, that's easier to debug anyway)


Last edited by Genone on Fri Jul 06, 2007 12:36 am; edited 1 time in total
Back to top
View user's profile Send private message
Lupin_the_3rd
Apprentice
Apprentice


Joined: 03 Apr 2005
Posts: 168

PostPosted: Fri Jul 06, 2007 12:33 am    Post subject: Reply with quote

Well, I used the same HOWTO you did and it worked for me on my hp laptop with intel cpu. You can view my working kernel config here:
http://home.earthlink.net/~george164/dv9500t/dv9500t.html

Once your new kernel and modules are in place, reboot, and then:

emerge cpufrequtils
cpufreq-set -g conservative
_________________
Compaq XP1000 Alpha EV67 667Mhz w/ 2GB ECC
32bit PCI: ATI Radeon 9100 (DRI works!)
32bit PCI: Generic Firewire 400 card
64bit PCI: BCM5703 Gig-E (Compaq NC7771)
64bit PCI: Sil3124 SATA w/ mdadm RAID1 (pair of WD VelociRaptors)
Back to top
View user's profile Send private message
styggentorsken
n00b
n00b


Joined: 05 Jul 2007
Posts: 22

PostPosted: Fri Jul 06, 2007 2:31 pm    Post subject: Reply with quote

That was it! :-)
CONFIG_X86_POWERNOW_K8 was set to m, changed it to y
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum