Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,742,083 Members 50,220 Now Online
XDA Developers Android and Mobile Development Forum

[MOD] Improve your battery life

Tip us?
 
musical_chairs
Old
#91  
Senior Member
Thanks Meter 272
Posts: 465
Join Date: Mar 2012
Tiny's config applied without the short write error and the phone is working fine. But for some reason the dialer is really chomping on battery now, whereas before the mod it rarely showed up in the stats.
 
Hero
Old
#92  
Hero's Avatar
Recognized Developer - OP
Thanks Meter 4787
Posts: 1,279
Join Date: Oct 2010
Location: West Hollywood

 
DONATE TO ME
I updated the OP with a new code (Thanks to Tiny). I just removed the semicolons. Use this version if the other does not work for you.
 
orfius christ
Old
#93  
orfius christ's Avatar
Senior Member
Thanks Meter 13
Posts: 199
Join Date: Mar 2012
So will the .zip work at all or is it like a 50/50 of actually helping?

Sent from my ADR6300 using XDA
 
McDastardly
Old
#94  
McDastardly's Avatar
Senior Member
Thanks Meter 24
Posts: 118
Join Date: Mar 2012
Location: Fargo
I've switched to the non semi colon ending version and here is the output. Is this what I should see?

$ export PATH=/data/local/bin:$PATH
$ su
# sysctl -p
fs.nr_open = 1053696
fs.inotify.max_queued_events = 32000
fs.inotify.max_user_instances = 256
fs.inotify.max_user_watches = 10240
fs.lease-break-time = 10
fs.file-max = 165164
kernel.threads-max = 525810
kernel.random.write_wakeup_threshold = 256
kernel.random.read_wakeup_threshold = 128
kernel.panic = 5
kernel.sched_compat_yield = 1
kernel.panic = 0
kernel.panic_on_oops = 1
sysctl: error: 'kernel.msgmni' is an unknown key
sysctl: error: 'kernel.msgmax' is an unknown key
sysctl: error: 'kernel.shmmni' is an unknown key
sysctl: error: 'kernel.shmall' is an unknown key
sysctl: error: 'kernel.shmmax' is an unknown key
sysctl: error: 'kernel.sem' is an unknown key
sysctl: error: 'kernel.sched_features' is an unknown key
sysctl: error: 'kernel.hung_task_timeout_secs' is an unknown key
sysctl: error: 'kernel.sched_latency_ns' is an unknown key
sysctl: error: 'kernel.sched_min_granularity_ns' is an unknown key
sysctl: error: 'kernel.sched_wakeup_granularity_ns' is an unknown key
sysctl: error: 'kernel.sched_shares_ratelimit' is an unknown key
kernel.sched_child_runs_first = 0
fs.lease-break-time = 10
fs.file-max = 65536
net.core.wmem_max = 524288
net.core.rmem_max = 524288
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.optmem_max = 20480
net.unix.max_dgram_qlen = 50
net.ipv4.tcp_keepalive_time = 900
net.ipv4.tcp_keepalive_probes = 5
net.ipv4.tcp_keepalive_intvl = 156
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_fack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_tw_reuse = 1
sysctl: short write
#

Sent from my ADR6300 using XDA
 
Hero
Old
#95  
Hero's Avatar
Recognized Developer - OP
Thanks Meter 4787
Posts: 1,279
Join Date: Oct 2010
Location: West Hollywood

 
DONATE TO ME
You need to do "sysctl -a| grep vm" (without quotes). "sysctl -p" just initializes sysctl.conf
The Following User Says Thank You to Hero For This Useful Post: [ Click to Expand ]
 
DroidOnRoids
Old
(Last edited by DroidOnRoids; 30th April 2012 at 12:04 AM.)
#96  
DroidOnRoids's Avatar
Senior Member
Thanks Meter 323
Posts: 947
Join Date: Dec 2011
Location: Baltimore, MD
Will this mod work for the Galaxy Nexus CDMA? As you all know, the GNex desperately needs increased battery life lol

EDIT: Okay, just tried it and everything boots up. Don't know yet if it helps battery but will report back. Also, when I put that command in emulator to see if it works, I get some permission denied reading as: "systctl: error reading key 'kernel.cad_pid'"
"systctl: error reading key 'kernel.usermodhelper.inheritable'"
"systctl: error reading key 'kernel.usermodhelper.bset'"
"systctl: error reading key 'vm.compact_memory'"
"systctl: error reading key 'net.ipv4.route.flush'"
"systctl: error reading key 'net.ipv6.route.flush'"

Everything else checks fine except those. Could it have something to do with me using V6 Supercharger?
 
sherpajosh
Old
#97  
Member
Thanks Meter 5
Posts: 79
Join Date: May 2008
Quote:
Originally Posted by ferotakis View Post
Thk u.
I make mine in this way too but no luck.
Which ROM and Kernel are u using?

Sent from my E10i using xda premium
Using CM7.2 with incredikernel 8/15
 
superbeak
Old
#98  
superbeak's Avatar
Senior Member
Thanks Meter 50
Posts: 203
Join Date: Mar 2012
Location: Ghent
PureMotive, you are now my favorite dev.

Sent from my Incredible using xda and running anthem 3.3
-----Devices--------------------
ASUS Google Nexus 7 ---rooted--unlocked--stock ROM
Htc Incredible-ROM- Anthem v.4 FE Vizio Vtab1008-Stock 3.2
HTC Eris-Rooted-ROM-xtrrom
Iphone 3g-Jailbroken-Redd00r
Htc Dream/G1-Rooted, DEAD bad spl


--------------------------------
If i ever helped you in anyway or gave some good insight, please hit "thanks" it only takes a second!
The Following User Says Thank You to superbeak For This Useful Post: [ Click to Expand ]
 
nyonya
Old
#99  
Senior Member
Thanks Meter 22
Posts: 185
Join Date: Jun 2010
Using the sysctl.conf from the first page (either with or without semicolons) doesn't work for me - get the 'short write' message in terminal when trying to execute sysctl -p. Using the file Tiny uploaded seems to work, will give that a try. Just an fyi.
 
kevdliu
Old
#100  
kevdliu's Avatar
Recognized Developer
Thanks Meter 1458
Posts: 1,055
Join Date: Apr 2011

 
DONATE TO ME
Quote:
Originally Posted by nyonya View Post
Using the sysctl.conf from the first page (either with or without semicolons) doesn't work for me - get the 'short write' message in terminal when trying to execute sysctl -p. Using the file Tiny uploaded seems to work, will give that a try. Just an fyi.
i just removed everything net.* and worked fine thereafter. i guess one of the net.* is causing the shortwrite and halting everything after it


If you like my work please Donate to me. Thanks

My Projects / Applications:
Picture Password Lockscreen for Android
Status Bar Volume Panel Plus for ICS+ devices
TaskUI Tasks Control Overlay for HC+ devices

THREAD CLOSED
Subscribe
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes