Poll: Do you think its possible to overclock the N900?!
Poll Options
Do you think its possible to overclock the N900?!

Reply
Thread Tools
Posts: 1,729 | Thanked: 388 times | Joined on Jan 2010 @ Canada
#3611
Originally Posted by titan View Post
I don't understand what you mean with "save this folder"?
you mean /usr/share/kernel-power-settings?
don't delete nor change i!. it's part of the package and gets overwritten with every update.
all users configurations go to /home/user/.kernel or /etc/default/kernel-power (if default).

to save the current settings in /home/user/.kernel you run
sudo kernel-config save myconfig
for the maemo25, i used to move the "kernel-power-settings" directory to MyDocs.

and yes, iths the /usr/share/kernel-power-settings.

thanks for the update. now this settings are more customizable.
__________________
if i did help you, just click "Thanks" on the lower right of my post. thanks!

"The best way to break a Spell is to prevent it from being cast in the first place"

N900: 1000/1150mhz; sampling_rate 15; up_threshold 150000;
 
Posts: 117 | Thanked: 23 times | Joined on Aug 2008 @ Hardenberg
#3612
Originally Posted by titan View Post
ok, let me give you a mini-tutorial (the scripts are so powerful that a full description woiuld take a lot of time to write):

in theory, if you install the new version the old settings should still work and be loaded during boot.
(kernel-config = sudo /usr/sbin/kernel-config, here abbreviated)


Code:
 kernel-config show
shows you the current configuration of the kernel.

If you have loaded an old config, or changed the current settings manually or using ClockfreqUI you can save the current settings with
Code:
kernel-config save myconfig
this will automatically save it in /home/user/.kernel/myconfig
and create the directory if necessary (replace myconfig with any name you like).
To save it somewhere else (why would you?) use the absolute path.

Code:
 kernel-config load myconfig
loads the configuration. if the filename is not absolute (e.g. "./myconfig") it searches
for the file in the current dir, /home/user/.kernel and /usr/share/kernel-power-settings/
Without a file name it loads /etc/default/kernel-power, or /usr/share/kernel-power-settings/default
Do NOT modify the files in /usr/share/kernel-power-settings. They are templates.
The template names are: default, lv, ulv, xlv, ideal.

Code:
 kernel-config default myconfig
copies the configuration file to /etc/default/kernel-power (or symlinks if it is a template file from /usr/share/kernel-power-settings). If you do not specify a filename, the current settings are saved in /etc/default/kernel-power.
These settings are then loaded during boot.

Code:
 kernel-config limits 250 600
sets the limits to [min,max].
If you use "-" for a frequency, the current value is used. For example, "kernel-config limits - 850" only changes the upper limit to 850Mhz.

Code:
kernel-config lock freq volt dsp
(e.g. 500 48 400)
can be used to test voltage and dsp settings with a certain frequency.
it overwrites the current settings for that frequency and locks the CPU
to only that frequency until you run "kernel-config unlock" to unlock it.

The boot sequence:
the kernel settings are only loaded if you had a normal reboot or shutdown
but not after a crash. In that case the file /etc/kernel-power/.notloaded is created
and a GUI app could notify you and ask whether to load the settings again.
The settings will be loaded at the next boot again unless it crashes again.

you can edit the files in /home/user/.kernel/.
here is the content of the default template:
Code:
# minimum frequency to use
MINFREQ=250
# maximum frequency to use
MAXFREQ=600
# list of frequency configurations: each "frequency:volt,dsprate"
FREQS="0:30,90 125:30,90 250:38,180 500:48,360 550:54,400 600:60,430 700:60,430 750:60,430 805:60,430 850:60,500 900:60,500 950:60,500 1000:60,500 1100:72,520 1150:72,520"
UP_THRESHOLD=95
SAMPLING_RATE=300000
SMARTREFLEX_VDD1=0
SMARTREFLEX_VDD2=0
IGNORE_NICE_LOAD=0
there is a separate file /etc/defaul/kernel-boot for boot options.
these two options are highly experimental and may brick your device!
Code:
# start USB networking and sshd early during boot
EARLY_SSH=0
# fsck of /home partition before mounting?
# 1=if necessary, force=always check
FSCK_HOME=0
operations before mounting /home:
if you have a script (e.g. for repartitiong) called /etc/kernel-power/pre-mount.once
it will be executed once and then moved away.
with FSCK_HOME enabled the /home partition (first ext3 on eMMC) will be fsck on boot.
alternatively
Code:
echo 1 > /etc/kernel-power/force_fsck
should check it only during next boot.
Code:
echo 0 > /etc/kernel-power/force_fsck
disables it only for the next boot.
if you reset or reboot the device during fsck, it will not fsck (only) during the next boot.
all messages are logged to /etc/kernel-power/pre-mount.log
If you know how one could show a fancy LED animation from the shell during fsck contact me.
Noob question, sorry.
I installed kernel maemo24 correctly and rebooted. uname -r states the new kernel.. I then downloaded the settings app (I think). I put in sudo /usr/sbin/kernel-config limits 500 850 in xterm. But it does not seem to help. Conky stkill shows 250 and 600. There is no respons to sudo usr/sbin/kernel-config show in Xterm after sudo gainroot. Can you help me out? Thanks!!!

Last edited by ggroen; 2010-05-13 at 08:57.
 
