Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,768,101 Members 44,000 Now Online
XDA Developers Android and Mobile Development Forum

[MOD] Improve your battery life

Tip us?
 
mustafa.aziz
Old
#231  
Senior Member
Thanks Meter 14
Posts: 464
Join Date: May 2009
Location: Islamabad
For me the mod did nothing, I am still having bad battery time. May be bcz of the few errors I get the script is not working as it should.

Sent from my Sensation using XDA Premium App
 
graymonkey44
Old
#232  
graymonkey44's Avatar
Senior Member
Thanks Meter 360
Posts: 763
Join Date: Nov 2011
Location: New York

 
DONATE TO ME
I flashed the new ics leak on the Rezound and flashed the S4 team pkmn Rom, flashed the newest zip and I'm getting a lot better battery life.

Sent from my ADR6425LVW using XDA
 
tgamble160
Old
(Last edited by tgamble160; 4th May 2012 at 04:09 PM.)
#233  
tgamble160's Avatar
Senior Member
Thanks Meter 276
Posts: 997
Join Date: Jan 2012
Location: tarentum
can anyone please tell me if this will work on htc amaze and samsung vibrant(my girls phone)

already on my amaze but can someone please tell me if it will work on my girls samsung galaxy s vibrant?
 
pmsrefugee
Old
#234  
pmsrefugee's Avatar
Senior Member
Thanks Meter 45
Posts: 461
Join Date: Jun 2010
Battery dropping on aokp milestone 5 stock kernel. Going to try new kernel.

Sent from my Incredible using Tapatalk 2
Rooted HTC IncREDible
★ Touchwiz 5.1.4 ★
Radio=2.15.11.07.28
S-Off (Unrevoked Forever)
 
oinkylicious
Old
#235  
Senior Member
Thanks Meter 713
Posts: 1,847
Join Date: May 2011
Quote:
Originally Posted by PureMotive View Post
The increase in battery life may not be "tenfold" for you, but it does increase, which is still better than not increasing.
I just tried it and suffered a seventeen fold decrease in battery life. Please update thread title to reflect this.
 
nelms
Old
#236  
Senior Member
Thanks Meter 7
Posts: 141
Join Date: Sep 2010
Location: West Union SC

 
DONATE TO ME
Quote:
Originally Posted by pmsrefugee View Post
Battery dropping on aokp milestone 5 stock kernel. Going to try new kernel.

Sent from my Incredible using Tapatalk 2
any news? which kernel ya gonna try? i did the power saver option in rom control and it helped some.
 
Hero
Old
(Last edited by Hero; 4th May 2012 at 06:39 PM.)
#237  
Hero's Avatar
Recognized Developer - OP
Thanks Meter 4793
Posts: 1,279
Join Date: Oct 2010
Location: West Hollywood

 
DONATE TO ME
Quote:
Originally Posted by losta View Post
i just tried the script...ran the command from the terminal and here is what i get, just would like to know if this script is running as it should or not? i read from page one but still not quite sure a simple yes or no should be fine for me though. thanks in advance

It's not working. Your output in terminal doesn't match that of the OP. Something you can try is either deleting all of the net tweaks and then rerunning sysctl -p OR deleting the sysctl.conf file from your device and only use init.d. This applies to everyone who is still having issues. Create a new file in init.d and copy/paste the following code (I changed it around a bit)

Code:
#!/system/bin/sh
sync
sysctl -w fs.nr_open=1053696
sysctl -w fs.inotify.max_queued_events=32000
sysctl -w fs.inotify.max_user_instances=256
sysctl -w fs.inotify.max_user_watches=10240
sysctl -w fs.lease-break-time=10
sysctl -w fs.file-max=165164
sysctl -w kernel.threads-max=525810
sysctl -w kernel.random.write_wakeup_threshold=256
sysctl -w kernel.random.read_wakeup_threshold=128
sysctl -w kernel.sched_compat_yield=1
sysctl -w kernel.panic=0
sysctl -w kernel.panic_on_oops=1
sysctl -w kernel.msgmni=2048
sysctl -w kernel.msgmax=64000
sysctl -w kernel.shmmni=4096
sysctl -w kernel.shmall=2097152
sysctl -w kernel.shmmax=268435456
sysctl -w kernel.sem=500 512000 64 2048
sysctl -w kernel.sched_features=24189
sysctl -w kernel.hung_task_timeout_secs=30
sysctl -w kernel.sched_latency_ns=18000000
sysctl -w kernel.sched_min_granularity_ns=1500000
sysctl -w kernel.sched_wakeup_granularity_ns=3000000
sysctl -w kernel.sched_shares_ratelimit=256000
sysctl -w kernel.sched_child_runs_first=0
sysctl -w fs.lease-break-time=10
sysctl -w fs.file-max=65536
sysctl -w vm.dirty_ratio=90
sysctl -w vm.dirty_background_ratio=80
sysctl -w vm.oom_kill_allocating_task=1
sysctl -w vm.overcommit_memory=1
sysctl -w vm.page-cluster=3
sysctl -w vm.drop_caches=3
sysctl -w vm.min_free_kbytes=4096
sysctl -w vm.panic_on_oom=0
sysctl -w vm.dirty_expire_centisecs=1000
sysctl -w vm.dirty_writeback_centisecs=2000
sysctl -w vm.oom_kill_allocating_task=0
sysctl -w vm.vfs_cache_pressure=10
sysctl -w vm.min_free_order_shift=4
sysctl -w vm.laptop_mode=0
sysctl -w vm.block_dump=0
The Following User Says Thank You to Hero For This Useful Post: [ Click to Expand ]
 
nattygirl
Old
#238  
nattygirl's Avatar
Senior Member
Thanks Meter 17
Posts: 141
Join Date: Jun 2010
Quote:
Originally Posted by oinkylicious View Post
I just tried it and suffered a seventeen fold decrease in battery life. Please update thread title to reflect this.
Same here using CM9
Device: Samsung Galaxy S3
Rom: CleanRom 8.2
Recovery: Team Win Recovery v2.7.0.0

Device: Motorola Xoom 4G
Rom: Team EOS Jellybean
Recovery: CWM Rogue Touch v1.5.0

Device: Samsung Galaxy Tab S 10.5
Rom: Stock
 
starkilling
Old
(Last edited by starkilling; 4th May 2012 at 06:32 PM.)
#239  
starkilling's Avatar
Senior Member
Thanks Meter 645
Posts: 1,318
Join Date: Oct 2011
Hey guys, I ran sysctl -p, here's my output:



Desire HD on IceColdSandwich 7.4
 
Hero
Old
(Last edited by Hero; 4th May 2012 at 06:40 PM.)
#240  
Hero's Avatar
Recognized Developer - OP
Thanks Meter 4793
Posts: 1,279
Join Date: Oct 2010
Location: West Hollywood

 
DONATE TO ME
Quote:
Originally Posted by starkilling View Post
Hey guys, I ran sysctl -p, here's my output:

Desire HD on IceColdSandwich 7.4
Aside from the errors (kernel issues) the mod is working Let me know if you experience an increase in battery life.

The Following User Says Thank You to Hero For This Useful Post: [ Click to Expand ]
THREAD CLOSED
Subscribe
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes