maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Overclock the N900? (https://talk.maemo.org/showthread.php?t=39753)

firstknight 2010-04-07 16:45

Re: Overclock the N900?
 
Quote:

Originally Posted by psrkn (Post 599608)
From a couple posts up, there is a post from Titan and said that another observation: The dmse daemon seems to overwrite the max. freq. in the kernel with the value
from /etc/pmconfig every hour or so.

does that mean tat if i dun change on the pmconfig i will face the change back to 600 at any given time my phone check pmconfig?

anyway to work around?

mikhmv 2010-04-07 16:49

Re: Overclock the N900?
 
I run >24h at 1000Hz. It is great.

For safe testing with /etc/pmconfig
I did following:
1. cp /etc/pmconfig /etc/pmconfig.bak
2. echo "cp -r /etc/pmconfig.bak /etc/pmconfig" >> /bootmenu.sh
3. edit /etc/pmconfig
4. reboot with closed keyboard. If device will not boot reboot with open keyboard....

rebooting with open keyboard will restore /etc/pmconfig from /etc/pmconfig.bak

UNderworld 2010-04-07 16:57

Re: Overclock the N900?
 
12 hours idle... 3g, no internet, 1 call (didnt answer)
10% battery, 50% to 40%...

currently on 900/500dsp ..

if i do
echo 930000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

would it work if I increase it in 20mhz? or 10??
for e.g 930000 then 950000 then 960000 up to 1ghz...??

I know its up to my phone, but is the command right?

When I restart my phone, will it come back to 900mhz? (currently 900/500 lehto's one)??? thanks

PhonoN900 2010-04-07 17:00

Re: Overclock the N900?
 
Quote:

Originally Posted by firstknight (Post 599616)
does that mean tat if i dun change on the pmconfig i will face the change back to 600 at any given time my phone check pmconfig?

anyway to work around?

I've found a fairly simple workaround...

Install Desktop Command Execution Widget, create a command with the propper parameters (see pg 148 of this thread), and set the update interval to 30 minutes.

I just did this, and will keep an eye on my clock speed to see if that will circumvent the issue (it should, in theory). The other nice thing this widget does is run the command on startup...

Just food for thought.

Cheers,
Phono

rizbert 2010-04-07 17:03

Re: Overclock the N900?
 
Been trying to finish reading this thread before posting...only been a few days!
Overclocked using the fiasco image of lehto's 800 image..gone well so far, lovely smooth & quick reponse although I have had the warnings come up from dmesg. Plus my phone info is still intact...Won't go any higher on overclock...just see how this goes.

titan 2010-04-07 17:05

Re: Overclock the N900?
 
Quote:

Originally Posted by Matan (Post 599371)
You can try using my patch - http://my.arava.co.il/~matan/770/n900/freqs.diff
It reduces the voltage for the frequencies 550 and 600 to OPP3 level (the one used for 500 in Nokia's kernel, and uses OPP4 level for 720-1000 (the same level as originally used for 550). Highest level (OPP5) which is used for 600 in Nokia's kernel, is not used at all in my patch. Of course, the result will be lower maximum frequency in some CPUs, but my is stable at 1000MHz even at this lower voltage.

EDIT: this post is obsolete. go to http://wiki.maemo.org/Kernel_Power

I have uploaded experimental undervoltage kernels based on your suggestion
http://maemory.com/N900/overclock/undervolt/
but it's not stable on my device. Be prepared to reflash!
Code:

wget http://maemory.com/N900/overclock/undervolt/kernel-maemo_2.6.28-maemo20_armel.deb
wget http://maemory.com/N900/overclock/undervolt/kernel-modules-maemo_2.6.28-maemo20_armel.deb
wget http://maemory.com/N900/overclock/undervolt/kernel-flasher-maemo_2.6.28-maemo20_armel.deb
dpkg -i kernel-m*
dpkg -i kernel-f*
halt


UNderworld 2010-04-07 17:12

Re: Overclock the N900?
 
there DEFINITELY IS a damn noticeable improvement from 900 to 1ghz.....

Matan 2010-04-07 17:29

Re: Overclock the N900?
 
Quote:

Originally Posted by titan (Post 599655)
I have uploaded experimental undervoltage kernels based on your suggestion
http://maemory.com/N900/overclock/undervolt/
but it's not stable on my device. Be prepared to reflash!

Even at 600Mhz is it unstable? On the Pandora, the default is 600MHz at OPP3, and they don't report any issues (they do have very few devices, though).

AsiQue 2010-04-07 17:38

Re: Overclock the N900?
 
guys
i use titans maemo19 kernel and in pmconfig i have maxfreq=800000
when i start my nokia everything is ok and cpufreq/scalingmax shows 800000
but after some time (i suspect that charging is involved) the max freq is reset back to 600000

has anyone encautered that??

tnx
asique

titan 2010-04-07 17:40

Re: Overclock the N900?
 
Quote:

Originally Posted by Matan (Post 599687)
Even at 600Mhz is it unstable? On the Pandora, the default is 600MHz at OPP3, and they don't report any issues (they do have very few devices, though).

yes, with 125-600MHz it crashed after a few minutes with a garbled screen.

dimkit 2010-04-07 17:51

Re: Overclock the N900?
 
Quote:

Originally Posted by AsiQue (Post 599704)
guys
i use titans maemo19 kernel and in pmconfig i have maxfreq=800000
when i start my nokia everything is ok and cpufreq/scalingmax shows 800000
but after some time (i suspect that charging is involved) the max freq is reset back to 600000

has anyone encautered that??

tnx
asique


i face the same problem too.

egoshin 2010-04-07 18:07

Re: Overclock the N900?
 
Quote:

Originally Posted by ticktock666 (Post 598932)
I thought it had something to do with the lowered min speed limit from 250 to 125.

I'm thinking of flashing back to the stock kernel, then either use Titan's kernel and the trick to make changes stick and not disappear after a reboot, this will get me the 250 lower limit and a boost on the upper clock speed.

Edit : I've flashed back to stock kernel then installed Titan's version (big thanks to him) and set the Min/Max scale limits to 250 / 750 (by editing the /etc/pmconfig file) instead of 800, now the "dmesg | grep WARNING" command doesn't return anything and things are running smoothly enough, the "about" page is fine and will be testing with the Audio books later on to see if I'm over the stuttering problem.

if someone from the gurus can confirm and explain the messages returned by the "dmesg | grep WARNING" to just simply be warnings and not a sign of something much worse, I think I'll up the speed to 800 back again, but until then 750 is good enough for this trooper, like they say "just because you can doesn't always mean you should"

Try post http://talk.maemo.org/showpost.php?p...postcount=1484
It accelerates CPU frequency switching and may help.

madmaze 2010-04-07 18:08

Re: Overclock the N900?
 
So ive been successfully running at 900mhz/125mhz since yesterday afternoon.

I really wanted to get a temp widget working before i tried it.
I tried the Desktop CMD widget, but i always get "-40" for my temp
no matter what the load is or how warm its running.

my cmd is
Code:

cat /sys/devices/platform/omap34xx_temp/temp1_input
has anyone else experienced this?

miwalter 2010-04-07 18:09

Re: Overclock the N900?
 
Quote:

Originally Posted by dimkit (Post 599726)
i face the same problem too.

Same here after loading.

new_bee 2010-04-07 18:14

Re: Overclock the N900?
 
I am using the same kernel with 900/125. and desktop widget. i do get -40 after a reboot but it updates after some time.

madmaze 2010-04-07 18:15

Re: Overclock the N900?
 
Quote:

Originally Posted by new_bee (Post 599762)
I am using the same kernel with 900/125. and desktop widget. i do get -40 after a reboot but it updates after some time.

hmm mine has been giving -40 since last night =/

titan 2010-04-07 18:16

Re: Overclock the N900?
 
Quote:

Originally Posted by dimkit (Post 599726)
i face the same problem too.

I cannot reproduce your problem with the maemo19 kernel (250-700MHz).
charging, usb cable, display lock etc - nothing changes the upper limit if its specified in pmconfig. I see no warnings in dmesg.
mikhmv also seems to have no problems over >24h.

are you using the 125Mhz kernel? which firmware version?
what steps are necessary to reproduce the problem?
I think the 125Mhz level only leads to problems...

egoshin 2010-04-07 18:17

Re: Overclock the N900?
 
Quote:

Originally Posted by tissot (Post 598933)
There's a reason why Droid is running at 550mhz and N900 at 600mhz.

The reason is simple - battery.

Stability is too but it is not for underclocking like Droid.

Frying has nothing with it - CPU was designed by ARM and basing on common technology licensing practice I guess TI didn't change anything in it's design because ARM did all work - thermal, radio emmision, delay propogation etc. So, TI got ARM design which can run on max freq from 600MHz to 1GHz.

However, the TI production line quality limits an effective max frequency and for stable run use 600MHz. But your mileage varies...

(usual disclaimer: anything here is for education purpose only and is not intended to convince you for overclocking or doing something bad).

UNderworld 2010-04-07 18:22

Re: Overclock the N900?
 
Hi, I have been using 900/500dsp since a few days, and I just installed the kernel from app manager.... then did 1000000 echo etc command ...

it seems to idle at 250 now ?? no more 125....
id the dsp still 500 or has it changed back to normal??

miwalter 2010-04-07 18:24

Re: Overclock the N900?
 
Quote:

Originally Posted by titan (Post 599768)
I cannot reproduce your problem with the maemo19 kernel (250-700MHz).
charging, usb cable, display lock etc - nothing changes the upper limit if its specified in pmconfig. I see no warnings in dmesg.
mikhmv also seems to have no problems over >24h.

are you using the 125Mhz kernel? which firmware version?
what steps are necessary to reproduce the problem?
I think the 125Mhz level only leads to problems...

I did not use the 125mhz-kernel. max-freq set at 900, min-freq at 250. Phones has been loaded a couple of times using the normal charger (no usb-connection made!). Used the phone to make a call and had a terminal-session open to my server upstairs... nothing special I think...
Removed the m19-kernel since.

titan 2010-04-07 18:40

Re: Overclock the N900?
 
Quote:

Originally Posted by miwalter (Post 599786)
Used the phone to make a call

found it! phone calls reset it to 600Mhz.
I have no idea why the telephone app does that.
I'll check whether replacing 600 with 601MHz will ignore such requests.
(a frequency that does not exist in scaling_available_frequencies should be ignored)

egoshin 2010-04-07 18:42

Re: Overclock the N900?
 
Quote:

Originally Posted by deadmalc (Post 599181)
From what I understand the problem with overclocking is the extra voltage fries the cpu

No extra voltage. N900 runs at MAX voltage at stock 600MHz and I don't know the way to increase it more.

NokiaRocks 2010-04-07 18:45

Re: Overclock the N900?
 
Ive been using the 125-900 kernel and had NO issues with it.
It has always been using 125 Mhz when idling and 500-900 when used.
Tried Titan's kernel now and the battery life seems to be a good piece shorter with 250-900 IMHO.

egoshin 2010-04-07 18:48

Re: Overclock the N900?
 
Quote:

Originally Posted by deadmalc (Post 599181)
Would it be possible to write an app to force a scale down if the cpu was overclocked for more than X cycles?
e.g. if it was stuck at say 800MHz for more than 0.5 sec then force the max to 600Mhz, once it calms down again put the max back to 800MHz.

If start discussing kernel changes then I think it has a BIG sense to stop any overclocking if screen is locked. Moreover, it may have sense to restrict frequency and voltage even more - it would save much more battery.

Of course, if pulseaudio is active it should return back to 600MHz.

UNderworld 2010-04-07 18:49

Re: Overclock the N900?
 
Quote:

Originally Posted by titan (Post 599813)
found it! Phone calls reset it to 600mhz.

yyyyeeeeeessssssssssssss

jcompagner 2010-04-07 18:50

Re: Overclock the N900?
 
i have use the 125-800 kernel and what i suddenly see is that syslogd logs enormous amount of data.
I really have to stop the daemon now because else it fills up flash in no time.

egoshin 2010-04-07 18:54

Re: Overclock the N900?
 
Quote:

Originally Posted by michalurban (Post 599281)
Interesting thing - when I use that kernel, which is able to scale from 125-1200 (from Titan, I think, scaling up to 900) and is capable of getting info from scaling_min a scaling_max files ... the power consumtion is much higher then in the case of the original 125-900 kernel. When I charge my nokia in the evening, enable ICQ and go to sleep, in case of 125-1200 (scaling up to 900) the line in BatteryGraph is much steeper than in the second case ...

See my post http://talk.maemo.org/showpost.php?p...postcount=1406 for explanations.

egoshin 2010-04-07 18:58

Re: Overclock the N900?
 
Quote:

Originally Posted by biggzy (Post 599314)
can a CPU guru answer me a question plz? what i want to know is what stresses a CPU more, running at max frequency or maxing the usage of the CPU to 100%?

Both - depends from chip design.

egoshin 2010-04-07 19:01

Re: Overclock the N900?
 
Quote:

Originally Posted by Flandry (Post 599322)
Those are obviously connected issues. You overlooked voltage, which is the real cause of the damage. The way the CPU works, it jumps to a higher voltage to make sure that the highest CPU setting is stable, and the setting for the highest voltage on the N900 is already "overclocked" in the sense that it is known to reduce operating life.

Flandry, this N900 works on highest CPU voltage with 600MHz anyway. There is no way to increase it even more for higher frequencies (at least I don't know).

egoshin 2010-04-07 19:02

Re: Overclock the N900?
 
Quote:

Originally Posted by mrp (Post 599325)
a loot of pages to read for this information, so I'm asking here now. Where can I get fiasco-flasher? Not found in my N900

http://talk.maemo.org/showpost.php?p...postcount=1142

prana 2010-04-07 19:04

Re: Overclock the N900?
 
Quote:

Originally Posted by jcompagner (Post 599831)
i have use the 125-800 kernel and what i suddenly see is that syslogd logs enormous amount of data.
I really have to stop the daemon now because else it fills up flash in no time.

Where is the log file located? I want to see those messages. I am using the same OC kernel.

egoshin 2010-04-07 19:08

Re: Overclock the N900?
 
Quote:

Originally Posted by Rushmore (Post 599592)
Something seems to not make sense with Conky. Anyone notice that regardless of the clock speed, the percent of cpu usage stays fairly "constant"?

Example playing a 160KB MP3 with built-in media player:

Clock fluctuates from 125mhz on up to 800mhz, but the cpu usage percent ranges from 50% to 53%. I would expect both values (clock and usage) to be relative and not such a wide margin of fluctuation with the clock and usage. If one is constant, the other should be. I could see if there is lag for one value to the next, but that should be an issue of displacement of values, rather than one staying always "constant" (the usage).

BTW, most of the time, cpu is at 125mhz, but does fluctuate for several seconds up from 500 to 800, but usage does not deviate from 50% to 53% range.

There is an Issue - Real Time. It is a reason why ondemand scaling governor pushes CPU to higher frequency and prefers to have some idling on that frequency.

Sorry, it is a long story - why it is needed.

mrp 2010-04-07 19:09

Re: Overclock the N900?
 
thank you egoshin. not easy always to find things using merely n900 browser

titan 2010-04-07 19:11

Re: Overclock the N900?
 
@Matan and Lehto:
are you sure you're overclocking the DSP?
did also modify the tables in drivers/dsp/bridge/rmgr/drv_interface.c ?

egoshin 2010-04-07 19:18

Re: Overclock the N900?
 
Quote:

Originally Posted by titan (Post 599707)
yes, with 125-600MHz it crashed after a few minutes with a garbled screen.

It seems Nokia bought a little less reliable bunch of 3430 from TI - there was a couple of devices with hardware problems last Dec and I can account it to CPU unstability.

Just take into consideration that 3430 is sold by TI only in big quantities - that actually means the different approach for troubled chips and different reliability requirements for different bunches.

egoshin 2010-04-07 19:20

Re: Overclock the N900?
 
Hey guys - coming PR1.2 has a new kernel - http://talk.maemo.org/showpost.php?p=599660&postcount=2

"Updated packages
...
+kernel 2.6.28-20100903+0m5"

Be prepared to lose overclocking for short time.

egoshin 2010-04-07 19:23

Re: Overclock the N900?
 
Quote:

Originally Posted by UNderworld (Post 599781)
Hi, I have been using 900/500dsp since a few days, and I just installed the kernel from app manager.... then did 1000000 echo etc command ...

it seems to idle at 250 now ?? no more 125....
id the dsp still 500 or has it changed back to normal??

DSP also has a couple of frequencies and 500 is a new MAX.

prana 2010-04-07 19:23

Re: Overclock the N900?
 
Quote:

Originally Posted by egoshin (Post 599872)
Hey guys - coming PR1.2 has a new kernel - http://talk.maemo.org/showpost.php?p=599660&postcount=2

"Updated packages
...
+kernel 2.6.28-20100903+0m5"

Be prepared to lose overclocking for short time.

I think I will survive... :o

nightfire 2010-04-07 19:39

Re: Overclock the N900?
 
Quote:

Originally Posted by titan (Post 599813)
found it! phone calls reset it to 600Mhz.
I have no idea why the telephone app does that.
I'll check whether replacing 600 with 601MHz will ignore such requests.
(a frequency that does not exist in scaling_available_frequencies should be ignored)

Hey titan,

Where'd you find that? I grepped for scaling_max_freq and didn't find anything in suspicious in /etc, /usr, /bin or /sbin except

/usr/share/policy/rules/rx51/policy.dresc

I don't think that's it though.

Everything else looks like just the bootup stuff.

nightfire 2010-04-07 19:40

Re: Overclock the N900?
 
Quote:

Originally Posted by egoshin (Post 599872)
Hey guys - coming PR1.2 has a new kernel - http://talk.maemo.org/showpost.php?p=599660&postcount=2

"Updated packages
...
+kernel 2.6.28-20100903+0m5"

Be prepared to lose overclocking for short time.

I suspect titan's kernel will work fine; I believe it's based on the PR1.2 source tree.


All times are GMT. The time now is 04:25.

vBulletin® Version 3.8.8