![]() |
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 |
Re: Finally got a real improvement on battery life
Quote:
after reboot, doing a cat /proc/sys/vm/swappiness it gives 100 again |
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? |
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 |
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. |
Re: Finally got a real improvement on battery life
Quote:
care to share the script? |
Re: Finally got a real improvement on battery life
Quote:
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 |
Re: Finally got a real improvement on battery life
please im still waiting on this...
|
Re: Finally got a real improvement on battery life
Quote:
could you explain the instructions to do this, please? |
Re: Finally got a real improvement on battery life
I'll upload it here then.
|
Re: Finally got a real improvement on battery life
Quote:
|
Re: Finally got a real improvement on battery life
2 Attachment(s)
Here is the file.
Extract it and keep it inside "etc" folder I set the value to 15. So far so good, been using my N900 all day since morning until now and my battery still saying 83% paste it into your N900 root. Xterminal: root chmod +x /etc/event.d/custom_swappiness |
Re: Finally got a real improvement on battery life
Quote:
|
Re: Finally got a real improvement on battery life
Quote:
|
Re: Finally got a real improvement on battery life
Quote:
Thanks Matt |
Re: Finally got a real improvement on battery life
Quote:
Xterminal: root mv /path/to/custom_swappiness /etc/event.d Done! ==== I got to say, first time ever!! Since I've got my N900, that I haven't been charging it last night. My battery still 36% after 1Day and 10hours This surely is an improvement. The downside is the RAM usage is about 30MB higher than before but less SWAP usage (77MB). The device seems snappier and better transitions |
Re: Finally got a real improvement on battery life
Quote:
|
Re: Finally got a real improvement on battery life
this is a really good thread to wiki-nize:)
is it? I'v never went through a whole day(plus connected..not using Wifi and a few phone tasks) with 72 batt left is it just me or does wine(N900 or everything) gets better in time:D |
Re: Finally got a real improvement on battery life
So far it still seems like my battery does drain, not as much as before, but still noticeable. Overnight I was at maybe 75%, when I woke up it was down to 30%. =\
|
Re: Finally got a real improvement on battery life
Quote:
i was wondering if u can post some clearer instructions on how to do it step by step (on what to do first, up to last) if possible, it would help alot. thanks! |
Re: Finally got a real improvement on battery life
just put it in etc folder then thats it ?it will automatic start everytime restart the device ? do i need to do anything else?
Quote:
|
Re: Finally got a real improvement on battery life
I went ahead and did this change a couple days ago, directly in my N900 as prescribed early in the thread (used Leafpad). Absolutely stunned at the change in phone's battery life! I keep the brightness usually at 60%, turn off the WiFi whenever I'm not using it, keep the GPS off, Bluetooth off, overclocked to 850Mhz using Ideal voltage... and this has had the greatest impact at increasing battery life thus far. On top of that, as others have pointed out, responsiveness of active apps (usually have up to 6 MicroB windows open) has improved.
I keep loving the optimizations that keep being posted! :D Not so much the fact that Nokia didn't seem to do any of this themselves, or that some things don't work quite like they should... but this community has been amazing at improving this device. |
Re: Finally got a real improvement on battery life
Quote:
|
Re: Finally got a real improvement on battery life
Quote:
This is good news! can you check my steps below if im doing it right in xterm: 1. sudo gainroot 2. cp /home/user/MyDocs/custom_swappiness /etc/event.d/ 3. root or sudo root? 4. chmod +x /etc/event.d/custom_swappiness |
Re: Finally got a real improvement on battery life
My battery life doesn't seem to be improving, should I just reflash emmc or?
|
Re: Finally got a real improvement on battery life
After reading this thread a few days ago I changed Swappiness to 15 and Page cluster to 1.
My setup: Overclock 500-1000 on ULV. on V40 Kernel. GSM only when not using internet or when accessing internet via wifi. Battery Indexing Disabled using Tracker-cfg. Battery is original that I have had since early march. Standard use for me is some mild sms and calling. Some photos using fcamera, about 90 minutes of Angry Birds. Some internet browsing approx 1 hour (wifi) so far and the updating of weather and email over wifi once every few hours. Maybe an hour of listening to music. It is now 46 hours after a full charge (reading in beecon snippet was 97%) AND I HAVE 35% REMAINING!!! This is just outstanding. Plus there are the other benefits described such as snappy switching of desktops etc etc @ Lilboymonkey - don't reflash your emmc. I have never done this and my phone works great. Have reflashed software twice. 1st to upgrade to PR1.2 and the other just to reload some apps after a huge clearout. THIS IS KEY - if you have a bunch of dev apps and widgets then these changes will not really effect you much as those things eat battery :) Ciao :) |
Re: Finally got a real improvement on battery life
Quote:
is it 77mb befor or after? my ram-usage is always around 130-180 mb, even on idle. how did you achieve this? |
Re: Finally got a real improvement on battery life
Quote:
|
Re: Finally got a real improvement on battery life
Quote:
|
Re: Finally got a real improvement on battery life
I actually tried to install Nitdroid but it didn't work out. I had good battery life beforehand, and then after attempting Nitdroid my battery life went to crap. Guess I'll reflash later on then when I get back home.
|
Re: Finally got a real improvement on battery life
swap to 15 and page cluster to 1.
no problems so far. smooth playback in media player and SiB using ideal kernel settings 500-900 |
Re: Finally got a real improvement on battery life
how do you change page cluster ?
|
Re: Finally got a real improvement on battery life
Any instructions for indexing? Which problems can be expected by disabling it? I mean, which function has the indexing option at all??
|
Re: Finally got a real improvement on battery life
I've been trying swappiness at 30 for the last couple of days and I have to say it is one of the best changes you can make to your N900. It is up there with overclocking for improved experience.
100 is a really stupid default for a device like this. I haven't touched page cluster because I am not convinced of the reason for changing it. |
Re: Finally got a real improvement on battery life
When I try swappiness as low as 30 I get stuttering in music player.
Then I tried 60. This morning my n900 rebooted without external action and got stuck in a reboot loop. I had to reflash rootfs and optfs through backupmenu. And that's it. |
Re: Finally got a real improvement on battery life
It is extremely unlikely that swappiness had anything to do with your problem. It just adjusts when the kernel decides to swap pages to disk. Nothing that would even crash the phone, let alone change anything permanently.
|
All times are GMT. The time now is 06:28. |
vBulletin® Version 3.8.8