yashsingh1/xdaforums huggingface dataset:
[OnePlus 2 Android Development] magnamentis:
Idle Drain Night Mode Testrun

this is an idle drain which i was always talking about 2% in 10h over night

the purpose of the post is to help people to forget the fairytail that kernels are suited to save battery (they can kill bur save only little)

probably this attempt will fail again but so what, these stats are achieved with a sheer performance oriented profile that was that one

with 130k in antutu, extremely snappy, overclocked to max, no power savers active, thermal config +10C across the board, touchboost on etc.

the purpose of this test configuration is to find out how apps and the sysetem behave when they should do NOTHING, do they obey or not LOL

this is most important to find out because all other drains except radio behaviour are based on that behaviour while radios are easy to manage, avoid LTE when not needed and choose 2G while screen is off. not only do 2G and 3G use significantly less power by default, but the coverage and hence signal strength is extremely much better in most places except city centers and right around the corner of cell towers which means, double benefit, better signal = less power consumption and lesser frequencies = less power consumptions

idle drain in day mode with radios on is about double that and SOT makes little sense to compare but average is 7h. just that i rarely have that thing for more than a few hours off the charger anyways. i'm a charger addict LOL, chargers everywhere

since i'm obviously the only one who obeyed the small image request i allow myself to post at least one of them BIG because it's so nice haha....

EDIT: according to this stats i will now go and hybernate the playstore app on screen off and disable it in night mode because for night mode it's too high up in the list IMO. To compare i added nexus 5 stats to show what's possible after many years of work to get the stuff quite when it is expected to be and it shows that the setup and results are, albeit a bit better (quadcore less powerfull cpu) they look very similar. with this i want to document that battery management is not device and or rom specific but user specific. BTW the N5 is running Stock Google + Cataclysm Mod and consider how small that battery is, 2400mA only so if you look at the mA usage it's insanely low and the percentage values even more so.

all my devices are running Xposed Framework and SSU 2.68

[IMG="d"]http://xdaforums.com/attachment.php?attachmentid=3722524&stc=1&d=1460966561[/IMG]
[OnePlus 2 Android Development] PeterImmel:
how?
[OnePlus 2 Android Development] mido25:
That deep sleep ?

Sent from my Amazing OnePlus 2

---------- Post added at 01:54 PM ---------- Previous post was at 01:53 PM ----------

Tasker ftw

State > display Screen. Off

Then create the event.

net>mobile data >2g/3g > set to 2g

Then exit task would be to enable 3G.

Sent from my Amazing OnePlus 2
[OnePlus 2 Android Development] magnamentis:
for dual sim devices gives is a bit of a headache i forgot to mention, not even system profiles would work to switch radio mode because they're mostly made for mono-sim devices.

if you are using your device as media device i recommend to use 3G and toggle LTE only when needed in quicktiles manually.

the only way to get this done at all is to directly access the appropriate radio switcher in settings via tasker script. since i don't use this device as a media device i have that not active, i'm always on 2G which i now is not a solution for all those who use cell data on this device. My media device is the Nexus 6 and there i use smart radio by[MENTION=333400]atlantis[/MENTION] in cataclysm mod, same on nexus 5. for devices without that feature built in the rom/mod i use tasker for example on both galaxy notes and the OPO
[OnePlus 2 Android Development] magnamentis:
sometimes a very bad experience is necessary to get ideas.

as it happens Sygic navigation which is a very good nav-app tended to keep GPS on even while hybernated with greenify and even while

GPS was set to off in night mode it still attempted to switch it on.

this gave me the idea to freeze the app entirely while not needed and it worked. night schedule or screen off = freeze app, screen on or day profile active = defrost app.

that worked absolutely great and the i started to use that for other apps that persistently refused to shut up during idle.

below find i screenshot with all apps i freeze and defrost depending on device state. there is only one condition that has to be considered.

you can not have those apps as icons on desktop, they would disappear and not reappear automatically, but they do in app drawer. so you either need a side bar app where they stay active or you need a launcher where you can hide apps so that only needed apps show in app drawer and the app drawer can be used as a secondary desktop. i attached a screenshots for that as well, works well with Nova Launcher

Below images are from Nexus 6 because it's my media device with the most examples, just forget the NFC part :)

Smart Radio you find in Gravity Box, i don't use it because don't need it and only use GB when absolutely needed. Be very careful if you use it because it interferes with rom features, especially on screen navbar, if you don't use on screen navbar and deactivate all unused features in GB you should be good to go with smart radio alone. perhaps there is a standalone module, you can check on that, didn't look it up because i don't need it.

just be careful with anything radio switching, you can end up with huge UI lags and/or black screen. so make nandroids before, just in case.

tweaking radios on this device is a P.I.A. but it's possilbe, just a real hassle i must say which is why i froze it as long as i use the device as a voice phone and messaging device only :)
[OnePlus 2 Android Development] shantam3108:
Hi Mangna I found an app in xposed called smart network but it drains battery.. Bye which app are you using in the screenshot for smart radio? Is it gb? ( asking because my gravity box settings are bit different)
[OnePlus 2 Android Development] magnamentis:
no that's cataclysm mod and only works on nexus devices. gravity box implementation is more or less based on this one but has to be used with

care as mentioned

i tried out that module and it's not playing well with dual sim devices as mentioned. i did not mention the module by name but it was one of the solutions i was talking about that cause issues on duel sim devices.

tasker via radio toggle is the only solution that is working as expected. i had it up and skipped it due lack of need. it was quite demanding to be setup at the time and i should have kept the script, just didn't expect to need it because i never shall use anymore a device weith less than 5.7" display as media device. i currently use the N6 for that and that extras size really makes a difference, can't go back without urgency LOL

next in mind is the mate 8, just observing development for the device, not there yet.
[OnePlus 2 Android Development] return.of.octobot:
Just a thought, but Intelli-Plug is a pretty deprecated driver in terms of big.LITTLE compatibility. It's not my design choice to make but might I recommend ditching it all together in favor of something like cpuquiet? Or just dropping it period, ThunderPlug really is a no-brainer by comparison.
[OnePlus 2 Android Development] knpk13:
What's with all the random numbers? [MENTION=5372360]magnamentis[/MENTION] thanks for sharing your setup/other info, truly helpful posts
[OnePlus 2 Android Development] nicesoni_ash:
Not to brag but amazing battery results. 8+ hours of SOT. Profile attached.

Sent from my "i9300/1+2" powered by Carbon/Temasek

Fueled by 7000mAh ZeroLemon Battery
[OnePlus 2 Android Development] magnamentis:
any proof is very welcome hehe.. just what i'm telling for long that it's possible good to see others do the same :)
[OnePlus 2 Android Development] xdvs23:
Running v3.3 on Beanstalk 6.14, no problems at all, using blu_active governor on big and bioshock on little and no lags at all. Battery life is not good though. I have overclocked and underclocked both clusters and have no problems with that, it is VERY stable, better said, 99%.And the temperature is even lower when overclocked than without overclocking!! No issues with the kernel at this point, but Kernel Adiutor could be maybe improved, also forcing english language is not working. Greetz!
[OnePlus 2 Android Development] Nick334:
Could you please share your setup and settings?? I'm gonna copy all of it... :)

I managed to get a decent stand by time following a guide but the SOT I get is about 2,5-3 hours with browsing on chrome and some basic communication.. You can see on the screenshot...
[OnePlus 2 Android Development] nicesoni_ash:
I added the profile zip in my original post, you can flash it but it won't give u my results for sure as that's not only coz of kernel settings but rom settings / privacy guard settings / greenify / amplifier and other stuff.

Sent from my "i9300/1+2" powered by Carbon/Temasek

Fueled by 7000mAh ZeroLemon Battery
[OnePlus 2 Android Development] magnamentis:
good man ;) very good that you mention that, this is the way how we can have people good battery lives, a pleasure indeed.
[OnePlus 2 Android Development] nicesoni_ash:
Sure. It's better to know that battery saving requires too many tweaks and at the same time no need to affect performance too. [emoji4]

Sent from my "i9300/1+2" powered by Carbon/Temasek

Fueled by 7000mAh ZeroLemon Battery
[OnePlus 2 Android Development] droidriz:
whih temasek rom build number?

also the theme name
[OnePlus 2 Android Development] nicesoni_ash:
I am on rr right now and the theme is

https://play.google.com/store/apps/details?id=com.bulletproof136.material.ColorsDark

Navigation is from flux theme.

Sent from my "i9300/1+2" powered by Carbon/Temasek

Fueled by 7000mAh ZeroLemon Battery
[OnePlus 2 Android Development] knpk13:
Ive managed to get good idle drain, but my SOT fluctuates wildly from 2 to 6 hours. Battery monitoring apps go haywire showing 20% drain per hour sometimes on light to medium usage. How can I increase SOT? What factors affect SOT?
[OnePlus 2 Android Development] urgali:
Are you using adaptive brightness or fixed one? ..afaik, adaptive uses more battery
[OnePlus 2 Android Development] nicesoni_ash:
Too many actually. Just try to reduce sync, background apps, privacy guard to disable few keep awake (I disabled play services), reduced power through kernel configuration, if possible under clock etc etc.

Sent from my "i9300/1+2" powered by Carbon/Temasek

Fueled by 7000mAh ZeroLemon Battery
[OnePlus 2 Android Development] magnamentis:
a bit more info would be nice, first thing that comes to my mind is cell signal combined with used bands, second thought goes to social media apps but sheer guesswork without at least i bit of a handle like a few screenshots of stats ;)
[OnePlus 2 Android Development] knpk13:
Yeah. I just flashed some stuff, so will upload stats as soon as I get them. Although, always on airplane mode, no sim, only wifi for now. Only social media app is XDA labs.

---------- Post added at 10:58 AM ---------- Previous post was at 10:56 AM ----------

What are your sync settings? Won't disabling play services break a lot of stuff? Is there some guide to safe underclocking/undervolting I could use?(or does it vary a lot by device)
[OnePlus 2 Android Development] magnamentis:
no sim and airplane mode does not protect from battery drain, at times it can have the opposite effect, some apps get into a "sync loop" means they attempt to acquire data access and to their job but cannot succeed. this is whay it's so important to freeze them at least on screen of, of course not all, just those really not neede when the display is off. some apps don't even hybernate properly with greenify if another app tries to trigger them.

this can be very interconnected and has to be monitored carefully.

just as an example, apps that should never be limited is music or media apps that are used with disblay off while navigation apps are consequently frozen in airplane mode on my device. i use tasker for all that, goes like:

if airplane mode on = disable "app name"

if airplane mode off = enable "app name"

those are not the exact commands because there are too many profiles an tasks where the script can be embedded, depending on the setup

those are just examples to explain the principle.

further those cannot be apps that are on desktop with icons, i either have them on managed app drawers ( primary and secondary tab )

or in a sidebar where they survive the freeze, hence will be accessible after re-enabling.

this does not make sense for all apps, again, things have to be chosen very carefully, some apps can be:

- greenified

others can be:

- amplified

again others can be:

- frozen and re-enabled

and most app are held in check via built in doze as well as keep quiet once they cannot access the web.

then some funcitons like location services and location mode as well as radio bands can be switched between, for example:

- battery saving, off, or high accuracy location

- 2G, 3G, LTE

- Auto Sync On/Off
[OnePlus 2 Android Development] Nick334:
Thanks for your profile, but I can't find it in the settings to apply it.. I flashed and also extracted it manually and placed it in the correct folder but still nothing.. Do the settings apply automatically, is it not needed to be applied in the profile section??

Also flashed another profile(intellioptimized) to check if it's working and that worked.
[OnePlus 2 Android Development] nicesoni_ash:
Found the issue, uploaded the correct zip.

Sent from my "i9300/1+2" powered by Carbon/Temasek

Fueled by 7000mAh ZeroLemon Battery
[OnePlus 2 Android Development] chintu1234:
Does your kernel support f2fs system??

I have converted my data and cache partition to f2fs and i'm on stock kernel, i have also made a thread about the said converstion, so can anyone confirm does this rom support f2fs since i couldnt find anything related to f2fs using search.
[OnePlus 2 Android Development] nexus_vl:
You can't make exactly the same post on different threads!

Read forum rules!
[OnePlus 2 Android Development] magnamentis:
that's generally correct but i'm not so sure if that kind of post is meant with that rule, i mean if you want to try a piece of software and ask in appropriate threads if your specific criteria are met that should be ok, even though one could change 2 or 3 words for the sake of it but then that's a bit of an overkill, it's like visiting several shops to ask if they provide a specific service or sell a specific product, seems somehow legit ;)

if you want you can ask in the mods to answer the question, that above is just my personal opinion to consider.
[OnePlus 2 Android Development] chintu1234:
Lol, It isnt a spam but a legitimate question. Idk how anyone else can ask the same question to different custom kernel maintainers differently. Lol should i like ask one person in all UPPER case and another with all lower case?
[OnePlus 2 Android Development] lasset:
Hi

Can you please share the correct zip file. Thanks
[OnePlus 2 Android Development] magnamentis:
you're quoting a post from 21st of march so i want to make sure that we understand you correctly, you are looking for the thermal-engine.conf file

or the kernel profiles file?

because:

you don't need a zip file, you can place the thermal-engine.conf file manually into /system/etc and give it 0644 permission

in the mean time the termal-engine.conf file is obsolete because the kernel comes with those settings or at least very close to them by default.

should you be looking for the profiles.json file, profiles from march or long since not compatible anymore, you'd have to look for a more recent setup that takes into account the new kernel parameters and features and as well you don't need a zip file, you can place them manually into /data/data/com.grarak.kerneladjutor and give 0644 permission as well.

both those files in that post form march 21st were made by me hence i have them on stock LOL
[OnePlus 2 Android Development] lasset:
Hallon

Thanks for your complete answer. I'll try.
[OnePlus 2 Android Development] nexus_vl:
I don't make up the rules, maybe you should!

Anyway, try to read a bit! It helps you now.

There is a search button somewhere...
[OnePlus 2 Android Development] chintu1234:
Maybe you should read what i posted, i specifically said i dint get any info with search.

And I really did search for f2fs but there is no info of it on OPT forums except for boeflla kernel where he has posted its an experimental feature so he wont support it.

There are no info about it neither in yarpin's kernel nor in benschold's kernel.

So tell me how should i ask 2 different devs about f2fs differently??
[OnePlus 2 Android Development] magnamentis:
if you find no information about f2fs for OP2 then forget it. you could read about f2fs in general, for example whether it's worth it or not and i can tell it's NOT worth the hassle and considering how much of a price we all pay to read about issues and so on and comparing the benefit, if any, with the necessary efforts and repeating trouble, just don't use it. while that was a personal opinion, the fact that close to nobody is using it on the OP2 and noone can provide proper tutorials, troubleshooting procedures or any other kind of support for it says "hands off"

what remains is that you go and try and make it work and contribute. last but not least if a kernel does not officially support it you can consider it OT.
[OnePlus 2 Android Development] chintu1234:
F2fs sure is experimental but its benefits outweigh the negatives. And i have read about it in other threads and in general android section of XDA just wanted to make sure was supported on OPT before actually recommending people to try custom kernels with f2fs and get blamed for bricking their devices.

I was just trying to help the community because i found f2fs to improve my lg g2's life as i was close to selling it off(instead i lost it during a vacation lol).

F2fs does work on yarpin's i just confirmed that.
[OnePlus 2 Android Development] magnamentis:
read what experienced users and developers have to say on the matter, it's a buzz. the benefit in theory is there, in real life it's only there under specific conditions and for specific tasks and definitely NOT worth the hassle. what do you think why les and less people support it or want to discuss it. why do you think that not all OEM jumped on the bandwagon? it's not experimental a all, it has been around for years and not one single major player adopted it. so you, not meaning it bad but "noob" and perhaps some braging friends know better than the entire industry?

don't go fur buzz but for the real thing, you'll be much better off once setting the right priorities like proper troubleshooting and the likes. a lot of this is a bit philosophical i admit and subject to personal preference, hence in general it's my opinion, as to f2fs it's a fact when doing the math. even the discussion we have here, even though i like to exchange thoughts, will lead nowhere and eventually be a waste, except if i could make you re-consider. after all, as i said before, if it's that important for you and you believe in the benefit, then be the one who brings it to the OP2 ;)
[OnePlus 2 Android Development] chintu1234:
I did actually learn from [MENTION=4752917]Androguide.fr[/MENTION] thread and he is one of the top recognized people in XDA so no its not my "noob" or bragging friends that sees the benefit of f2fs but many other devs too but they don't put f2fs as default as conversion if performed wrong or something goes wrong then it will mess up your phone.

And its from experience too that f2fs improves I/O performance.

F2fs was made specifically for flash based systems.

Anyways this conversion is for people who know what they are getting into.
[OnePlus 2 Android Development] magnamentis:
did you ever hear a mercedes driver tell bmw is best?

never ask those who own or use something, ask those how could if they wanted and ask them why they don't, those are the people who

were thinking and weigh benefit for downsides. people tend to glorify whatever they own, they currently use or they invested in it.

further i stated that the benefit exists in theory but then once the base speed of hardware came to a level (currrent level) where software impact is in milliseconds for daily use that is not real life benefit. and then i said that there is a real life benefit in specific use cases which have nothing to do with 99% of real life use cases, or do you edit and safe 100MB photoshop images on your smart phone, this just as and extreme example where the difference would really show. :)

but however this is not the place to discuss this further, you can PM me if you have news that you think are worth to share. we can without any problem agree that we disagree, each his own, not worth to put further time and energy into this because it's an overall minor topic.

and for the 3rd time, why you don't make it work if you know so much about it? ;) ;) ;)

you will find to each question someone confirming your wish. some people will deny global warming the year after the arctic was ice free in summer :)
[OnePlus 2 Android Development] ollimi1:
Hi!

I must go to engage here!

I think he(Androguide.fr) has done his tests at that time on a Nexus 5 with a poor EMMC. Todays emmc 5.0 chips are much faster and also there are much improvements on ext4 to optimize it for emmc.

Under real conditions you can't find noticeable benefits, trust him(Magna)! :good:

It doing wonders on my old S2, please do not understand me wrong, but I have in the meantime tested on several devices (like N6, SGS5, Note10.1) and it brought only benefits when copy and move larger files.

I know some developers which provide f2fs on their roms but in fact they all running it's own device on ext4 to avoid trouble, Lol.

You can try it gladly and report whether it provides tangible benefits.

But I CAN confirm, it's not worth to waste your time with it.
[OnePlus 2 Android Development] bounti:
Quick, n00b question. Where exactly do I place the profile zips that I download?
[OnePlus 2 Android Development] magnamentis:
/data/data/com.grarak.kerneladjutor/files/profiles.json

permissions 700 or -rwx------
[OnePlus 2 Android Development] Stylo King:
Can we please have the MSM or Bricked hotplug back? It is impossible for all the cores to come online ( I like all 8 cores online).. like they used to be in past as there isn't any tunable hotplug out there which can do that. Please, its a request.
[OnePlus 2 Android Development] return.of.octobot:
Of all people I'm kind of surprised to see you requesting this. Bricked & MSM were removed because those drivers were designed for quadcore devices and do not behave properly in the context of a big.LITTLE environment, as such the tunables for these drivers as they are now do not properly reflect management of an octacore chip. If you were able to achieve your intended results using either of these in the past, I'd chalk it up to a happy accident. My personal experience trying to implement either of these in the past was rife with unexpected behavior, and AFAIK it's why you never saw anything like this when AK was still building for this device and why they were replaced with ThunderPlug in this kernel.

If your goal is 8 cores online, I'm not sure what the need for a hotplug driver is in the first place? That being said, could you not just configure ThunderPlug to use the 'Load Balancing' profile, under 'Hotplug Style'. You've also got Intelliplug, which is still in there and allows setting minimum cores online to 8, although I'd put that driver in the same category as Bricked & MSM, i.e. the 'who knows if it'll work as intended' category. Finally, and least recommended, there's always Boeffla Config Mode which forces all cores online.

Sent from my SLIM bacon