Posts: 946 | Thanked: 1,650 times | Joined on Oct 2009 @ Germany
#3613
those instructions refer to the more recent version from extras-testing
(see http://wiki.maemo.org/Kernel_Power).
PS: no full quotes please

Originally Posted by ggroen View Post
Noob question, sorry.
I installed kernel maemo24 correctly and rebooted. uname -r states the new kernel.. I then downloaded the settings app (I think). I put in sudo /usr/sbin/kernel-config limits 500 850 in xterm. But it does not seem to help. Conky stkill shows 250 and 600. There is no respons to sudo usr/sbin/kernel-config show in Xterm after sudo gainroot. Can you help me out? Thanks!!!
 

The Following User Says Thank You to titan For This Useful Post:
Posts: 31 | Thanked: 5 times | Joined on May 2010
#3614
Hi,

I used titan's xlv kernel and running at 500mhz min and 950mhz max!
running for 2 days! no errors, freeze or hang up so far!
is it safe to continue running at the above mentioned speeds?

what are the best speeds for ideal kernel?
can I run the same speeds with ideal kernel?

but definitely I can say there is a difference in battery performance between ideal and xlv kernels!

i tried the ulv kernel with the same speeds, but it stays on the min speed for most times unless i open up, say 3-4 web pages and some media files and some REALLY cpu intensive apps! unless it stays on the minimum freq!
above 40% of cpu only initiate the max freq, otherwise its running on the min freq

btw i use maemo24 kernel!

Thanks titan for your work...

Last edited by diimaan; 2010-05-13 at 12:43.
 
Posts: 44 | Thanked: 5 times | Joined on Apr 2010
#3615
@Titan

I have less power drain now, when i us powersave_bias 20... full battery(98%) and in 10hour i have lost 7%. No wifi,3G and i us ulv 250 - 850mhz and ignor nice load 1 + up threshold 95 + sampling rate 3000
 
matts76's Avatar
Posts: 324 | Thanked: 201 times | Joined on Apr 2010 @ UK
#3616
Originally Posted by diimaan View Post
Hi,

I used titan's xlv kernel and running at 500mhz min and 950mhz max!
running for 2 days! no errors, freeze or hang up so far!
is it safe to continue running at the above mentioned speeds?

what are the best speeds for ideal kernel?
can I run the same speeds with ideal kernel?

but definitely I can say there is a difference in battery performance between ideal and xlv kernels!

i tried the ulv kernel with the same speeds, but it stays on the min speed for most times unless i open up, say 3-4 web pages and some media files and some REALLY cpu intensive apps! unless it stays on the minimum freq!
above 40% of cpu only initiate the max freq, otherwise its running on the min freq

btw i use maemo24 kernel!

Thanks titan for your work...
I've used both xlv and ideal settings with min 500mhz and max 1ghz (even1.15ghz for psx4all in short bursts of 20 mins or so) for quite some time both without any problems, out of the two i've now settled on ideal,
as for what is safe that is a matter of opinion, i think for me it is perfectly safe at these levels but there are others who think that all us OC'ers are fools.
At the end of the day its down to personal preferance.
__________________
My N900@1Ghz Rocks
I wanted a phone, but i ended up with an all encompasing obsession

 
Posts: 31 | Thanked: 5 times | Joined on May 2010
#3617
Originally Posted by matts76 View Post
I've used both xlv and ideal settings with min 500mhz and max 1ghz (even1.15ghz for psx4all in short bursts of 20 mins or so) for quite some time both without any problems, out of the two i've now settled on ideal,
as for what is safe that is a matter of opinion, i think for me it is perfectly safe at these levels but there are others who think that all us OC'ers are fools.
At the end of the day its down to personal preferance.
oh cool...
I am glad you reach that speeds...

I'll try @1ghz too and post the feedback!

and what do you think is most power consuming/saving?
ideal/ulv/xlv??
 
Gusse's Avatar
Posts: 168 | Thanked: 206 times | Joined on Apr 2010 @ Finland
#3618
@Titan
Would it be possible to add also "avoid frequency" entry to kernel-config -file or is that possible to do by removing unwanted freqs fom FREQS list? Almost everything else is configurable from file.

Last edited by Gusse; 2010-05-13 at 19:12.
 
Posts: 946 | Thanked: 1,650 times | Joined on Oct 2009 @ Germany
#3619
that's the idea behind FREQS: remove a frequency and it's avoided.
everything below MINFREQ is automatically avoided.

Originally Posted by Gusse View Post
@Titan
Would it be possible to add also "avoid frequency" entry to kernel-config -file or is that possible to do by removing unwanted freqs fom FREQS list? Almost everything else is configurable from file.
 

The Following 3 Users Say Thank You to titan For This Useful Post:
Gusse's Avatar
Posts: 168 | Thanked: 206 times | Joined on Apr 2010 @ Finland
#3620
All other parameters than sampling_rate seems to work OK in kernel-config.
I cannot degrease it from 150000, increase is possible.

I have tried to put i.e. 5000 to sampling_rate_min with root rights
echo 5000 > /sys/device/system/cpu/cpu0/cpufreq/ondemand/sampling_rate_min
but it is automatically changed back to 150000. What might be the reason?
 
Reply

Tags
cooking on gas, cortex-a8, faster, first to fry it wins!, hardware, its smoking, n900, need for speed, need for weed, nos, omap, omap3, omap3430, overclock, overclocking, soc, system-on-a-chip, the dogs, this thread got good!, vtec just kicked in y0!, warranty will be void, whooplah, zoom zoom


 
Forum Jump


All times are GMT. The time now is 06:52.