yashsingh1/xdaforums huggingface dataset:
[Droid Incredible Android Development] ferotakis:
Ok now I must explayn you all something simple to stop those there who biching and give the happyness to those who happy with this mod.

For 50% of you this work but for 50% - not. Why?

There is why:

For those who notice batt + the reason is on your kernel , your dev for some reason make your kernels in somehow bad way and when you apply those changes you force your divace work better and you notice + of batt juice. That's it - simple as hell.

For those who not notice +batt it bicoz your devs make kernel for your phone perfect and applyng this not give you +juice . That's it ;)

And for those who notice bad pefr -batt and etc mean this values its high or conflict whit something your dev integrate into your kernel and etc.

In the end that's it ,no need bad feelings ,spams , show us how big engeneer you are , how google must be Boogle or Woogle , trow smartphone to the wall and go to buy Nokia 1100 for montly charge the batt and etc and etc.

Like my mom say :

Change your words change your World ;)

Hawe nice day :)
[Droid Incredible Android Development] Tof37:
@PureMotive

Thanks for these tweaks ...

Which permissions needs init.d ?

There are set to "set_perm_recursive 0 0 0777 0777" is it good for your script ?

Thanks a lot
[Droid Incredible Android Development] BarackMitzvah:
"Sysctl -p" runs it

"Syscyl -a" or "sysctl -a | grep vm" checks it
[Droid Incredible Android Development] losta:
Thanks for your response :) after running those command, here is what i get for the output, is this okay? Thanks in advance
[Droid Incredible Android Development] mohsinraza:
I'm really sad that I flashed this MOD. it's been over 24 hours I've flashed this and from that time my phone takes 15 minutes to charge 1% battery. The battery drain is very fast. My phone doesn't charge fully even after 6,7 hours plugging the phone in. I've reflashed the rom with full wipe. Changed my kernel. I've done evrything I could do to sort out this problem but I failed...

Please tell me what should I do? My battery keeps on going down even if I do texting while charging the phone. Even when the phone is turned off it takes so much time to charge. HELP...!!!!

I'm writing while the phone is plugged in and it was 7% and now its 5% battery left. Help me asap.. plz.. I need my phone... How to cancel the effect of this zip file?

I've provided you with maximum details. I'm not near my computer for next 20 days. Not even in a wifi zone... Help me... Suggest me something I can do from phone only...

Sent from my HTC Desire
[Droid Incredible Android Development] cmlusco:
If you believe this mod is causing the issue, then go to /system/etc and delete sysctl.conf, then go to /system/etc/init.d, and delete the sysctl file and reboot. Problem should be fixed if its whats causing the issue.
[Droid Incredible Android Development] tiny4579:
If you've wiped system and flashed the rom again without the mod, the mod is definitely gone. However, it wouldn't be causing that excessive battery drain anyway. There's no way a file on the phone would affect it when it's off. It sounds to me like a hardware issue somewhere. Try a new charger or battery. Sorry I can't be of much help myself but most of what you say sounds hardware related and nothing to do with the mod.
[Droid Incredible Android Development] tacosrdelicioso:
So how can I tell if this is running for sure....other than battery

Edit:Got it. Did the terminal thing. I got a bunch of stuff from the file
[Droid Incredible Android Development] prototype7:
Yep, that looks good.
[Droid Incredible Android Development] MidnightDevil:
Well.. flashed yesterday using the zip.. I got the same output as losta... so I guess it's running and so far it's fine :)

The first thing I noticed is that takes a while longer to drop the percentage... but on heavy tasks such as using wifi or 3g can't really tell the diference so far... but I think i'm getting something out of this.. will know for sure in a couple of days :)

cheers for the effort.

HTC Desire
[Droid Incredible Android Development] graymonkey44:
I would like to say that flashing the zip isn't a good idea, because it makes a folder called 10sysctl and every ROM I've flashed this on has 01sysctl; so it creates two different folders, which I think creates an issue. Also, I recommend the one without the semicolons too because I had issues with it on my Incredible.

Thanks for your contributions to the community PureMotive--ignore the haters.
[Droid Incredible Android Development] Hero:
I'll check the .zip again and correct the issues. Thanks!
[Droid Incredible Android Development] gecata:
fs.file-max= ???

What is the correct value. It is set twice!

fs.file-max=165164 or fs.file-max=65535
[Droid Incredible Android Development] Hero:
Depends on how much RAM your device has. Do you know the number?
[Droid Incredible Android Development] tacosrdelicioso:
My galaxy nexus has 1gb so...what value do I change? I just copied it and ran it...idk...maybe better but would compensating for my ram make more battery life?

Anyone?
[Droid Incredible Android Development] Hero:
For you, I'd say something around 64000 would be good, so (fs.file-max=65536). This tweak just sets the number of file-handles your kernel will allocate. Increasing the number allows the kernel to allocate more file-handles so you don't see error messages related to something like "extra files can't be opened because the maximum number of open files has been reached" However, a larger number uses more RAM. This is just a performance tweak to compensate for the battery increase that is primarily adjusted with stuff like vfs_cache_pressure, etc
[Droid Incredible Android Development] :
Oh dear. The above is from your first post.

And here are the facts:

A kernel panic occurs when something goes horribly wrong within the kernel, which OOM doesn't necessarily cause unless vm.panic_on_oom is set to 1. A kernel panic can be caused by various things.

The kernel.panic tunable sets a timeout for an automatic reboot after a panic. It does *not* stop the kernel from panicking! If the kernel is going to panic, it *will* panic, there is nothing you can do to stop it as it is a last resort when there is an unrecoverable error.

So, with your tweak, if the kernel panics due to a hardware problem or a bug, the device will not reboot automatically and would simply be stuck there, frozen solid until the user pulls the battery. How unbelievably useless that is for a mobile telephone! How on *earth* could that be a performance improvement?

Also, seeing as you mention OOM, it happens that OOM is highly unlikely to be invoked on Android as Android has it's own low memory killer driver which kicks in to manage memory usage long before the OOM killer does. I have never seen OOM invoked on Android. OOM is like using a sledgehammer to crack a nut, which is why the Android team wrote their own, more finely grained implementation.

Seriously though, a bit of advice, learn about the tweaks you are doing, the advantages and drawbacks and if it is actually any use at all preferably *before* making yourself 'popular' by releasing it on XDA with a bold claim in the title, otherwise someone like me, *will* come along and debunk the myth that it does anything useful...

I've said my piece now and I won't reply again, because it's become old rather quickly and further replies on my part would be foolish and counter productive, as this one probably is, but what the hell.

The users can make the choice between taking the advice of someone who knows about kernels and maintains several, or someone who has put a bunch of tweaks together in a script and doesn't understand most of them.

Good evening.
[Droid Incredible Android Development] tacosrdelicioso:
Hey uh that's nice. But nobody really cares sorry. This tweak gets results for lots of folks...stop flaming the dev who still should get a lot of credit....wow...a$$h***
[Droid Incredible Android Development] s197:
I don't see it as flaming, he's refuting his claims with well reasoned arguments. Not everyone wishes to follow like blind sheep, I for one am glad to hear an opposing argument when it is well presented as his.
[Droid Incredible Android Development] tacosrdelicioso:
I guess. Great mod still
[Droid Incredible Android Development] KennyG123:
Let's remember that the OP is trying to help users. As every phone is different, it might not help all. But let's keep it kind and friendly and offer constructive criticisms at most, help at best. Thanks for making XDA the best!

FNM
[Droid Incredible Android Development] That Baker Guy:
peace* FTFY
[Droid Incredible Android Development] Gfrt94yn:
interesting find... i installed the zip provided, except i think now its out of date ( i don't think i was working anyway...) now whenever i flash the updated zip (as of may 3) and i get the abort (0) bad error or whatever, which probably meant a corrupted file. Anyway I used terminal emulator to check and make sure everything stuck and i believe it did, but my phone was messing up so i performed a CLEAN wipe and got it all started back again. This time, however, I manually pushed the script (overwrite sysctl.conf and there was already a 10sysctl file in the init.d directory of /system/ect). Except the strange part is now when i manually try to enable or even just check to see if everything stuck, terminal doesn't even recognize the commands:

"sysctl -p" or "sysctl -a| grep vm" anymore... any ideas on how to fix?

Oh also i'm on a SGS2 Skyrocket running seans ICS (leaked)
[Droid Incredible Android Development] cmlusco:
Since this mod came out, and actually way before, i have been doing some heavy research on sysctl tweaking. In my research and testing i have found that messing with most of these settings only cause issues and performance drops. I have found a combination of settings which seem to work best for me. The phone seems snappier and battery life slightly better. I have created a flashable zip with these settings if anyone else would like to try them. I make no guarantees or inflated claims, just that this is what works best for me running a mostly stock rom on the incredible with the latest gingertiny kernel and also v6 supercharger. This flashable should also fix the issue some are having with the sysctl -p and sysctl grep commands not working thru the terminal emulator, or activating sysctl.

http://dinc.does-it.net/Mods/sysctl_tweak_05072012_001.zip
[Droid Incredible Android Development] pk2018:
in the sysctl_conf.zip from 1 floor

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

?????
[Droid Incredible Android Development] Hero:
Use kernel.panic=0
[Droid Incredible Android Development] tiny4579:
Fyi

Kernel.panic=0 will prevent a reboot on a kernel panic instead it will freeze and a battery pull is needed to recover it. The default on Android is 5. I don't like this setting of 0 mainly as it will make diagnosing a kernel reboot more difficult as it won't produce a reboot and last_kmsg.

I've only looked into this one setting so I won't comment on anything else.

It does not prevent a kernel panic at all. Kernel.panic=0 is the default on Linux but its not really suited for mobile devices.
[Droid Incredible Android Development] muellersmattes:
Wow, it's always great to see how people can use full quotes just to write some lame fck u under posts they don't like. Congrats Mr Baker Guy, you are the greatest ten year old in this forum.
[Droid Incredible Android Development] xdadevelopers-user:
A new record for me. This is with the stock battery no less.

-xdadevelopers-user
[Droid Incredible Android Development] coutts99:
Some of us like to actually use our phones though!
[Droid Incredible Android Development] prototype7:
Anyone know why I keep getting a short write error no matter what I do? Tried everything I can think of and it still won't work.
[Droid Incredible Android Development] zeppelinrox:
SuperCharger only does a handful of sysctl tweaks.

Kick Ass Kernelizer, however, seems to be a heavy influence in this mod.

Many are the same values and in the same order and of course all those ; at the end of each line - which is common in init.d boot scripts - not sysctl.conf files.

Anyway these 3 values probably factor into the apps suddenly closing:

vm.dirty_ratio=90;

vm.dirty_background_ratio=80;

vm.vfs_cache_pressure=10;

Latest KAK uses:

sysctl -e -w vm.dirty_ratio=95;

sysctl -e -w vm.dirty_background_ratio=60;

sysctl -e -w vm.vfs_cache_pressure=25;

That may fix it
[Droid Incredible Android Development] xdadevelopers-user:
Yeah. It's truly amazing how long the battery lasts when everything is turned off. I'd bet I could get over a month if I just removed the battery and set it on the desk (which as you alluded to is practically what I did).

Still, it's kinda fun to to see the phone (which I don't use) actually record such a battery life.

-xdadevelopers-user
[Droid Incredible Android Development] DsturbD:
but is useless in this thread, provides no real world example, im sure if i turned everything off on my phone and never touched it the battery would last forever too
[Droid Incredible Android Development] downset00:
Have you tried looking to see if you have two sysctl files? I had 03sysctl on MIUI already and when I flashed the zip it added 10sysctl. I deleted the first one and changed the other to 03sysctl. When I ran sysctl -p it ran fine with no short write error.
[Droid Incredible Android Development] Tragicwayz:
Any one knows if this will soon be available for the Evo3d
[Droid Incredible Android Development] robertaccess:
It;s already working on EVO 3d. Just install it
[Droid Incredible Android Development] heyjoe66:
your phone is playing with itself? what are all those wakeups?

you really have to investigate them
[Droid Incredible Android Development] prototype7:
I did, actually. Deleted the first one but didn't think of renaming the new one. Still not working though...

Edit: figured it out, waiting until tomorrow to see how it works.
[Droid Incredible Android Development] TokedUp:
So after using this for a few days I dont think its making any difference on my battery. I flashed the zip in the OP.
[Droid Incredible Android Development] snow:
Hi! Thank you for your MOD. :) I'm using it on Galaxy Mini and I saw a really good improvement :D I tried to change some settings and after a day my battery drained just ~20% :)

Thanks a lot!
[Droid Incredible Android Development] xport:
Where/how did you get that battery percentage in the top right? Any way to accomplish this in CM9 for the Incredible?
[Droid Incredible Android Development] Macgamer:
Thi should work with any cm7 rom on other devices once i get a chance to set up shop i will post if this works on a foreign device these are linux codes so it sholdnt be a problem. A side note would be i have seen this code somwhere lol i cant remember but it wasnt in my conf. File becuz mines is empty but i will be looking forward this
[Droid Incredible Android Development] omgitswes:
Just flashed it. Ran into zero problems using MIUI GB rom.

It dropped 3% within the first few minutes but for some reason my phone has been doing that for over a year now. Will comment on how it lasts throughout the day once I get home.

No matter what happens, thanks for this. The dev community is the main reason why I'm in no hurry to get a new phone just yet.
[Droid Incredible Android Development] prototype7:
Yeah, mine always jumps down to 95% really fast then goes normally.
[Droid Incredible Android Development] cmlusco:
This is good info on why your guys battery drops after unplugging. http://xdaforums.com/showthread.php?t=871051
[Droid Incredible Android Development] OnceAMatrixMan:
Yes but some of us use our phones. I

;-)
[Droid Incredible Android Development] hgberry:
i push the file manually, it's working now i get about 40% battery after 1 day use

before it only left 20 %. Thank You so much.

SGNote,

ROM: alpha never dies xxla4

kernel: abyss 4.2
[Droid Incredible Android Development] asdot:
+1

we bought the phones to be smart and use it daily :D

Sent from MARVEL
[Droid Incredible Android Development] jfrock25:
Anyone Try this on the HTC One X?
[Droid Incredible Android Development] SANCAH:
Is the battery not good on HTC One X in real life use?
[Droid Incredible Android Development] Tragicwayz:
Can I please have some feedback from anyone who has tried this on the Evo3d
[Droid Incredible Android Development] mushat3k:
Which incredible rom has the best battery life with or without this mod? I have an extra incredible that I use as an mp3 player in my truck and it causes ground noise if I charge it while playing music. I don't drive that often so it probably gets an hour tops of play per day, otherwise it just idles. It looks like it drops about 30% per day running cm7. What's my best option for a phone that mostly idles?
[Droid Incredible Android Development] cmlusco:
Why not just buy a cigarette to usb adapter and plug it in. Its hard to say which roms get the best battery life, its all in how you tweak it and slim it down. Kernels are a major factors in being able to save battery, with undervolting and underclocking. Best bet, find a senseless rom and then start deleting stuff you dont need and is not system dependent. If your not using it as a phone, you can turn off the cellular radio.
[Droid Incredible Android Development] TokedUp:
Ice cream senseless.
[Droid Incredible Android Development] Ahmed hamouda:
from my observations on samsung galaxy ace GT-S5830

After searching in xda now i am sure that mod wont work on any stock based rom. will work only on cm7, cm9, aokp, Miui & Lewa =)

to be sure open zip file of any rom of those and you will find the 2 files named 01sysctl in system/etc/init.d and sysctl.conf in system/etc.

the easiest way to apply the mod copy sysctl.conf file from the original thread Here and replace it with the sysctl.conf in system/etc of your rom reboot and enjoy :)

NOTE: Dont replace 01sysctl in system/etc/init.d its already there and dont use zip patches only use updated script in the original thread Here
[Droid Incredible Android Development] musical_chairs:
A good companion to this mod is the app Scol Free. The interface is a little kludgy, and it can't save your settings for boot, but it does let you see what sysctl options are supported by your kernel. It would also be useful if you want to figure out if the mod will work for your phone.

After you open the app, you have to click 'Load sysctl list'. The top button gives you a dropdown menu with all available sysctl options. Select the one you want to check out, then click 'Refresh' to see the current setting for that value. You can enter a new value and hit 'Change' to apply it. If you want your new setting to stick after a reboot, you'll need to apply PureMotive's battery mod and edit the sysctl.conf file to reflect your changes.

Now if somebody could combine this app and Pure's mod, (I'm seeing something kind of like IncrediControl here), we would really have something useful!
[Droid Incredible Android Development] Zerox8610:
So from what I noticed after an install on CM7.1 stable

It charged my battery almost instantly but it drained much faster as well.

Using incredikernel with Smartass V2
[Droid Incredible Android Development] Einhery:
doubled strings in downloaded for cwm file:

vm.oom_kill_allocating_task=1

vm.oom_kill_allocating_task=0

and

kernel.panic=5

kernel.panic=0

Are all this string necessary? i think no. But what strings are true?
[Droid Incredible Android Development] tiny4579:
Use kernel.panic=5 please. It allows the phone to reboot on a panic instead of just freeze. Not sure about which VM line to use but the last line listed will take effect in a duplicate scenario.
[Droid Incredible Android Development] octavioromo:
put it in airplane mode, that should help idle a lot
[Droid Incredible Android Development] nfiniti9:
Just run a ground from the cigarette lighter to the deck.
[Droid Incredible Android Development] gratian556:
just to report: mod works fine on Captivate w/ ICS ROM, battery life improved based on personal observation (45% left after 12-14 hrs moderate use)
[Droid Incredible Android Development] werdna87:
Would this work with sense 4 on the rezound? It needs every bit of battery life it can get...
[Droid Incredible Android Development] Einhery:
and this strings are doubled

fs.lease-break-time=10

fs.file-max=65536

fs.lease-break-time=10

fs.file-max=165164

please, check this. all another is very good )
[Droid Incredible Android Development] ankur26420:
is this works on galaxy mini???

i'm using squadzone's rom cyanmobile..it have very less battery backup..

please help me...
[Droid Incredible Android Development] snow:
Try my modded patch for Galaxy Mini.

Download zip file attached.
[Droid Incredible Android Development] daigia:
I use free version of Juice Defender: Enable with aggressive mode and it does the rest. My cell phone lasts much longer.
[Droid Incredible Android Development] karun11:
Anyone tried this on Xperia X8. Am on PrimeHD and the zip doesnt work for me :/
[Droid Incredible Android Development] daigia:
Another App can help improve battery life is "y5". It remembers your WIFIs and turns off when you are far away from your access points.
[Droid Incredible Android Development] Gargamel1:
I don't think this is right. I am running incredikernel ics hwa beta with CM9 unofficial by dark.hd Any help would be greatly appreciated. I followed the directions in the op and used the one without semi colons and the one with to the same results.
[Droid Incredible Android Development] cmlusco:
Type in su first to get root permission.
[Droid Incredible Android Development] Gargamel1:
ok so I did the su to gain root permissions. Does this mean that it worked? what is the error with ipv4 and ipv6 i know what they are but why am I getting an error and should I be concerned about it? I've searched this thread and have seen varying responses to that. Also do I have to do this every time or should I edit my 10sysctl in init.d to include the su command? if so how would I go about doing that. I'm sorry for the flood of questions.
[Droid Incredible Android Development] Gargamel1:
Have I killed this thread or just stumped everyone? ; -)
[Droid Incredible Android Development] cmlusco:
Everything is working except the two net tweaks. Not sure why but its not a big deal.
[Droid Incredible Android Development] losta:
If im not mistaken, the value for vm.dirty background shouldnt it suppose to be 90, instead of 20? If you check the value on the sysctl.conf. Just read a few pages back, you should find an example the result from the terminal which showing the script is "sticking" and working as it should. But then again im just a noob :D
[Droid Incredible Android Development] Gargamel1:
Wow I wasn't expecting a reply so soon. You guys are the best thanks for all your help. Just fyi I've been running it for a couple days now and while the screen is off it has great stand by, but when the screen is on it drops quite rapidly. I'm looking into tweaking that next. Any suggestions would be greatly appreciated.