Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

Howto: Dynamic CPU speed with Athlon XP and nForce2 boards

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
148 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • Next
Author
Message
micmac
l33t
l33t
Posts: 996
Joined: Fri Nov 28, 2003 8:38 pm

  • Quote

Post by micmac » Wed Feb 23, 2005 5:31 am

Hi Hasw!

I used min_fsb=60 and 1,1V (1100). In fact I only used this pair and the default (aka full speed). The problem is not running these speeds. prime95 didn't see any errors for 2 hours while running 60/1100. But changing between them often made the box hang. Afterwards my xfs filesystems needed to be repaired.

I'm not sure if I dare to take the risk again :)

Greets

micmac
Top
Hasw
n00b
n00b
Posts: 68
Joined: Fri Dec 31, 2004 12:25 am
Location: Germany
Contact:
Contact Hasw
Website

  • Quote

Post by Hasw » Wed Mar 02, 2005 6:14 pm

You should use some steps between the changes 60@1100->Fullspeed and backwards. I think that's maybe a little bit too much ;) After all these functions are experimental and may not work on all systems perfect. If somebody isn't sure if it works, he should not try it on a important system without backup.
Top
dob
Apprentice
Apprentice
User avatar
Posts: 199
Joined: Fri Oct 04, 2002 2:41 am
Location: S.L.P.

  • Quote

Post by dob » Fri Mar 04, 2005 7:51 pm

What cpufreq daemon do you guys use?
I use powernowd which is fine and easy to set up; but I only change the FSB and not the voltage
Top
energy
n00b
n00b
Posts: 25
Joined: Tue Dec 07, 2004 1:40 pm
Location: Oulu, Finland
Contact:
Contact energy
Website

  • Quote

Post by energy » Sun Mar 06, 2005 10:47 pm

I just set up my box to use cpufreq scaling... Now my XP2200+ (1,8GHz) is running at 1,3GHz :)
The FSB range that works for me is 95-133MHz (my cpu is 133MHz FSB model) I can go even
below 1,3GHz and it works perfectly, BUT it hangs immediately after I try to raise it up again...
So I can go way down but never get back up :lol:

Oh, the motherboard is Asus A7N8X.

EDIT: Did some tweaking, now running 12x150MHz. So now I can scale down to 1,14GHz without
any problems. Solid as a rock @ full speed and 1,14GHz :)
Top
KpR2000
n00b
n00b
Posts: 55
Joined: Mon Aug 18, 2003 5:04 pm

  • Quote

Post by KpR2000 » Wed Mar 09, 2005 12:32 pm

I am using 2.6.11-nitro0 and the patch atxp-1.0.3 patch applied correctly.
But I have problems to compile the kernel:

Following error occured at atxpl_detect function:

Code: Select all

.
.
  CC [M]  drivers/i2c/chips/w83781d.o
  CC [M]  drivers/i2c/chips/atxp1.o
drivers/i2c/chips/atxp1.c: In Funktion »atxp1_detect«:
drivers/i2c/chips/atxp1.c:235: error: structure has no member named `id'
make[3]: *** [drivers/i2c/chips/atxp1.o] Fehler 1
make[2]: *** [drivers/i2c/chips] Fehler 2
make[1]: *** [drivers/i2c] Fehler 2
make: *** [drivers] Fehler 2
Could it be a simple fix to add or set a correct id? I have no idea.

Anyone a fix?
Top
PrakashP
Veteran
Veteran
User avatar
Posts: 1249
Joined: Mon Oct 27, 2003 4:10 pm
Location: C.C.A.A., Germania

  • Quote

Post by PrakashP » Wed Mar 09, 2005 1:02 pm

Yes, put /* */ around the offending line.
Top
hothead
Apprentice
Apprentice
User avatar
Posts: 277
Joined: Fri Jul 02, 2004 2:56 pm
Location: /dev/core

  • Quote

Post by hothead » Wed Mar 09, 2005 11:37 pm

@Hasw

You wrote that VCore changing is supported on
Leadtek K7NCR-18D. I've a K7NCR-18D Pro but when I load the
atxp1 module I do not get any kernel message. I looked at the board and
I cannot find a chip named atxp1. How do you switch the VCore here?

Regards

Ruben
Got a question? - http://justfuckinggoogleit.com/
Top
chx1975
n00b
n00b
Posts: 2
Joined: Thu Mar 10, 2005 12:05 am

Two vcores??

  • Quote

Post by chx1975 » Thu Mar 10, 2005 12:13 am

Motherboard is 8RDA+, CPU is a Mobile Barton 2500+.

Sensors says I have "Vcore 1" which is 1.7V and "Vcore 2" which is 1.25 -- I have echo 1250 >/sys/bus/i2c/devices/0-0037/cpu_vid so 1.25 is fine, it's great. But what's that alarmingly high 1.7V?

Anyone has a working sensors file for this MB?
Top
woZa
Guru
Guru
User avatar
Posts: 340
Joined: Tue Nov 18, 2003 11:34 am
Location: The Steel City - UK

Re: Two vcores??

  • Quote

Post by woZa » Thu Mar 10, 2005 9:44 am

chx1975 wrote:Motherboard is 8RDA+, CPU is a Mobile Barton 2500+.

Sensors says I have "Vcore 1" which is 1.7V and "Vcore 2" which is 1.25 -- I have echo 1250 >/sys/bus/i2c/devices/0-0037/cpu_vid so 1.25 is fine, it's great. But what's that alarmingly high 1.7V?

Anyone has a working sensors file for this MB?
Probably your chipset voltage (vdd) mine is only 1.56v but isn't adjustable - later models were I believe.

1.7 isn't so high. Some people run it at 2.0v (that is quite high). Just check the temp for the chipset and so long as it doesn't get above around 45c you should be fine.
A few months struggling with gentoo is better than a lifetime struggling with windoze!
Top
chx1975
n00b
n00b
Posts: 2
Joined: Thu Mar 10, 2005 12:05 am

Re: Two vcores??

  • Quote

Post by chx1975 » Thu Mar 10, 2005 9:55 am

woZa wrote:
chx1975 wrote:Motherboard is 8RDA+, CPU is a Mobile Barton 2500+.

Sensors says I have "Vcore 1" which is 1.7V and "Vcore 2" which is 1.25 -- I have echo 1250 >/sys/bus/i2c/devices/0-0037/cpu_vid so 1.25 is fine, it's great. But what's that alarmingly high 1.7V?

Anyone has a working sensors file for this MB?
Probably your chipset voltage (vdd) mine is only 1.56v but isn't adjustable - later models were I believe.

1.7 isn't so high. Some people run it at 2.0v (that is quite high). Just check the temp for the chipset and so long as it doesn't get above around 45c you should be fine.
Oh, it's VDD? That's adjustable, thanks, a hardware hacker friend of mine have soldered something and there is a nice knob to tune it up and down :) I guess yours' is 1.65V.

What about a working sensors file?
Top
woZa
Guru
Guru
User avatar
Posts: 340
Joined: Tue Nov 18, 2003 11:34 am
Location: The Steel City - UK

  • Quote

Post by woZa » Thu Mar 10, 2005 10:15 am

I guess yours' is 1.65V.
I wish it was but it's only 1.56v and my last attempt at soldering something small and fiddley didn't really work out too well so I am not about to trash my board by trying to solder a resistor onto it! Still runs stable at 200Mhz fsb though.
A few months struggling with gentoo is better than a lifetime struggling with windoze!
Top
dob
Apprentice
Apprentice
User avatar
Posts: 199
Joined: Fri Oct 04, 2002 2:41 am
Location: S.L.P.

  • Quote

Post by dob » Sat Mar 12, 2005 12:22 pm

Can the 'ondemand' cpufreq governor be used with an nforce2 board?

The ondemand governor looks interesting because it will automatically adjust the cpu speed based on cpu usage, without having to use a userspace daemon like cpufreqd / speedfreqd etc.

In theory, this is how you proceed:
1) Check that the on demand governor is available (it is!)

Code: Select all

# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
ondemand powersave userspace performance 
2) Use the ondemand governor as default

Code: Select all

#  echo ondemand  > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
However, it doesn't work ... scaling_governor remains at the previous value. I can switch between powersave / userspace etc fine, but it won't let me use ondemand 8O
Top
hothead
Apprentice
Apprentice
User avatar
Posts: 277
Joined: Fri Jul 02, 2004 2:56 pm
Location: /dev/core

  • Quote

Post by hothead » Sat Mar 12, 2005 6:04 pm

Is nobody there who knows how to change the VCore on a Leadtek K7NCR18D?
Got a question? - http://justfuckinggoogleit.com/
Top
mikeraach
Apprentice
Apprentice
User avatar
Posts: 168
Joined: Mon Jan 20, 2003 7:58 am
Contact:
Contact mikeraach
Website

  • Quote

Post by mikeraach » Fri Mar 18, 2005 7:42 am

I have a NF7-S v2 and all modules compiled/installed.

I have my rig overclocked to 10x230, so I set my min fsb to 180. Prime95 fails after a few minutes and I often get programs crashing.

I reboot, then try min fsb to 200 and get same results as above...min 220, same.
This is with a completely stable 230fsb setup (prime95 too).

I tried flashing to a different bios, no change, and I tried setting my chip to default 11x166 (xp2500). Setting min fsb to anything resulted in a instability problem as well.

Thinking this was maybe a problem with the way linux handles changing fsb with my board, I tried 8rdavcore and have the same problems as listed above.

HOWEVER, I have used 8rdavcore to RAISE the fsb and had no problems. It seems like my board just doesn't like lowering the fsb from stock. Is there a way that I can overclock instead of underclock with the cpufreq-nforce2 driver?
Top
Hasw
n00b
n00b
Posts: 68
Joined: Fri Dec 31, 2004 12:25 am
Location: Germany
Contact:
Contact Hasw
Website

  • Quote

Post by Hasw » Sun Mar 20, 2005 9:52 pm

@hothead: Sorry, the ATXP1 module doesn't support the K7NCR18D, this was a wrong entry (or they have different revisions, don't know yet). However the nforce2-smi module will support it.

@dob: Ondemand is not yet supported.

@mikeraach: I'll add a module patch to set the maximum FSB via module option (as initially, but it was removed).


Alexej has written a Python-script to change FSB and voltage on demand: http://www.lextech.net/work/autoFreq/
Top
bgradid
Apprentice
Apprentice
Posts: 162
Joined: Mon Mar 21, 2005 12:34 am

Can't change frequency

  • Quote

Post by bgradid » Fri Mar 25, 2005 10:30 am

I've followed the directions to the letter, but, I'm not having any luck changing the frequency, I run this

Code: Select all

bash-2.05b# echo 1700000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
bash-2.05b# cat /proc/cpuinfo | grep MHz
cpu MHz         : 1469.882
I'm running an nf7-s and a 1700+ anything I could be doing wrong?
Top
Hasw
n00b
n00b
Posts: 68
Joined: Fri Dec 31, 2004 12:25 am
Location: Germany
Contact:
Contact Hasw
Website

  • Quote

Post by Hasw » Fri Mar 25, 2005 8:50 pm

What are scaling_max_freq and scaling_min_freq saying? If you not have overclocked your CPU you will not get more than 1470 MHz, because this is the frequency of a 1700+.
Top
michael3
n00b
n00b
Posts: 34
Joined: Tue Aug 17, 2004 6:05 pm

  • Quote

Post by michael3 » Sat Mar 26, 2005 4:25 pm

hello

I got an error Message:
-bash: /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed: Keine Berechtigung (no permission)

Yes, I have executed it as root.
I've got an Asus A78X-E Board with Nforce 2. The FSB and the Volt are displayed without problems.

ls /sys/devices/system/cpu/cpu0/cpufreq
affected_cpus cpuinfo_max_freq scaling_available_governors scaling_driver scaling_max_freq
cpuinfo_cur_freq cpuinfo_min_freq scaling_cur_freq scaling_governor scaling_min_freq

Thank you!
Top
Hasw
n00b
n00b
Posts: 68
Joined: Fri Dec 31, 2004 12:25 am
Location: Germany
Contact:
Contact Hasw
Website

  • Quote

Post by Hasw » Sat Mar 26, 2005 5:08 pm

Have you checked the file permissions?

Code: Select all

ls -la /sys/devices/system/cpu/cpu0/cpufreq/
total 0
drwxr-xr-x  2 root root    0 Mar 26 14:56 .
drwxr-xr-x  3 root root    0 Mar 26 15:31 ..
-r--r--r--  1 root root 4096 Mar 26 18:06 affected_cpus
-r--------  1 root root 4096 Mar 26 18:06 cpuinfo_cur_freq
-r--r--r--  1 root root 4096 Mar 26 18:06 cpuinfo_max_freq
-r--r--r--  1 root root 4096 Mar 26 18:06 cpuinfo_min_freq
-r--r--r--  1 root root 4096 Mar 26 18:06 scaling_available_governors
-r--r--r--  1 root root 4096 Mar 26 14:34 scaling_cur_freq
-r--r--r--  1 root root 4096 Mar 26 18:06 scaling_driver
-rw-r--r--  1 root root 4096 Mar 26 18:06 scaling_governor
-rw-r--r--  1 root root 4096 Mar 26 18:06 scaling_max_freq
-rw-r--r--  1 root root 4096 Mar 26 18:06 scaling_min_freq
-rw-r--r--  1 root root    0 Mar 26 14:56 scaling_setspeed
And whats the output of the kernel log (dmesg | grep cpufreq)? Is the frequency and multiplier correctly detected?
Top
michael3
n00b
n00b
Posts: 34
Joined: Tue Aug 17, 2004 6:05 pm

  • Quote

Post by michael3 » Sat Mar 26, 2005 7:41 pm

Hello

I don't have the File
"-rw-r--r-- 1 root root 0 Mar 26 14:56 scaling_setspeed".
The File is missing.The other file permissions are correct. I have only 10 Files and you have got 11 Files.
bash-2.05b# lsmod
Module Size Used by
w83781d 33128 0
atxp1 7056 0
i2c_algo_pcf 5892 0
i2c_algo_bit 8328 0
i2c_isa 1792 0
i2c_dev 7680 0
cpufreq_nforce2 4816 0
asb100 21844 0
i2c_sensor 2944 3 w83781d,atxp1,asb100
i2c_nforce2 5376 0
i2c_core 18128 9 w83781d,atxp1,i2c_algo_pcf,i2c_algo_bit,i2c_isa,i2c_dev,asb100,i2c_sensor,i2c_nforce2
bash-2.05b# dmesg | grep cpufreq
cpufreq: Detected nForce2 chipset revision C1
cpufreq: FSB changing is maybe unstable and can lead to crashes and data loss.
cpufreq: FSB currently at 167 MHz, FID 12.5
i2c /dev entries driver
atxp1 1-0037: Using VRM: 9.0
atxp1 1-0037: Setting VCore to 1825 mV (0x01)
Yes, the frequenz and the multiplier are correct detected
I have also compiled in the patch in an 2.6.11.5 nitro2 Kernel.

bash-2.05b# cat scaling_available_governors
performance

Thanks!
Top
bgradid
Apprentice
Apprentice
Posts: 162
Joined: Mon Mar 21, 2005 12:34 am

  • Quote

Post by bgradid » Sun Mar 27, 2005 9:27 am

Hasw wrote:What are scaling_max_freq and scaling_min_freq saying? If you not have overclocked your CPU you will not get more than 1470 MHz, because this is the frequency of a 1700+.
I've also tried ranges from 90000 (my minimum reported) and the 1470 , nothing happened.
Top
Hasw
n00b
n00b
Posts: 68
Joined: Fri Dec 31, 2004 12:25 am
Location: Germany
Contact:
Contact Hasw
Website

  • Quote

Post by Hasw » Sun Mar 27, 2005 4:53 pm

michael3 wrote:Hello

I don't have the File
"-rw-r--r-- 1 root root 0 Mar 26 14:56 scaling_setspeed".
The File is missing.The other file permissions are correct. I have only 10 Files and you have got 11 Files.
...
bash-2.05b# cat scaling_available_governors
performance
Thanks!
You need the userspace governor, then you will get scaling_setspeed.

Kernel config:

Code: Select all

CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=m
CONFIG_CPU_FREQ_GOV_POWERSAVE=m
CONFIG_CPU_FREQ_GOV_USERSPACE=y
Top
Hasw
n00b
n00b
Posts: 68
Joined: Fri Dec 31, 2004 12:25 am
Location: Germany
Contact:
Contact Hasw
Website

  • Quote

Post by Hasw » Sun Mar 27, 2005 4:58 pm

bgradid wrote: I've also tried ranges from 90000 (my minimum reported) and the 1470 , nothing happened.
Are you sure it's 90000, not 900000? 90000 would be 90 MHz CPU speed. Also 1470 should be 1470000.
The cpufreq-interface needs the values in kHz.

Try 1200000 and 1300000, or cat scaling_min_freq > scaling_setspeed and check then /proc/cpuinfo.
Top
bgradid
Apprentice
Apprentice
Posts: 162
Joined: Mon Mar 21, 2005 12:34 am

  • Quote

Post by bgradid » Sun Mar 27, 2005 10:50 pm

no luck so far :( I tried overclocking it in the bios a bit to see if it needed to be 'nudged'

Code: Select all

bash-2.05b# cd /sys/devices/system/cpu/cpu0/cpufreq/ 
bash-2.05b# cat scaling_max_freq 
1586500
bash-2.05b# cat scaling_min_freq
1111500
bash-2.05b#  echo userspace > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor 
bash-2.05b# echo 1200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed          
bash-2.05b# cat /proc/cpuinfo | grep MHz
cpu MHz         : 1586.945
bash-2.05b# cat scaling_min_freq > scaling_setspeed
bash-2.05b# cat /proc/cpuinfo | grep MHz
cpu MHz         : 1586.945
Top
Hasw
n00b
n00b
Posts: 68
Joined: Fri Dec 31, 2004 12:25 am
Location: Germany
Contact:
Contact Hasw
Website

  • Quote

Post by Hasw » Mon Mar 28, 2005 12:17 am

Can you please run

Code: Select all

dmesg | grep cpufreq; egrep 'CPU_?FREQ' /usr/src/linux/.config
and post the output?
Top
Post Reply

148 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • Next

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic