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)

Masoi 2011-12-02 19:07

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

Originally Posted by msa (Post 1132222)
when i try apt-get install speedpatch, i get the error "E: Couldn't find package speedpatch" :O

just apt-get update

Minhaz 2011-12-02 19:09

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

Originally Posted by carbonjha (Post 1131971)
@karam
thanks a lot for the update

I think it is important to renice the processes of cpu_sleep back to 0 in cpu_normal
otherwise their nice value will always remain 1 & the processes will be ignored during cpu load

/etc/dbus-scripts/cpu_normal
Code:

renice 0 `pgrep modest`
renice 0 `pgrep browserd`
renice 0 `pgrep image-viewer`

@All
qtlockscreen users can test this

add this line in /etc/dbus-scripts/cpu_sleep
Code:

renice -1 `pgrep qtlockscreen`
this will increase the priority of qtlockscreen when using


and in /etc/dbus-scripts/cpu_normal
Code:

renice 19 `pgrep qtlockscreen`
this will decrease the priority of qtlockscreen when screen is unlocked

will try and report ..thanks a lot though :)

msa 2011-12-02 19:30

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

Originally Posted by Masoi (Post 1132258)
just apt-get update

nope, still doesnt find the package.

mohd012z 2011-12-02 19:40

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

Originally Posted by msa (Post 1132267)
nope, still doesnt find the package.

are u already in root:::::

type sudo gainroot

apt-get install taskswapper

Minhaz 2011-12-02 19:47

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

Originally Posted by mohd012z (Post 1132274)
are u already in root:::::

type sudo gainroot

apt-get install taskswapper

whats taskswapper got to do with his problem? o.O

Masoi 2011-12-03 00:01

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

Originally Posted by msa (Post 1132267)
nope, still doesnt find the package.

make sure to enable extra-devel

msa 2011-12-03 00:13

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900 (HUGE UPDATES)
 
oh guys, that was a no-brainer.
i didnt have devel activated. stupid me.

Masoi 2011-12-03 00:18

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

Originally Posted by msa (Post 1132408)
oh guys, that was a no-brainer.
i didnt have devel activated. stupid me.

you just only forgot..

raverpol 2011-12-03 00:43

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

Originally Posted by carbonjha (Post 1131971)
@All
qtlockscreen users can test this

add this line in /etc/dbus-scripts/cpu_sleep
Code:

renice -1 `pgrep qtlockscreen`
this will increase the priority of qtlockscreen when using


and in /etc/dbus-scripts/cpu_normal
Code:

renice 19 `pgrep qtlockscreen`
this will decrease the priority of qtlockscreen when screen is unlocked

what if I use qtlockscreen and I don't have dbus-scripts folder? all I can find in etc is dbus-scripts.d and tow files inside

mohd012z 2011-12-03 03:25

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

Originally Posted by Minhaz (Post 1132280)
whats taskswapper got to do with his problem? o.O

sorry just for example....by the way dont forget to enable the repo for extras-devel

sorry again...

carbonjha 2011-12-03 03:57

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

Originally Posted by raverpol (Post 1132415)
what if I use qtlockscreen and I don't have dbus-scripts folder? all I can find in etc is dbus-scripts.d and tow files inside

Im so sorry. the path was incorrect! the correct path for cpu_sleep & cpu_normal is /opt/dbus-scripts/
so sorry guys!!

raverpol 2011-12-03 11:51

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

Originally Posted by carbonjha (Post 1131971)
@All
qtlockscreen users can test this

add this line in /opt/dbus-scripts/cpu_sleep
Code:

renice -1 `pgrep qtlockscreen`
this will increase the priority of qtlockscreen when using


and in /opt/dbus-scripts/cpu_normal
Code:

renice 19 `pgrep qtlockscreen`
this will decrease the priority of qtlockscreen when screen is unlocked

ok, does it important where, in which line, should I put those two lines?

ed_boner 2011-12-03 19:35

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900 (HUGE UPDATES)
 
its oficial...witn kp49 and dsp profile..if i install batterypatch i spend more battery..as for speespatch..same old xtem message??..i am uninstalling this..thks a lot karam for all your amazing work..you changed my n900 life..but this time you were outnumbered.

AKEEL 2011-12-03 21:27

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900 (HUGE UPDATES)
 
Hi,
After installing new battery patch, my phone goes in reboot loop. I am using KP42.
I restored via Backupmenu and BatteryPatch.v2 is working fine.

karam 2011-12-04 04:08

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900 (HUGE UPDATES)
 
@carboniha

Quote:

Originally Posted by carbonjha (Post 1131971)
@karam
thanks a lot for the update

I think it is important to renice the processes of cpu_sleep back to 0 in cpu_normal
otherwise their nice value will always remain 1 & the processes will be ignored during cpu load

/opt/dbus-scripts/cpu_normal
Code:

renice 0 `pgrep modest`
renice 0 `pgrep browserd`
renice 0 `pgrep image-viewer`

@All
qtlockscreen users can test this

add this line in /opt/dbus-scripts/cpu_sleep
Code:

renice -1 `pgrep qtlockscreen`
this will increase the priority of qtlockscreen when using


and in /opt/dbus-scripts/cpu_normal
Code:

renice 19 `pgrep qtlockscreen`
this will decrease the priority of qtlockscreen when screen is unlocked

i don't think it's important to do renice 0 in
/opt/dbus-scripts/cpu_normal

because it takes up more battery on continues usage and it doesn't increase the performance

but about qtlockscreen
as for me i don't use it
but i will create a new package called : batterypatch-testing
including all the unfinished tests and when something is confirmed
i'm going to move it batterypatch (the stable current one)

@AKEEL

do you have unstable N900 ? when activating smartrelfex ?
this is strange

@ed_boner

that's your opinion and i respect it but :

Quote:

Originally Posted by ed_boner (Post 1132087)
i was using kp49 with no patch only dsp profile and was really happy with it...last night i installed this patches..i do not have any monitoring tool but my n900 imediately seemed faster...as for the battery i believe it is much worse than without batterypatch and dsp profile..is this possible?


Quote:

Originally Posted by ed_boner (Post 1132786)
its oficial...witn kp49 and dsp profile..if i install batterypatch i spend more battery..as for speespatch..same old xtem message??..i am uninstalling this..thks a lot karam for all your amazing work..you changed my n900 life..but this time you were outnumbered.

comparing the above 2 posts i can't seem to understand what is exactly is your problem ?
less battery with batterypatch?
more battery with batterypatch?
less performance with speedpatch?
more performance with speedpatch?
the xterm message stays up your tail?
,,,,,,,,,,,,,,
dsp profiles is just like overclock profile except the voltages (overclock has the stock ones) to prevent reboots
although smartreflex has it's own voltages which apply them on the cpu (so probably the voltages in overclock are ignored ?)

but with batterypatch :
vfs trick ... gives a lot of extra standby renice ... the same
and conversative mode in overclock gives a longer continues usage time

forgive me if i miss understand you but i made my point clear



@All
sorry for taking long to update the 1st post
this should be done soon

AKEEL 2011-12-04 05:56

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

Originally Posted by karam (Post 1132937)
do you have unstable N900 ? when activating smartrelfex ?
this is strange

Yes, Its shows desktop and reboot itself. Previous BatteryPatch v2 is working fine.
SmartReflex is active. VDD1=0, VDD2=1.
Is it bcoz of old KP version?
I am using KP42, bcoz my bluetooth headset Nokia BH-214 is working stable only with KP42.

karam 2011-12-04 11:27

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900 (HUGE UPDATES)
 
yes this is one of the reasons
but the latest version detects the kernel-power version installed
and installs the patch according to it
======== if you are using KP42-46-47-48 batterypatch should activate vdd1=1 and vdd2=1 but the MAXfreq is 750 (stable with vdd1)
maybe your N900 is not even stable with 750

solutions :

1-) install the latest KPv49 (maybe will solve your problem or maybe not) and then update to the latest batterypatch

2-) if you have v2 installed (the older one)
then :

Code:

