maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900 (https://talk.maemo.org/showthread.php?t=73315)

vi_ 2011-12-09 14:05

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Quote:

Originally Posted by carbonjha (Post 1134923)
@karam
I found some linux governor tweaking tips in this website. http://www.ibm.com/developerworks/li...req-3/?ca=drs-

Its a very long and detail guide with lots of comparing graphs. I couldn't read the full guide. But it concludes with tweaking the conservative governor's up & down threshold which seems to have a significant effect on battery saving.

"overclock" profile of batterypatch uses conservative governor. I wasn't using it for a while because I changed it to ondemand. But today I thought about giving it a try. Then I find that first time the conservative governor loads with its default parameters ignoring the "overclock" profile & always remains that way.
Code:

up_threshold = 80
down_threshold = 20
freq_step = 5
ignore_nice_load = 0
sampling_down_factor = 1
sampling_rate = 3000000
sampling_rate_max = 1500000000
sampling_min = 1500000

now Im testing these tweaks
Code:

echo 98 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/up_threshold

echo 95 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/down_threshold


echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/conservative/ignore_nice_load

underclock profile uses ondemand governor and it loads ok. so no need to change that. Lets hope it works well.

Christ on friday. These are the worst settings I have ever seen for a cpufreq govenor, let alone conservative.

With these idiotic settings your CPU will be switching frequency EVERY TIME IT SAMPLES unless your CPU is sitting inbetween 95 to 98% useage. If you want an erratic, power hungry lag machine then by all means use these settings.

The best governor is ondemand. Rationale? When the device does nothing you want it to be using no power i.e. cpu asleep. When the machine is doing constant light work i.e. playing mp3s you want it to be in a low frequency. When the machine is doing hard work you want it to be running fast,

You need ondemand, low=250, high=805, up threshold 93.

Low 250 so on normal wake ups and mp3 playing it will spend 85% of the time in 250, 15% at 500. This gives long battery life under light useage/idle.

Max 805, power increases with the square of the voltage used. Voltage use rises significantly from about 750 and up. 805 seems a good compromise.

I cannot be bothered ripping into conservative, take my word. It is rubbish.


If you want to save battery power you need to disable all the badly coded, cpu hungry crap you may have installed. Call notify for example is a total CPU rape potato.

freemangordon 2011-12-09 14:49

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
@vi_ : there is no use man, those guys here discover sliced bread everyday. Excluding Fridays which are reserved for discovering of hot water.

EDIT: BTW up threshold of 93 seems a little high to me, might introduce UI lag

uros 2011-12-09 14:53

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
After today`s update i was unable to change CPU clock, locked to 500 Mhz. Please help

awett 2011-12-09 17:56

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
my n900 has the same behavior since last update runs fine on startup after some minutes only 250-500 :-(

uros 2011-12-09 18:05

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Quote:

Originally Posted by awett (Post 1135530)
my n900 has the same behavior since last update runs fine on startup after some minutes only 250-500 :-(

Lucky you, at least you have alternative - 250. Here only 500 :-)

peter2p 2011-12-09 18:31

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Quote:

Originally Posted by uros (Post 1135472)
After today`s update i was unable to change CPU clock, locked to 500 Mhz. Please help

Hi Uros, just updated batterypatch and speedpatch, rebooted not twice but 3 times.
My N900 was overclocked to 900MHz and after the update my
overclock file at /usr/share/kernel-power-settings shows
MINFREQ=250
MAXFREQ=900
even
SMARTREFLEX VDD1=1 & VDD2=1
is working now.
Checked it in cpufreqUI
Frequency 900000
Smartreflex is enabled now...

ashwin 2011-12-09 18:43

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
hi karam after updating speedpatch and battery patch my N900 went into reboot loop ..pls help

uros 2011-12-09 19:26

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Quote:

Originally Posted by peter2p (Post 1135541)
Hi Uros, just updated batterypatch and speedpatch, rebooted not twice but 3 times.
My N900 was overclocked to 900MHz and after the update my
overclock file at /usr/share/kernel-power-settings shows
MINFREQ=250
MAXFREQ=900
even
SMARTREFLEX VDD1=1 & VDD2=1
is working now.
Checked it in cpufreqUI
Frequency 900000
Smartreflex is enabled now...

Hi Peter, what is procedure for updating overclock file /usr/share/kernel-power-settings

peter2p 2011-12-09 19:35

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Quote:

Originally Posted by uros (Post 1135562)
Hi Peter, what is procedure for updating overclock file /usr/share/kernel-power-settings

I have Filebox installed, in settings; root acces enabled
just went to /usr/share/kernel-power-settings
longpress on overclock and edit, when you're done just hit topbar and save or
with leafpad installed you can also change the overclock profile with
leafpad /usr/share/kernel-power-settings/overclock
in X-terminal if you want.
Good luck Uros :)

uros 2011-12-09 21:13

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Tnx Peter, leafpad worked out. Still one problem, MaxCPU widget still locked on 500, maybe problem is only widget.

/usr/share/kernel-power-settings/overclock is exactly same as your`s

peter2p 2011-12-09 21:32

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Quote:

Originally Posted by uros (Post 1135621)
Tnx Peter, leafpad worked out. Still one problem, MaxCPU widget still locked on 500, maybe problem is only widget.

I found a tread here maybe it'll help, i don't have the widget

awett 2011-12-09 22:20

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
GOVERNOR=ondemand
UP_THRESHOLD=93
DOWN_THRESHOLD=90

i made this chances
to profile overclock saved my day ;-) and fixed the bug

Zekahz 2011-12-10 09:22

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Quote:

Originally Posted by uros (Post 1135621)
Tnx Peter, leafpad worked out. Still one problem, MaxCPU widget still locked on 500, maybe problem is only widget.

/usr/share/kernel-power-settings/overclock is exactly same as your`s

I have the same problem. I don't use the widget so thats not the issue. In Conky it always shows that i'm at 500 while I edited the file to 720

peter2p 2011-12-10 09:37

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
1 Attachment(s)
Quote:

Originally Posted by Zekahz (Post 1135788)
I have the same problem. I don't use the widget so thats not the issue. In Conky it always shows that i'm at 500 while I edited the file to 720

It's the same here, conky shows 500MHz but fired up some apps like
my mediaplayer, MM10, etc .... and restart conky, you'll see it's rising
Here's a screenshot with full throttle :D

Zekahz 2011-12-10 09:46

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Quote:

Originally Posted by peter2p (Post 1135795)
It's the same here, conky shows 500MHz but fired up some apps like
my mediaplayer, MM10, etc .... and restart conky, you'll see it's rising
Groeten uit belgie

I also started up some apps, but didn't restart Conky. Now i'm back at batterypatch 2.8 and don't have the problem.

karam 2011-12-10 10:03

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
@vi_
thanks for explaining
as you said before
all part of learning processes

@freemangordon
your post doesn't help
and btw there is a use

@ALL

this is ok
the freq is locked on 500 because N900 doesn't require more
and try to start a game / record /watch videos
you will see it rises up to the needed freq

so what do you all suggest ? return to batterypatch v1.8? and create a new package batterypatch-testing ?
or leave it as it is ?

peter2p 2011-12-10 10:16

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Quote:

Originally Posted by karam (Post 1135805)
leave it as it is ?

Yeah, thx a lot karam, both patches are brilliant !
Last night my battery only decreased with 3% instead of the normal 8 to 10%

abhirajsoni 2011-12-10 10:30

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
@karam- i am happy with current version. thnx a lot :)

ravent-n900 2011-12-10 10:58

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
reboot when someone call me

karam 2011-12-10 12:50

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
ok then

i shall only change maxfreq back to 805 as for some unstable N900
(anyone can make it 900 if he has a stable N900)
and maybe will change up_thershold to 93 in cpu_sleep as vi_ recommended
just testing it right now

ravent-n900 2011-12-10 15:20

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
still reboot when ovi maps running when someone call me
another one while homescren loading (after reboot) when i lock the phone (by the right slider ) n900 reboot

sorry my english is bad

thanx karam keep the good work :)

uros 2011-12-10 16:09

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Hmm, no help at all, CPU clock here locked at 500Mhz whatever I do. Is there any way to uninstall current battery patch and downgrade to batterypatch 2.8

peter2p 2011-12-10 16:31

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Quote:

Originally Posted by uros (Post 1135919)
Hmm, no help at all, CPU clock here locked at 500Mhz whatever I do. Is there any way to uninstall current battery patch and downgrade to batterypatch 2.8

