maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Finally got a real improvement on battery life (https://talk.maemo.org/showthread.php?t=61679)

ryanl33x1511 2010-09-03 23:21

Re: Finally got a real improvement on battery life
 
Quote:

Originally Posted by maxximuscool (Post 806713)
I'm interested to know if this has an impact on video recording frame rate and stuttering problem occured before configuration to swappiness

can you test video frame with ur script ? any change public the script ?

maxximuscool 2010-09-03 23:27

Re: Finally got a real improvement on battery life
 
Quote:

Originally Posted by ryanl33x1511 (Post 806725)
can you test video frame with ur script ? any change public the script ?

Yes sure. It is open source after all :)
I somehow get a good transition of UI after a few hack.
If you want my transition and the script then you'd get the same experience :)
I'll have to test my script before hand it over to you. Just PM me and I'll send it to you :)

maxx

mr_xzibit 2010-09-03 23:27

Re: Finally got a real improvement on battery life
 
Quote:

Originally Posted by maxximuscool (Post 806711)
I'm implimenting this with my small python script :)
My script has:

Radio Region change to world wide, vlaue 4
Swappiness level to 30

The script will automatically start up and activate those setting every reboot. So no need to touch rCS file.

Which avoiding people from breaking their device.


nice. will this be easy to install?

ktchiu 2010-09-03 23:28

Re: Finally got a real improvement on battery life
 
I changed the swappiness to 30 and page-cluster to 1. From what I can tell, I no longer get the slowdowns in freezes in micob that I used to have. The conversations app seems to start up faster too.

Psycho 2010-09-03 23:29

Re: Finally got a real improvement on battery life
 
Quote:

Originally Posted by Venemo (Post 806719)
Been there, done that.



Not sure. Could you please give some explanation about this?



And this too?

Thanks!

you can find swappines and page cluster in the rcS file in;
/etc/init.d/rcS

and search for swappines and Page-cluster.. they are next together..

but be carefull dont brick ur phone ;)

gr

Psycho 2010-09-03 23:47

Re: Finally got a real improvement on battery life
 
ok, im trying it too..
things ive did..
a small work-around;

1.
Install SSH server

2.
copy rcS file by typing in terminal; cp /etc/init.d/rcS /home/user/MyDocs/

3.
open the file using SSH with 4 example notepad++ (or whatever you want:D , dont use notepad)

4.
search by using ctrl+F the keyword; swappiness and change value 100 in 30.. and same thing for 'page-cluster' and change the value from 4 to 1

5.
save the rcS file and copy it back to MyDocs using SSH

6.
copy the rcS file back by typing "cp /home/user/MyDocs/rcS /etc/init.d/rcS" in terminal

7.
Check if the file have the exec permissions by typing;
ls -al /etc/init.d/rcS
will show rwxr-xr-x
(look at the 3 x)

8.
If so, ur done reboot ur phone..

p.s. allways be root at terminal..and do it at own risk ;)

You can check the values by typing;
cat /proc/sys/vm/swappiness
or
cat /proc/sys/vm/page-cluster


greets

Harick 2010-09-03 23:50

Re: Finally got a real improvement on battery life
 
im sorry, im a new but, why not just

vi /etc/init.d/rcS

to edit the file?

Psycho 2010-09-03 23:55

Re: Finally got a real improvement on battery life
 
Quote:

Originally Posted by Harick (Post 806747)
im sorry, im a new but, why not just

vi /etc/init.d/rcS

to edit the file?

Have u ever used vi editor ? i hate that editor.. so im using my own editor at my laptop.. witouth doing mistakes ;) i dont want to brick my phone..

scribbles 2010-09-03 23:58

Re: Finally got a real improvement on battery life
 
Good info guys, I'm gonna try this out when I get home... Anything to increase battery life even though I carry an extra battery with me everyday. I get jealous when one of my co-workers who has a Nexus One shows off the battery life of his modded ROM when after almost 8hrs he's @80%+. All I can do is shake my head in disbelief :rolleyes: :eek:

scribbles 2010-09-03 23:59

Re: Finally got a real improvement on battery life
 
Quote:

Originally Posted by Psycho (Post 806750)
Have u ever used vi editor ? i hate that editor.. so im using my own editor at my laptop.. witouth doing mistakes ;) i dont want to brick my phone..

Leafpad works well also....


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

vBulletin® Version 3.8.8