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)

barzam 2010-09-04 15:51

Re: Finally got a real improvement on battery life
 
Just curious, why can't you just use the solution provided here?
http://talk.maemo.org/showpost.php?p...7&postcount=26

Harick 2010-09-04 16:53

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

Originally Posted by barzam (Post 807193)
Just curious, why can't you just use the solution provided here?
http://talk.maemo.org/showpost.php?p...7&postcount=26

actually, that didnt work for me =(

after reboot, doing a cat /proc/sys/vm/swappiness it gives 100 again

barzam 2010-09-04 16:57

Re: Finally got a real improvement on battery life
 
It worked for me, weird.

Have you double-checked that you didn't make any errors in your file?

Harick 2010-09-04 17:16

Re: Finally got a real improvement on battery life
 
it works

seems that i had the \r\n problem cause i made the file with leafpad and now cat /proc/sys/vm/swappiness gives 30 after reboot

thank you very much n.n

wonder if adding "echo 4 > /sys/class/i2c-adapter/i2c-2/2-0063/region" in the script would change my region settings aswell

shadowjk 2010-09-04 18:10

Re: Finally got a real improvement on battery life
 
Don't echo in to files in /etc. It replaces the file's contents and the OS might become unbootable.

As root, you can however do "echo 50 >/proc/sys/vm/swappiness" without the quotes, and it doesn't modify anything permanently, reducing the risk of doing anything that makes your device unbootable.

chaoscreater 2010-09-06 01:19

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.


care to share the script?

maxximuscool 2010-09-06 03:08

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

Originally Posted by chaoscreater (Post 808248)
care to share the script?

The script doesn't work without root access.
But I now just going the old way with Bash Script instead.
Bash script works great without hassle but Python scripts cannot modifying the file due to permission level too high.

If you want my Shell Script auto start, I'm happy to send it to you :) or upload it here

ryanl33x1511 2010-09-06 03:31

Re: Finally got a real improvement on battery life
 
please im still waiting on this...

lilboymonkey 2010-09-06 03:50

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

Originally Posted by egoshin (Post 806787)
To anybody, who wants changing swappiness or rcS, I repeat here -

I highly recommend to anybody who wants to change rcS - instead of that just create a file /etc/event.d/somename with following lines:

Code:


# my somename fix

start on started rcS-late

script
      echo 30 > /proc/sys/vm/swappiness
end script

... and insert any another wished lines after "echo 30" and before "end script"

This would not corrupt your N900 in case of problem and it allows the next Nokia OTA upgrade.



could you explain the instructions to do this, please?

maxximuscool 2010-09-06 03:50

Re: Finally got a real improvement on battery life
 
I'll upload it here then.


All times are GMT. The time now is 08:10.

vBulletin® Version 3.8.8