FORUMS

What Are the Best Looking Apps on Android?

As more developers are updating their apps with Material Design elements, we’re … more

Cyngn Explained: Who’s Cyanogen, What’s Cyanogen OS?

While Cyanogen, Inc has been the source of many headlines lately, there … more

Verizon Moto X 2014 Receives Root On Kitkat 4.4.4

The Verizon Moto X 2014 has finally received root, albeit only on Kitkat 4.4.4 … more

Android 5.1.1 Released, Google Cell Service – XDA TV

Android Lollipop 5.1.1 has been released. That and much more news is covered … more
Thread Closed Subscribe to Thread Email Thread

[MOD] Improve your battery life

4th May 2012, 03:25 PM |#231  
Senior Member
Flag Islamabad
Thanks Meter: 14
 
More
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
 
 
4th May 2012, 03:44 PM |#232  
graymonkey44's Avatar
Senior Member
Flag New York
Thanks Meter: 383
 
Donate to Me
More
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
4th May 2012, 03:46 PM |#233  
tgamble160's Avatar
Senior Member
Flag Brackenridge
Thanks Meter: 311
 
More
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?
Last edited by tgamble160; 4th May 2012 at 04:09 PM.
4th May 2012, 04:17 PM |#234  
pmsrefugee's Avatar
Senior Member
Thanks Meter: 61
 
More
Battery dropping on aokp milestone 5 stock kernel. Going to try new kernel.

Sent from my Incredible using Tapatalk 2
4th May 2012, 04:52 PM |#235  
Senior Member
Thanks Meter: 715
 
More
Quote:
Originally Posted by PureMotive

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.
4th May 2012, 05:50 PM |#236  
Senior Member
Flag West Union SC
Thanks Meter: 8
 
Donate to Me
More
Quote:
Originally Posted by pmsrefugee

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.
4th May 2012, 06:05 PM |#237  
Hero's Avatar
OP Recognized Developer
West Hollywood
Thanks Meter: 4,879
 
Donate to Me
More
Quote:
Originally Posted by losta

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
Last edited by Hero; 4th May 2012 at 06:39 PM.
The Following User Says Thank You to Hero For This Useful Post: [ View ]
4th May 2012, 06:05 PM |#238  
nattygirl's Avatar
Senior Member
Thanks Meter: 18
 
More
Quote:
Originally Posted by oinkylicious

I just tried it and suffered a seventeen fold decrease in battery life. Please update thread title to reflect this.

Same here using CM9
4th May 2012, 06:24 PM |#239  
starkilling's Avatar
Senior Member
Thanks Meter: 645
 
More
Hey guys, I ran sysctl -p, here's my output:



Desire HD on IceColdSandwich 7.4
Last edited by starkilling; 4th May 2012 at 06:32 PM.
4th May 2012, 06:37 PM |#240  
Hero's Avatar
OP Recognized Developer
West Hollywood
Thanks Meter: 4,879
 
Donate to Me
More
Quote:
Originally Posted by starkilling

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.
Last edited by Hero; 4th May 2012 at 06:40 PM.
The Following User Says Thank You to Hero For This Useful Post: [ View ]
Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes