maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Kernel-power default value glitch (https://talk.maemo.org/showthread.php?t=85785)

the_envy 2012-07-30 21:56

Kernel-power default value glitch
 
Recently I noted that my n900 started to drain battery a bit faster than usual. I`ve checked the kernel-config and saw:

min. freq: 500
max. freq: 805
avoid freq: 125, 250

which is kinda strange as my default config is lv (250-600Mhz).

So I changed it to lv and it was fine, but after like 5 mins it changed back to 500-805.

I`m 100% sure my default is 250-600 and I even created a line in startup-script but still no luck (it works for a few first minutes but then switches back)

Any help or advices would be appreciated. Thank you!

sixwheeledbeast 2012-07-30 22:54

Re: Kernel-power default value glitch
 
Which version of KP and KPS?
You shouldn't need custom voltages any more.
Install KP50> without KPS and you will have 250-600 SR 1 & 2.
SR will sort all the voltages out for you.

You have probably got a profile saved somewhere that is loading via your start script.
I am pretty sure you don't need a startup script anymore either.
Save a profile then load it with the "kernel-config load myprofile"

whats your
Code:

sudo kernel-config show default
show?

Sourav.dubey 2012-07-31 03:07

Re: Kernel-power default value glitch
 
Most probably you have battery patch installed on your system

the_envy 2012-07-31 20:46

Re: Kernel-power default value glitch
 
Quote:

Originally Posted by Sourav.dubey (Post 1245219)
Most probably you have battery patch installed on your system

Actually that almost solved the issue, I just had to uninstall speed patch as well because I was finding some config changes after some time.


Thanks a lot! The device seems to work fine now, but I think that after uninstalling it got a bit irresponsive when receiving a call (not sure though).

Also, when I receive or make a call, the min. freq. changes to 125, however below it states: avoid freq: 125.... seems strange to me

enne30 2012-08-01 09:58

Re: Kernel-power default value glitch
 
Quote:

Originally Posted by sixwheeledbeast (Post 1245163)
Which version of KP and KPS?
You shouldn't need custom voltages any more.
Install KP50> without KPS and you will have 250-600 SR 1 & 2.
SR will sort all the voltages out for you.

You have probably got a profile saved somewhere that is loading via your start script.
I am pretty sure you don't need a startup script anymore either.
Save a profile then load it with the "kernel-config load myprofile"

whats your
Code:

sudo kernel-config show default
show?

Could you explain that a litte more? I took a look to the new version, anyway still have some doubt. :o

I got KP50 + KPS + ideal profile (500-850) to undervolt + overclock,

Do I not need this anymore? Or can I simply activate SR in ideal profile in order to use smartreflex keeping my current profile?

thanks in advance :)

sixwheeledbeast 2012-08-01 17:41

Re: Kernel-power default value glitch
 
Quote:

Originally Posted by enne30 (Post 1245877)
Could you explain that a litte more?
Do I not need this any more? Or can I simply activate SR in ideal profile in order to use smartreflex keeping my current profile?

This is something that is commonly misunderstood.

Voltage profiles like Ideal/LV/XLV/Starving etc etc...
Are now obsolete (legacy).
They are only required if overclocking above 900Mhz.

SR and these profiles should not be used together.

Smartreflex thanks to the work here is now stable and automatically selects the perfect voltages for your device.
That's smartreflex's job, to control the voltages.

Quote:

SmartReflex

Before kernel-power v50, one would normally set voltages per frequency in a configuration file, which required manual testing to determine the lowest voltages possible for a specific frequency. This may result in reboots if the voltage was not set high enough to account for the CPU's power usage at full loads, or power wastage if the voltages were set higher than what is needed for light loads at a certain frequency. SmartReflex is a technology which automatically regulates the voltage used for the entire SoC, automatically adapting to lower voltages during light use and increase them during heavy use.
So I would recommend setting up a fresh profile (and ensure you have put your voltages back to stock) with Min 250 Max 805 (if that's what you require) and avoid 125. Make sure SR VDD1 and 2 are on and enjoy.

enne30 2012-08-02 16:39

Re: Kernel-power default value glitch
 
well, this is what should I do, right?
Code:

/usr/share/kernel-power-settings # kernel-config load default
loading ./default
successfully loaded.
/usr/share/kernel-power-settings # kernel-config show
current kernel configuration:
current frequency: 600
supported frequencies: 125 250 500 550 600 720 805 850 900 950 1000 1100 1150
min. frequency: 250
max. frequency: 600
avoid frequencies: 125
active frequencies: 250:28,180 500:48,360 550:47,400 600:42,430 720:60,430 805:60,430 850:60,500 900:60,500 950:60,500 1000:60,500 1100:72,520 1150:72,520
SmartReflex VDD1=1, VDD2=1
governor ondemand: ignore nice load= 0, up threshold= 95, sampling rate= 300000, powersave bias= 0
/usr/share/kernel-power-settings #

Now can I overclock and modify avoid frequencies by editing default profile values? (to get 500-850)

Why can't I do that on ideal profile?

Sorry for the many questions, but I'd like to understand the thing :confused:

edit: I forgot to mention, I got speed patch (latest), NOT battery patch... any problems? (e.g. with KP51)

sixwheeledbeast 2012-08-02 17:15

Re: Kernel-power default value glitch
 
Code:

kernel-config limits 500 850

kernel-config save myprofile

kernel-config load myprofile

kernel-config default myprofile

I recommend you try for a number of reasons "250 805" but that's up to you.

I can't explain it any better than my previous post or the wikis so I suggest you have another read.

enne30 2012-08-02 17:39

Re: Kernel-power default value glitch
 
Quote:

Originally Posted by sixwheeledbeast (Post 1246548)
Code:

kernel-config limits 500 850

kernel-config save myprofile

kernel-config load myprofile

kernel-config default myprofile

I recommend you try for a number of reasons "250 805" but that's up to you.

I can't explain it any better than my previous post or the wikis so I suggest you have another read.

well I've used ideal profile for many months with no problems at all, so I'd like to stay with something like that; using 500 as min frequency should result in more responsiveness, plus should be more conservative in the respect of voltage, comparing to default 250... but using smartreflex I cannot get it..

I mean, I keep kernel-config and configuration file stuff, so I cannot understand why only configuration files for other profiles than default are legacy :confused:

sorry for my stubbornness :p

freemangordon 2012-08-02 17:47

Re: Kernel-power default value glitch
 
Quote:

Originally Posted by enne30 (Post 1246552)
well I've used ideal profile for many months with no problems at all, so I'd like to stay with something like that; using 500 as min frequency should result in more responsiveness, plus should be more conservative in the respect of voltage, comparing to default 250... but using smartreflex I cannot get it..

I mean, I keep kernel-config and configuration file stuff, so I cannot understand why only configuration files for other profiles than default are legacy :confused:

sorry for my stubbornness :p

Because voltages that all profiles but default and dsp set up when loaded are already lower than defaults and that could mess up with the way SmartReflex works. And setting min frequency to 500 will not give you any visible "better responsiveness" as it is not CPU that slows down n900, but the lack of RAM. It will only hurt your battery life when listening to a music for example.


All times are GMT. The time now is 23:03.

vBulletin® Version 3.8.8