sudo gainroot
mkdir temp
cd temp
apt-get install -d batterypatch # press y after that and make sure you did apt-get update before with devel-enabled
mv /var/cache/apt/archives/batterypatch* ./batterypatch
dpkg -x batterypatch ./
rm -r /opt/dbus-scripts
mv dbus-scripts /opt
chmod -R +rwx /opt/dbus-scripts
mv etc/dbus-scripts.d/* /etc/dbus-scripts.d/
cd ..
rm -r temp

PS: it's safe to uninstall it from HAM too

this will let you have an updated batterypatch features without VDD1 enabled
.........
it could've been easier with editing overclock profile only
but as you said that you have a reboot loop
then those are the only solutions

willi6868 2011-12-04 12:24

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900 (HUGE UPDATES)
 
What is the actual max. frequence with batterypatch? I'm using speedpatch, kernel-power v49 and 720p rec/watch.

@karam: It would be great if u update the first post with the supported/max frequencies. :)

ed_boner 2011-12-04 12:31

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900 (HUGE UPDATES)
 
tks for answering karam..maybe my english is not the best..the twoquoted statements say the same thing for me..with speedpatch the phone seems faster but i am kind of disapointed abot the xterm message and about batterypatch..well in my experience for now,although i understand your theory, dlesnt work for me as i could confirm it drains mmore battery...hope you dont take this the wrong way as you are one of my n900 heroes..hope you continue to work and improve and in a near future prove me wrong.

GomerS 2011-12-04 16:17

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900 (HUGE UPDATES)
 
I will not find in this theme of a command how again to activate all configs cpu_sleep and cpu_normal. I them пересобрал itself a little and here after reboot they probably won't earn, updated QCUFreq, but the new version didn't show temperature as I am necessary also was rolled away back and have stuck save and and there is empty still, now works but I can it have made cancellation of options. Also I remember here commands were. For returning of 2 parameters and configuration automatic loading

karam 2011-12-04 18:22

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900 (HUGE UPDATES)
 
@ed_borner
look at the reply below yours... i swear that your english is fine ..LOL

now @GomerS

the things i understand from your post are :

1-) you are trying to apply all configs ? . they are applied by default but the above post by me was for AKEEL only !

2-) temperature problem is caused by a kernel problem not from any of patches (also mentioned in qcpu)
a reboot should solve it

AliasXZ 2011-12-05 10:30

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900 (HUGE UPDATES)
 
Heres my 2 cents:

kernel power v 48, as soon as i upgraded to batterypatch-2.5, my phone went into a reboot loop.

After a little tinkering, i noticed this was because of voltage settings in the overclock script, I then copied the voltage settings from version 2 of the battery patch and then the reboot loop was gone.

i cant compare them as I overwrote the upgraded overclock script doh!

here are my current overclock settings:

# kernel configuration file generated by /usr/sbin/kernel-config
MINFREQ=250
MAXFREQ=950
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 "
SMARTREFLEX_VDD1=0
SMARTREFLEX_VDD2=1
GOVERNOR=conservative
UP_THRESHOLD=75
SAMPLING_RATE=150000
IGNORE_NICE_LOAD=1
POWERSAVE_BIAS=20

If anyone needs to replace their voltage settings :)

karam 2011-12-05 13:09

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900 (HUGE UPDATES)
 
thank you for reporting
updating to the configs given by AliasXZ

looks like i changed vdd1=0 to 1 in overclock profile for KPv48
should be fixed now

on it's way to devel


//EDIT

i have updated the 1st post
and will add FAQS section soon

ctl 2011-12-06 08:06

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Thanks again karam for the update, how much improves the battery the last update?

karam 2011-12-06 18:41

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
the last update adds nothing new but fixes the reboot problem in kernel 48 >=

willi6868 2011-12-07 08:11

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
To which freq can I overlock my kernel if I'm using batterypatch? :o

maximilian1st 2011-12-07 08:56

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Thank you so much karam, the N900 is another phone with your speedpatch and above all the battery patch.

AxelDominatoR 2011-12-07 12:58

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Hello! I was installing the battery patch by hand (because my N900 is overly-customized) and noticed something.

In the postinst script you have:

Code:

if [ -f /etc/speedpatch ]; then
mv /opt/dbus-scripts/cpu_sleep_speedpatch /opt/dbus-scripts/cpu_sleep
fi

but no /etc/speedpatch exists. The speedpatch, if I'm correct, is installed in /etc/event.d/speedpatch. This means the cpu_sleep_speedpatch is not installed even if speedpatch is indeed installed.

Can you confirm this?
Thanks a lot for your great work :)

shah88 2011-12-07 19:03

Re: [ANNOUNCE] SUPER SCRIPT TO Speed UP N900
 
hello everyone...i'm new at this....i've problem here at PART 3: TWEAKS.
''sudo gainroot
leafpad /etc/powervr.d/hildon-desktop.ini''

after i type those commannd. i have this
''/bin/sh: leafpad: not found''

why is this happening?pls help me....

BrX 2011-12-07 19:57

Re: [ANNOUNCE] SUPER SCRIPT TO Speed UP N900
 
Quote:

Originally Posted by shah88 (Post 1134657)
hello everyone...i'm new at this....i've problem here at PART 3: TWEAKS.
''sudo gainroot
leafpad /etc/powervr.d/hildon-desktop.ini''

after i type those commannd. i have this
''/bin/sh: leafpad: not found''

why is this happening?pls help me....

In xterm:

Code:

sudo gainroot
apt-get update
apt-get install leafpad

or just
Code:

nano /etc/powervr.d/hildon-desktop.ini
:)

karam 2011-12-07 20:09

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

Originally Posted by willi6868 (Post 1134344)
To which freq can I overlock my kernel if I'm using batterypatch? :o

you can overclock as much as you want
but if you want to overclock more than 900mhz then disable vdd1 before ! (with KPV49)

Quote:

Originally Posted by maximilian1st (Post 1134356)
Thank you so much karam, the N900 is another phone with your speedpatch and above all the battery patch.

you are welcomed ;)

Quote:

Originally Posted by AxelDominatoR (Post 1134445)
Hello! I was installing the battery patch by hand (because my N900 is overly-customized) and noticed something.

In the postinst script you have:

Code:

if [ -f /etc/speedpatch ]; then
mv /opt/dbus-scripts/cpu_sleep_speedpatch /opt/dbus-scripts/cpu_sleep
fi

but no /etc/speedpatch exists. The speedpatch, if I'm correct, is installed in /etc/event.d/speedpatch. This means the cpu_sleep_speedpatch is not installed even if speedpatch is indeed installed.

Can you confirm this?
Thanks a lot for your great work :)

oh ***** haven't noticed that
i will fix that right away
thank you for warning me

it's job is to renice tasks (if speedpatch installed then /dev/cgroup)
if not (then from /sysparts)

although it's not very important and effective as other configs

shah88 2011-12-07 20:20

Re: [ANNOUNCE] SUPER SCRIPT TO Speed UP N900
 
Quote:

Originally Posted by BrX (Post 1134688)
In xterm:

Code:

sudo gainroot
apt-get update
apt-get install leafpad

or just
Code:

nano /etc/powervr.d/hildon-desktop.ini
:)

tQ man u r the best!!!!

noname711 2011-12-07 20:30

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
Thanks for this awesome improvements. I tried only speedpatch because I don't want that things about auto underclocking in batterypatch. After install and twice reboot there was significant difference in speed(it was much faster of course) especially when switching windows in microB. However, after some days I got in x-terminal those errors desribed in post #2749. My n900 slowed down, too. Then I tried just reinstalling speedpatch and rebooting the device once and problem vanished from x-terminal, it also sped up again. :D

carbonjha 2011-12-08 10:38

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
@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.

karam 2011-12-08 14:04

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
this seems to be very exciting
it should give a huge improvements
testing them too

btw you can add

echo 1500000 > /sys/devices/system/cpu/cpu0/cpufreq/conserva
tive/sampling_rate

and i will release a new package batterypatch-testing
including all the untested tweaks

karam 2011-12-08 22:50

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
EVERYONE
i have released a new HUGE update

many many changes and new features
in short ... the continues time of usage must be at least doubled !!

PS: changed MAXFREQ to 900

tested the codes given by carbonjha no problems appeared
tested with HD record/watch and everything works fine

PS2: this might be the last update for 5 months except fixing bugs
have some studies to finish :)

/karam


//EDIT :
please report if any problems happens with you ;)

ed_boner 2011-12-08 23:33

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
doubled?...hm..i have to ckeck this out...:)

abhirajsoni 2011-12-09 11:41

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
yes .. the lastest update surely got huge improvements. but in my case the touch vibration is harder now and the response is little late.

karam 2011-12-09 12:44

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
well try to increase the minfreq in overclock from 250 to 500
perhaps this solves your problem

although i have the vibration acts normally

//edit

how to :

install any text editor ex: leafpad

then
Code:

sudo gainroot
leafpad /usr/share/kernel-power-settings/overclock

and change MINFREQ=250 to MINFREQ=500

save and exit
PS: no need to reboot

abhirajsoni 2011-12-09 13:01

Re: [ANNOUNCE] Speed Patch + Battery Patch + Tweaks --> Everything Needed To Have A Perfect N900
 
and how will i do that. sorry but i don't know about that.


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

vBulletin® Version 3.8.8