Enabling doze on aosp roms - General Questions and Answers

I've been having sub-par battery life while idle on aosp roms. I've come across something (https://source.android.com/devices/tech/power/platform_mgmt#doze) which states doze on aosp is disabled. Could an app like greenify be used to enable it or is there some other way?

Related

[Root] The incredible guide to incredible battery [Permissive kernel and Xposed]

The guide to get incredible battery on your S7E!​
A lot of people are having trouble to push the 3600mah battery to the absolute max, so I will here show you how to do so. This will mainly be a link to another post made my @v7, which have made an incredible guide to get a good idle drain. I will mainly explain what works on our S7E and what not, while giving a few other tips. Most of these tips can be found all over the internet, but I just want one thread, where they're all collected, so people can read every tip in one thread. As most guides are general through out all devices, they is what works and what don't on our devices. You're free to share your own tips!
REMEMBER TO MAKE A NANDROID BACKUP. ANYTHING YOU DO ARE NOT MY FAULT NOR ANYONE ELSE BUT YOUR OWN FOR MAKING THIS CHANGES!
Firstly, use a debloated rom.. That do a lot..
As said, @v7 have made this guide here. Remember to thank him!
Greenify:
Get the donation package and greenify everything that runs in the background and you don't need push notifications with. With the Shallow Hibernation, it still runs nice and smoothly when you open them. After that, you enable GCM push for hibernated apps and look, if any of the apps that you need push notifications for, supports GCM push and if they do, hibernate them. You will still get notifications, but remember to check "Do not delete notifications from hibernated apps".
I have almost everything hibernated - Maps, Facebook Messenger etc, when still working smoothly - besides Play Store, as that gives problem with paid app licenses. I also enabled Aggressive Doze. You should whitelist the same as in Powernap, that will be listed below here.
Amplify:
I have everything in mentioned in the thread Amplified without problems. I hadn't touched the services, but they should be save to disable anyways. Network Location service, have given me problems with Android Wear communication before.
Powernap:
Here comes where you need a permissive kernel. The SuperKernel that just came out, is the only one on XDA for now. In Powernap you should whitelist the following
Amplify
Android System
Google Account Manager
Google Play-Services
Google Services Framework
Greenify + Donation package
Apps you need push notifications from (like Facebook Messenger)
Xposed Installer
Your alarm clock
Basically, you should whitelist anything that you want to run in the background while the screen is off.
Better Battery Stats:
Check the app after a sleep, but leave everything on as if you were using the phone (data, bluetooth etc) as this is about lowering power usage on normal use and not seeing how long standby time you can get while everything is turned off. GCM_Reconnect and Heartbeat might be high for Google Play-Services, but for me, limiting them gave late or non push-notifications, but test it yourself (remember to restart after limiting/unlimiting).
All the small things:
Turn off location history
Turn off services you don't need and let Tasker control it. (Turn GPS on when maps open, hibernate and turn maps of when closed etc)
Turn off bluetooth and wifi scan all the time
Get Smart Network from Xposed and set your network to Edge when screen is off and 3g/4g when screen is on.
A dark theme with dark icons can save quite some power
Samsungs own greyscale can be enabled in accesibility and then triple tab on homebutton, when you know you're out for a long day.
UPSM Manager from the Play Store can add apps to the Ultra Power Saving Mode, so you can add apps like Facebook Messenger and suddenly it's way more useable.
Use Tasker to force sync, instead of having it activated. I force sync every 2 hours with Tasker + Synker
I have turned off features that I DO NOT USE. Under Advanced Functions, almost anything + edge screen features.
More connection settings and "always search for devices" - Off
Custom kernel settings:
There are no custom kernel out on XDA yet that supports full Synapse, but the Echoe Team have successfully build one.
I have set both governors to conservative, which actually is impressive smooth, while it should be the most battery saving governor which don't lag (like Powersave).
The I/O schedulers should be set to noop which have quite good battery life, without limiting performance too much. I haven't felt a difference yet.
TCP Congestion is set to Westwood (but I think that is standard anyways).
Everything have been undervolted by 25mV. That is nothing from a battery saving perspective, but well, i'm still testing.
L Speed from @Paget96 (thank him!) here is quite nice too!
I haven't had any lags with these battery saving options yet. Everything not mentioned is just standard.
OOM Killer - Enabled
Cache Reclaiming - Minimum
Kernel Tweaks - Light
Kernel sleepers optimization - On
Battery improvement - on
Wifi sleeper - On
Flag Tuner - On (Some people on S7E have mentioned problems with this.. Lag, reboots and bootloops, but I haven't had any problems).
IO Boost - On
I have power saving mode enabled, with background data enabled and my phone is still butter smooth, Also, check for apps to add in the battery saving menu, as I have enabled some apps I don't use or need notifications from, manually.
I get around 5-6 hours SOT where 3-4 of them are Clash Royale, if not more.... Yeah, I game quite a lot.
I think that was all for now, but I will keep it updated when I get new ideas to push it to the limit.
This is still keeping the phone "smart", as you adjusts it for your needs.. Inb4 all the people saying, why buy a smartphone if you disable every feature.
hmm that would kill performance in tekken and AB2 as those games are heavy on QHD but i try it nonetheless, ty.
Thanks for credits
Sent from my Nexus 5 using Tapatalk
hmmmm . nice thread ! thank you !!!
Paget96 said:
Thanks for credits
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Of course ?
Good guide,
But why are you mentioning a kernel none of us have access to???
el7145 said:
Good guide,
But why are you mentioning a kernel none of us have access to???
Click to expand...
Click to collapse
There are two kernels on here now.
You could ask for permission to get on the forum where the kernel is or you could simply wait. I knew it would only be a question about days, before there would be kernels on XDA too.
With all this stuff I might as well activate ultra power saving mode and let it be
lvnatic said:
With all this stuff I might as well activate ultra power saving mode and let it be
Click to expand...
Click to collapse
Why if I may ask? That makes your phone way more restricted than the above do.
lvnatic said:
With all this stuff I might as well activate ultra power saving mode and let it be
Click to expand...
Click to collapse
Exactly.
I've gone through a lot of these kinds of tweaks in the past, and generally found having to re-load apps and disable features I like having wasn't worth the small battery life increase I saw.
That said, Everyone uses their device differently though, so what doesn't work for me may work well for others. Remember that before you say I'm spouting nonsense about small battery life increases.
Sent from my SM-G930W8 using Tapatalk
Devhux said:
Exactly.
I've gone through a lot of these kinds of tweaks in the past, and generally found having to re-load apps and disable features I like having wasn't worth the small battery life increase I saw.
That said, Everyone uses their device differently though, so what doesn't work for me may work well for others. Remember that before you say I'm spouting nonsense about small battery life increases.
Sent from my SM-G930W8 using Tapatalk
Click to expand...
Click to collapse
I certainly agree that it depends how you use your phone. But if you only rely on a few apps when display is off, like a few messaging apps, Power Nap can certainly increase your battery life. I have a idle drain around 0.0-0.2% (note, 0.0% is not the same as zero drain.) and I still receive messages, and Tasker turn everything on that I need when I need it (GPS, nfc, sync and so on). So if you just install the apps, yes it decreases functionality a lot, but by tweaking it to exactly match your usage and not limiting what you use, you can certainly get increase battery life without losing features. I use my phone the same way now as uprooted, not limiting anything I use..
Most people have a lot running in the background they don't really need or depend on or that can wait till the screen turns on.

Stock power saving slider functionality on custom rom?

I was using quite a lot the ultimate power saving feature that's available on stock P2 ROM through the HW slider. Now I'm on LineageOS 14.1. I suppose there's no way of getting the stock feature to a custom ROM. Is the any alternative, like an app, that would be providing something similar? The built-in LineageOS Extreme power saver is not that aggressive at all. It don't require it to be tied to the HW slider. And it can require root privileges.
There is an xposed module named powernap. You can try that.
It is not in development anymore but it works for nougat.
Otherwise. Try
Naptime
Force doze
Or Greenify. (Needs setup, add apps etc)

Some help with my battery saver configuration

I have a Zuk Z2 which has a big battery and was frankly amazing when I first had it setup on LineageOS. Recently my battery has been draining really quickly with the only obvious wakelocks being 'Google Services' and 'PowerManagerService.wakelock' usually.
I'm wondering if someone could validate my setup. I have Greenify running to greenify all my appswith the exception of a few that I want notifications to come through for as sometimes I find greenified apps don't always notify. I followed a setup guide in here for this.
I'm then using Tasked to switch Location from Battery Saving to High Accuracy if I open up maps, lyft, uber etc. I also have it to enable and disable WiFi when at home and away from home.
I then also disabled a few Google Services using MyAndroid Tools and a guide I found on here.
I'm a bit out of touch with development so is the above a good setup or are there better methods to this available now? I'd love some feedback and confirmation as it may also just be that my battery has degraded, the phone is a couple of years old.

Are notification issues still there?

Hi, I'm using EMUI 5 on my Honor 8 (FRD-L04 so still noreo ) and was wondering if we still have to set apps to ignore battery optimization to get notifications. When I first got my phone I installed all the apps and set them to ignore battery optimizations so that I could get notifications but lately my battery life is pretty ****ty, especially since these apps ignore doze. So I'd like to know if people still have to set apps to ignore doze or does notifications work like they're supposed to after so many updates? Thanks!
By ignore battery optimization you mean enabling auto-start on each app? I haven't faced any battery life decrease with it enabled.
Elpsycongroo13 said:
By ignore battery optimization you mean enabling auto-start on each app? I haven't faced any battery life decrease with it enabled.
Click to expand...
Click to collapse
Not that one. Like inside settings there is a page called ignore battery optimizations which helps apps bypass doze.

Battery drain and wakelocks

Hello!
At this moment I am getting really bad battery on my device.
I am using xXx magisk mod with Smurf kernel on battery profile.
I think problem is with my phone not going to deep sleep for most of the time...
Can anybody help me find the cause?
silverkin said:
Hello!
At this moment I am getting really bad battery on my device.
I am using xXx magisk mod with Smurf kernel on battery profile.
I think problem is with my phone not going to deep sleep for most of the time...
Can anybody help me find the cause?
Click to expand...
Click to collapse
My first guess would be the stock battery optimizations are being overridden by the custom Kernel. Custom kernels typically come with default governor settings- in most cases set to performance. Try lowering your overall CPU loads, voltage loads, or setting up an interactive governor to improve battery life.
I have seen some custom Kernel users use Greenify (XPosed mod) with some measures of success.
Cheers,
Get Greenify and add to the list the apps that drain battery and you don't open that often

Categories

Resources