Hey Uros, did you see the post from Karam?
Perhaps wait a while, he's testing to set overclock to 805MHz again.

uros 2011-12-10 16:41

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
I see now. Okay, waiting :)

Meanwhile, charging and testing new battery here

abhirajsoni 2011-12-10 17:03

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
mine is stable at 900 mhz. i am on kp 49

magic_doc 2011-12-10 17:15

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Quote:

Originally Posted by karam (Post 1012180)
...
CURRENT VERSION : 19-7
...

Hi Karam,

shouldn't that be version 2.0 for speedpatch in the first post?

Bye Michael

algiz 2011-12-10 18:29

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
I just updated batterypatch from 2.7 to 2.9, got my first reboot loop and downgraded to 2.7 again. I think it's similar to what others have reported.

ravent-n900 2011-12-10 19:48

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
@karam i think 700 and 750 mhz are not supported
try without it

jpala16 2011-12-11 10:55

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
@All

I think I read in the power kernel thread that if you have SmartReflex activated (don't remember if vdd1, vdd2 or both) the device will use an algorithm with its own frequencies, so it wouldn't take care of the ones in the profile.
I can't swear, as I'm using my memory (and it's a bad memory).

Quote:

Originally Posted by ravent-n900 (Post 1135898)
still reboot when ovi maps running when someone call me
another one while homescren loading (after reboot) when i lock the phone (by the right slider ) n900 reboot

sorry my english is bad

thanx karam keep the good work :)

Do you have HWSync enabled? (instructions on the first post from this thread). Maybe you activated and you forgot about it.
I had similar problems this week as I actvated it to test it again (I tested it some time ago and had similar results and wanted to test if it was due to this). It's unstable on some devices.

abhirajsoni 2011-12-11 11:03

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Happy birthday karam :)

ed_boner 2011-12-11 12:47

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
hi to all...so..i installed again speedpatch, and batterypatch, and tracker-cfg...for one day it was hard for me to understand..why had i installed 3 patches and the battery consumption remained really simillar to dps profile..so i guessed karams work was good but maybe there is no way to optimize n900 battery...untill last night..i left my home at 21h, with my bttery full, and now i am arriving home, 13h, and i have 80%left...it was 16hours of almost idle phone but still i think it is really good!..beside that, no crashes waht so ever, only the anoying xterm message.

karam 2011-12-11 13:59

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Quote:

Originally Posted by abhirajsoni (Post 1136147)
Happy birthday karam :)

thank you so much...
i appreciate it :)

Quote:

Originally Posted by ravent-n900 (Post 1135992)
@karam i think 700 and 750 mhz are not supported
try without it

batterypatch detects your KP version and installs the compatible overclock profile

@ALL

i can see that many of you are having unstable N900 with the latest batterypatch

that's why i will reverse it to the previous version
and create a batterypatch-testing
it will include all the untested tweaks

so anyone want to install batterypatch-testing will have to remove batterypatch first


//EDIT:

released batterypatch-testing

uros 2011-12-11 14:50

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Tnx karam, and happy birthday, wish you all the best. Your work is awesome, inteligent and dedicated.

Masoi 2011-12-11 16:16

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
happy bday karam...

WhiteWolf 2011-12-11 20:32

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Karam...

Happy Birthday! May this year be better than before.

Thank you for your very great contributions to the community.

shawwawa 2011-12-12 00:05

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Karam, happy birthday ~ :)

stooobs 2011-12-12 01:10

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
battery patch testing build failed
i installed 2.9 out curiosity and before locking me phone notised underclock had 700and 750 clock settings so changed to 720 to fit kp49 dont know if this was ment to be that way
on 52% batt now lets see what happens in 12hours

karam 2011-12-12 11:49

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Thank you All :)


@stooobs
thanks for reporting
fixed all..
looks like i forgot to change 700 and 750 to 720 ;)

visN900 2011-12-12 12:35

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
happy birthday karam...

stooobs 2011-12-13 00:47

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
i used 7% battery in 12hrs includin a 10minute phonecall and some browsing but nothing else gona uninstall 2.9 and put the testing 1 on, it annoys me having an update keep appearing lol


All times are GMT. The time now is 22:22.

vBulletin® Version 3.8.8