FORUMS

Galaxy S6 Weekly Shooting Challenge

Over in our forums this weekend, XDA Forum member DevonSloan has started a thread for talented … more

Which Features from Apple Watch Do You Think Android Wear Will Copy?

The Apple Watch and Android Wear are both growing platforms. Now … more

XDA Picks: Best Apps of the Week (May 15 – 22)

Apps are at the front and center of any smartphone experience, and with over a … more

Android 5.1 for the Nvidia Shield Tablet is Out!

Nvidia is quite good at delivering updates in a timely fashion. The producer of famous … more
Thread Closed Subscribe to Thread Email Thread

[MOD] Improve your battery life

29th April 2012, 08:21 PM |#91  
Senior Member
Thanks Meter: 496
 
More
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.
 
 
29th April 2012, 08:40 PM |#92  
Hero's Avatar
OP Recognized Developer
West Hollywood
Thanks Meter: 4,952
 
Donate to Me
More
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.
29th April 2012, 09:16 PM |#93  
orfius christ's Avatar
Senior Member
Thanks Meter: 13
 
More
So will the .zip work at all or is it like a 50/50 of actually helping?

Sent from my ADR6300 using XDA
29th April 2012, 10:27 PM |#94  
McDastardly's Avatar
Senior Member
Fargo
Thanks Meter: 27
 
More
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
29th April 2012, 10:30 PM |#95  
Hero's Avatar
OP Recognized Developer
West Hollywood
Thanks Meter: 4,952
 
Donate to Me
More
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: [ View ]
29th April 2012, 11:16 PM |#96  
DroidOnRoids's Avatar
Senior Member
Flag Baltimore, MD
Thanks Meter: 389
 
More
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?
Last edited by DroidOnRoids; 30th April 2012 at 12:04 AM.
30th April 2012, 12:04 AM |#97  
Member
Thanks Meter: 5
 
More
Quote:
Originally Posted by ferotakis

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
30th April 2012, 12:46 AM |#98  
superbeak's Avatar
Senior Member
Flag Ghent
Thanks Meter: 53
 
More
PureMotive, you are now my favorite dev.

Sent from my Incredible using xda and running anthem 3.3
The Following User Says Thank You to superbeak For This Useful Post: [ View ]
30th April 2012, 02:48 AM |#99  
Senior Member
Flag New York
Thanks Meter: 22
 
More
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.
30th April 2012, 02:59 AM |#100  
kevdliu's Avatar
Recognized Developer
Thanks Meter: 1,474
 
Donate to Me
More
Quote:
Originally Posted by nyonya

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
Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes