How do I detect wakelocks inside of applications ? - AT&T Samsung Galaxy Note I717

Gents....
In the quest for battery life and RAM enhancements, and the fact that many applications use wake locks to keep themselves active in the RAM.....is there an easy method to identify which apps contain wake locks ?
I can see active apps easy enough, but does that state simply mean a wake lock is present ??
A little info from a dev or two would be much appreciated.......g

Bump....

gregsarg said:
Gents....
In the quest for battery life and RAM enhancements, and the fact that many applications use wake locks to keep themselves active in the RAM.....is there an easy method to identify which apps contain wake locks ?
I can see active apps easy enough, but does that state simply mean a wake lock is present ??
A little info from a dev or two would be much appreciated.......g
Click to expand...
Click to collapse
Not sure there's an extra easy way... Nonetheless, check out BetterBatteryStats, if you haven't done so already? It does detect Kernel as well as partial Wakelocks. Here's a link that should help: http://forum.xda-developers.com/wiki/Wakelocks
Also, if I remember correctly, you can open your favorite terminal emulator and type:
Su
dumpsys power
Your TE should display any at this point, and if your TE has a zero in the last two lines, there shouldn't be anything you need to worry about.
As far as RAM goes, Android has managed it well since Froyo 2.2, so its not really a concern that's worth your time. Nevertheless, I still find myself manually shutting down apps that I don't want held in RAM with SystemPanel or Taskiller anyway, d'oh! It's a bad habit - OCD problem for me, lol.., due to many years with Windows Mobile. Bottom-line is that Android will end idle app - process tasks as needed without our help, lol... and I'm sure you know that too.
In regard to battery life, here with Saurom 7.1, the display, mobile data, cell use, and cell standby, as well as an add-on ProximityScreenOff Pro app, consume the vast majority of the battery juice. That said, if I set wifi to sleep when the display is off and shut down mobile data, the battery life and deep sleep % increases dramatically.
Hope this helps a little...
Best to all,
R

Wakelock detector app
gregsarg said:
Gents....
In the quest for battery life and RAM enhancements, and the fact that many applications use wake locks to keep themselves active in the RAM.....is there an easy method to identify which apps contain wake locks ?
I can see active apps easy enough, but does that state simply mean a wake lock is present ??
A little info from a dev or two would be much appreciated.......g
Click to expand...
Click to collapse
You can check "Wakelock Detector" app which is available in Google Play
It has a simple UI which shows detail list of acquired wakelocks per each application
and as you mentioned, it shows active running apps on the top, which might have wakelock present at the moment.

Related

smart actions gps

how does smart actions use your location for certain conditions without killing your battery in the process?
hah2110 said:
how does smart actions use your location for certain conditions without killing your battery in the process?
Click to expand...
Click to collapse
I'm pretty sure that smart actions uses WiFi for location based actions rather than GPS. Not that that really answers the question but I have really good battery life with the regular RAZR, (non-maxx) rooted running Black Widow with the yellow theme. I had to re-install Smart Actions from the play store (sadly it does not contain an action for toggling the data for whatever reason) and I also run CPU tuner to manage a lot of the screen off power usage.
I can go the day starting with a full charge, light usage since I'm at work, insanely heavy usage on the car charger for my lunch and then I end up with abut 40% when I get home about 12 hours later. Watchdog is really good about capping certain apps and you'd be surprised how much more battery life you get when you remove completely the proper Facebook app.
I talk way too much

Tips or App to optimize Battery Life?

Hello, I have been searching the forums for any tips or apps people use to get the most battery life out of their HTC One and couldn't find what I was looking for. I'm not complaining too much since I am getting around 4 hours of screen time per day. But was just wondering if anyone used any apps or has a tip that they used that saw boost in saving battery usage. Thanks
juice defender
Juice Defender, Green Power, OR BatteryGuru - Made specifically from Qualcomm for Qualcomm Snapdragon processors! Tried it on my Atrix HD and it did some impressive work at saving battery.
Never used Juice Defender personally, but I did use Green Power before on my Note I, and it was great. Saved me a ton of battery.
Currently using BatteryGuru atm for the One though.
Most important thing we could get is the ability to dial down the auto brightness, it's way too bright
I use startup manager, to have non-system apps not start at boot(saves alot of battery) I also use quad-core cpu sleeper(paid) worth it "when screen is off drops to one core, setcpu with profile to drop my max frequency to 1000 when screen is off and to full when screen is on, and finally use the stock htc power saver to only kill mobile date when off, can get 2 days on idle use and about 3/4 day regular use unless playing really graphic games
ps also using team seven kernel
powersaver is all this phone needs imho
CheesyNutz said:
powersaver is all this phone needs imho
Click to expand...
Click to collapse
Agreed!
Im glad to see this thread, I was thinking about starting one like this. For the past 2 days my ONE is draining battery fast, Im at 33% right now after an overnight charge, been using it one and off all day. Im a bit lost. I just installed battery guru. Is there a good app to show where your battery usage is going? per app or process? I had a decent iPhone app for this, Im searching the Play Store now.
thanks
G Sam battery monitor is what I use
Sent from my HTC One using Tapatalk 2
Greenify to hibernate all the apps causing wakelocks
Mr.s ookipy
Always keep power saver on.
I am going to give Batteryguru a try. I don't know if I am just not using Greenify right, but I don't see much difference.
Pittsdriver said:
I am going to give Batteryguru a try. I don't know if I am just not using Greenify right, but I don't see much difference.
Click to expand...
Click to collapse
Same here. If anything I feel like greenify drains more battery.
I used Carat to identify the battery drainers. Then Froze/disabled a few apps.
The real battery drainer is how much I love this freaking phone!
I do miss the task manager from my GS3 though. Wish there was a way to free RAM like it used to have.
Sent from my HTC One using xda premium
curious... how long does it take you guys to charge your htc ones? and does it ever heat up? mine seems to be running warm from just charging.. is this normal?
DS battery saver - keeps your phone in deep sleep, most of android's battery woes come from apps randomly waking up the device to do their sync and whatnot. By default will wake the device up on a regular schedule and do a forced sync I think. Has options for whitelists so the apps you trust can still do what they want when they want. I've heard juice defender is a good one of this too, though I prefer DS battery saver for its simplicity.
Greenify - Takes a more iOS approach to apps in background. ie. it freezes them. This prevents them from consuming precious mAh
Disable location reporting (or GPS alltogether) in maps.
Disable sync for the weather/stock/news stuff in settings
Get a kernel that supports Undervolting (I prefer elementalX) and use a utility like system tuner pro to UV the everloving **** out of it. Our qualcomm chips seem to handle this particularly well.
That's all I can think of.
---------- Post added at 10:31 AM ---------- Previous post was at 10:28 AM ----------
choboii said:
Same here. If anything I feel like greenify drains more battery.
Click to expand...
Click to collapse
Greenify will only do something if the app you put onto its list was being a problem in the first place really. I suppose it works best with carat. Use the latter to identify hog apps and then greenify to deliver sweet battery saving justice to them (or uninstall them). Most android apps (at least for me) seem to be pretty good with not wrecking my battery in the background though, just sit there and wait for me to call on them again like a good app should.
Am i the only one that read the manual? Pg. 37
Getting the battery to last longer
How long the battery can last before it needs recharging depends on how you use
HTC One. HTC One power management helps to increase battery life.
In times when you need to extend the battery life more, try out some of these tips:
Check your battery usage
Monitoring your battery usage helps you identify what's using the most power so you
can choose what to do about it. For details, see Checking battery usage on page 37.
Manage your connections
§ Turn off wireless connections you're not using.
To turn on or off connections such as mobile data, Wi‑Fi, or Bluetooth, go to
Settings and tap their On/Off switches.
§ Turn GPS on only when a precise location is needed.
To prevent some apps from using GPS in the background, keep the GPS
satellites setting off. Turn it on only when you need your precise location while
using navigation or location-based apps. Go to Settings and tap Location to
turn this setting on or off.
Manage your display
Lowering the brightness, letting the display sleep when not in use, and keeping it
simple helps save battery power.
§ Use automatic brightness (the default), or manually lower the brightness.
§ Set the screen timeout to a shorter time.
38 Your first week with your new phone
§ Don't use a live wallpaper for your Home screen. Animation effects are nice to
show off to other people but they drain your battery.
Changing your wallpaper to a plain, black background can also help a little. The
less color is displayed, the less battery is used.
§ Set the web browser to auto dim the screen while webpages load. Open the
Internet app, and then tap > Settings > Accessibility > Dim screen during
page loading.
For more details, see Settings and security on page 166 and Personalizing on page
56.
Manage your apps
§ Install the latest software and application updates. Updates sometimes include
battery performance improvements.
§ Uninstall or disable apps that you never use.
Many apps run processes or sync data in the background even when you're not
using them. If there are apps that you don't need anymore, uninstall them.
If an app came preloaded and can't be uninstalled, disabling the app can still
prevent it from continuously running or syncing data. In Settings > Apps, swipe
to the All tab, tap the app, and then tap Disable.
Limit background data and sync
Background data and sync can use a lot of battery power if you have many apps
syncing data in the background. It’s recommended not to let apps sync data too
often. Determine which apps can be set with longer sync times, or sync manually.
§ In Settings, tap Accounts & sync and check what types of data are being synced
in your online accounts. When the battery is starting to run low, temporarily
disable syncing some data.
§ If you have many email accounts, consider prolonging the sync time of some
accounts.
In the Mail app, select an account, tap > Settings > Sync, Send & Receive, and
then adjust the settings under Sync schedule.
§ When you’re not traveling from one place to another, sync weather updates of
only your current location, rather than in all of your named cities. Open the
Weather app, and then tap > Edit to remove unneeded cities.
§ Choose widgets wisely.
Some widgets constantly sync data. Consider removing the ones that are not
important from your Home screen.
§ In Play Store, tap > Settings, and then clear Auto-add widgets to avoid
automatically adding Home screen widgets whenever you've installed new apps.
Also clear Auto-update apps if you're fine with updating apps from Play Store
manually.
39 Your first week with your new phone
Other tips
To squeeze in a little bit more battery power, try these tips:
§ Tone down the ringtone and media volume.
§ Minimize the use of vibration or sound feedback. In Settings, tap Sound and
choose which ones you don't need and can disable.
§ Check your apps’ settings as you may find more options to optimize the battery.
Click to expand...
Click to collapse
https://play.google.com/store/apps/details?id=com.xiam.snapdragon.app
Sent from the Sexiest Android Device (HTC One)
Here's a really big tip I've found from trial and error... Turn off Google Location data, best wifi performance, and turn on power saver in settings. I have auto synchronize on, auto screen brightness, and other stuff and I'm getting 15+ hours with moderate usage with 32 percent left when I plug in at night and go to bed. That's also moving in and out of 4G and lte areas and using wifi where available
Sent from my HTC One using xda premium
thaks for the post,i've found the solution for a long time too
I don't believe in disabling everything a smartphone is supposed to be able to do. I'd just get a basic flip phone if that was the case.
I'm trying the snapdragon app atm
Sent from my HTC One using xda premium

Tips to Squeeze up to 200+ hours of Battery and 65% free RAM on Stock!

I made a lot of experiments trying to squeeze most of my LG G2 battery & RAM, and finally I reached those results by the below strategy (please note that this will be just strategy/tips, not detailed steps), and on ROOTED STOCK ROM It currently gives me:
Average Screen Off Discharging Speed 0.3-0.5%\hour (so battery needs 200 hours to discharge, or more than a week!)
Average Screen On Discharging Speed Between 10%-20%\hour (no Gaming) (so working hours about 8-7 hours)
Free RAM after full startup 65%.
(I gathered those statistics by setting Tasker to calculate them for me).
Battery Tips:
So to see almost a perfectly horizontal line of your battery discharge during your sleeping, you will need:
Rooted Stock ROM (I tried this on KitKat latest version).
Greenify.
Tasker
Your brain)) and some work.
OK to get most of the battery, do the following:
Remove all LG & Google Bloat ware; search XDA how to do that.
Disable all animations in you Settings-> Accessibility, this will save our battery and make apps faster.
Now all of the work should be done in Tasker, I assume that you already know how to work in this thing, if not search XDA there is a lot of tutorials...
Once your screen is off, do the following in Tasker:
Turn off the following : WIFI, Bluetooth, GPS, Auto Sync.
Greenify all bad behaving apps, after that use tasker to force close many of the bad behaved one (you should experiment with this).
Down Clock your CPU, for some reason my device reboots unless I set Governor to conservative or onDeman, so here we put it on conservative, with CPU clock between 300 and 652 MHz, there is no need to make it lower, because it gives no better battery life, and it makes wake up time longer.
Those steps are enough to make sure that you will lose about 0.5% per hour only! (my CPU needs about 5-10 minutes to enter deepsleep, this means that your battery drain during this time will more than 0.5%)
On screen ON, you need to immediately set back your CPU to onDemand mode, otherwise it will lag, actually I made 3 profiles for CPU, low (during screen of), medium (when screen on), and high (during gaming), so here I set the OnDemand with frequency 300-1190 MHz, and you will not notice any lag with those settings, also you need to set the maximum priority for the Tasker profile that will do this, well actually I made my own Lock Screen by Tasker screen so that tasker will stay foreground app and has best CPU priority, so swapping CPU profiles will be quite fast and you will see no Lag.
Also I set a periodic sync, when screen off each hour my phone wake ups and turning on wifi (or 3G if I’m out) and turning on AutoSync for couple minutes, and then turn all those things again to enter DeepSleep (step 1).
you need to make a good Screen brightness management in Tasker, there is tutorials on line for that.
Finally, during working, I set many specialized profiles for different apps I use a lot, for example, you don't need AutoSync when you are talking by phone, or reading a book, also when reading books, you don't need high CPU frequency, so I lowering it down, all this tweaks needs some work, but anyway you it will give you considerable battery gain, and you will see that the application that you really using a lot are not more than 10 apps.
I would like to note that I tried many ways to optimize this (except trying different ROMs) like playing with application's wake locks, but nothing worked as good as this strategy for me, if you have some more suggestions it will be great.
RAM Tips:
Many of us trying to make our phones customized and more beautiful, but after a lot of tries I found that all those things only making things worse, even for a monster like LG G2: I tried almost 99% of Launchers available on store, and all of them are very bad in scene of resource usage, for example the most beloved Go Launcher, having 200+ apps, and 3 pages of widgets, uses about 150 Mb. of RAM, this is too much, considering that android itself using about 200Mb. in worst scenarios, even the launchers that claims to be very efficient like Lightning & ssLauncher, that is not true, because once you install them, they indeed use too little at the beginning, but once you customize them and will add widgets, objects to them, they will jump up to 100Mb., well this still is better anyway than Go Launcher.
So to be short, the best one in terms of memory usage, is definitely, and without any competition, is Smart Launcher, it seems that it has a unique possibility to draw/load the widgets on demand (you can add them on special pages) and once you go back to main screen, it will free up used memory in minutes, that's really great, because this launcher on average uses only 50Mb. whatever the widgets you use!!
Also I would like to note that most Lock screens are very memory hungry, I tried lot of them, and none of them used less than 40Mb.!! so it almost like a second launcher! even the best of them like widget Locker or C-Locker! that why I made my own by Tasker itself, but note that after designing a scene in Tasker, it will use a lot of memory (70-80Mb.), and for some reason doesn’t free it unless you restart Tasker, and fortunately after that it will use not more than 20-30Mb. even when the scene is visible! so considering other things Tasker is doing, it's pretty low! so I highly recommend this.
Also any programs like recent app's viewers, side bars, screen buttons etc.. are also very memory hungry, I tried a lot and none of them really efficient, don't dream to get one with less of 50Mb. usage! so it's better, in my tests, "on screen buttons" are the best one with about 10-15 Mb. usage in case you don't like the navigation bar as me))
Well those tips allowed me to have very long battery usage, and about 50-60% free RAM, and without animations, makes my phone LG G2 fast like a Hell even with lots of apps installed, hope this was helpful.
Cheers!
Wow...
Nice Tips...could you mind to share your tasker lockscreen?? =)
If you switch off WiFi/data, you loose connectivity..isn't that the point of a phone anyways? Say somebody sent you a message on WhatsApp, you might get it only after 1 hr under your profile, the whole point of the message is lost ..guess that is too heavy a cost to pay for battery..but people are different, so somebody else might have different priorities
Sent from my LG-E980 using XDA Free mobile app
iall5tar said:
could you mind to share your tasker lockscreen
Click to expand...
Click to collapse
I can but it will be useless for you because I have a lot of tasks that works like functions and depends each on other... I can explain the main Idea how to make it if you would like...
vivebatu said:
you might get it only after 1 hr under your profile
Click to expand...
Click to collapse
Well you can decrease the time, but of course if you need stay online, that will not work for you....
TMSxXDA said:
I can but it will be useless for you because I have a lot of tasks that works like functions and depends each on other... I can explain the main Idea how to make it if you would like...
Click to expand...
Click to collapse
Sure, just import it like a project and i will check it.
or explain it =)

CPU Awake time

Hey everyone,
After playing a bit with my Honor battery this week, I realized that my phone barely goes into deep sleep mode.
I have few Power consuming apps running in the background such as Facebook, Google App, Google Play Store, Textra, Gmail or Pebble.
Using tasker I periodically turn on and off the Auto Sync parameter (1 min of auto sync every 30 minutes) and I always shut down all the applications running in the background.
In my previous Nexus 5, I didn't had much of a problem with the CPU Deep sleep but now that I'm on EMUI without Root on I feel like I can barely control anything that's happening on my phone anymore, especially on the battery.
Overall the battery is still correct but I'm just wondering whether I'm the only one noticing this.
Thanks !
If battery life is normal then it doesn't matter. All cpu operate differently, maybe its just how kirin is. If apps are consuming power in background , emui will tell you.
Have you gone through the power saving and background apps managers of EMUI itself ? Maybe there is conflict of that with Tasker.
I just create battery discussion thread, I appreciate if you can post info here , Thanks
http://forum.xda-developers.com/honor-7/general/battery-life-discussion-t3196324
warea said:
Have you gone through the power saving and background apps managers of EMUI itself ? Maybe there is conflict of that with Tasker.
Click to expand...
Click to collapse
Yeah, I'm spending a lot of time checking out the power saving in the background and after a few day it seems that the phone kinda got used to it.
Facebook and G+ are still coming up first in term of power consumption (I actually wonder why every time I kill them, they just come back... even though they're both not synchronized anyway)
I've gotta admit that the on screen time is pretty amazing! The one thing that's kinda scaring me is the background power consumption but I'll try harder to get this right if anything can be done about these app running in the background. (I'll try rooting and grenifying it)
Other than that, yeah the phone last me a good day with a good amount of on screen time!

[DISCUSSION] Xiaomi Mi 9 battery life saving tips

Xiaomi Mi 9
Battery life saving tips
- Discussion - ​
Presenting a few tips based off personal experience that can help squeeze out those extra few minutes/hours of battery life from our device.​
Please note:
This is not a science and what works for some may not work for others. There are many factors involved in having good battery life and one person’s 1 SOT (screen on time) may mean completely different usage to another’s. For example, 1 hour of internet browsing will of course be less battery-intensive than 1 hour of processor-hungry gaming. So bear this in mind…
I am running the weekly Xiaomi.EU rom (9.4.11 at the time of posting) and so some of these settings/features may not be available on other versions of MIUI.
Some of the below will require. Some users prefer not (or can’t for whichever reason) to root and so you’ll just have to skip those if so.
Lastly, this thread is intended on being a work in progress and I welcome comments/suggestions/additions on the content. These are the settings that I adhere to which I believe, as well as most users, which are useful to aid battery life. Some tips may help out significantly, some may just offer a slight increase. Some may not even help at all and may just be placebo!
If something doesn’t work for you or you greatly disagree, let’s discuss it…​
Network settings + roaming
There are various settings which are known to help out with the notorious Cell Standby drain etc. such as:
Preferred network type (found either by Settings – SIM cards & mobile networks – Sim Card Settings - Preferred network type OR by dialling *#*#4636#*#* via your phone app). Users in the EU find that setting the network type to GSM/WCDMA/LTE or WCDMA/LTE (on both sims) can help stop the device look for network frequencies that it’ll never find, such as the TD-SCDMA etc. You can Google what frequencies your network provider uses which can help you decide.
VoLTE (Settings – SIM cards & mobile networks) – there may be some debate over this one, but it can be said by having VoLTE enabled, whilst calls will be clearer, it will use 4G which is that bit more power hungry. Therefore some testing may be preferred if you’re a frequent caller. I personally have this on without and haven’t tested it fully, but I’m also not a huge caller.
Make calls using WLAN (Settings – SIM cards & mobile networks) – by using WiFi for calls this should be more battery efficient than using mobile network data.
Data roaming (Settings – SIM cards & mobile networks) – I tend to keep Overseas data roaming off when I’m in my home country with the thought that it prevents the device from looking for networks it won’t find. As for National roaming, I have this kept off too normally as I don’t travel around much generally, so again to prevent it searching for alternative networks when it already has a strong signal.
System settings
Here we have several system settings/features that may be used on a day-to-day basis but may not be needed to be enabled at all times. Generally speaking, having something turned on all the time yields benefits for convenience but at the cost of battery life, as seen below.
Wifi / Bluetooth – both of these can be regarded as similar, in the sense that by having it enabled all the time it can connect automatically without your input. For example, if I leave my WiFi on when I leave my home it’ll automatically reconnect when I come back. Great! However, throughout the entire day if it doesn’t find a known network it will constantly be looking for one, draining battery. Not so great. Therefore if the convenience of not having to turn your WiFi on/off is your preference, then leave it enabled. Though if you know you’re not going to be connected to a network, then some manual control may be preferred. The same rules apply for Bluetooth devices.
WiFi & Bluetooth Scanning (Settings – Additional Settings – Privacy – Location – Scanning) – this can be a big drain I have found and is usually activated when you have High Accuracy location mode activated. Again, it comes with its benefits of providing higher accuracy, but with some battery cost. By disabling both WLAN and Bluetooth scanning, extra battery life can be saved. There are some apps I’ve found that force you to enabled High Accuracy mode, so just remember to switch off these scanning settings once again if so.
GPS & location accuracy (Settings – Additional Settings – Privacy – Location – Location mode) – I personally don’t mind just using Device only and keeping this on all the time. As whilst like with Bluetooth as mentioned above, if I know I’m not connect to my Bluetooth speaker for example, I at least like to open Google Maps and it find me straight away rather than toggling GPS on etc. Personal preference of course, as with all of these…
NFC (Settings – More) – as with WiFi and Bluetooth settings, if you’re not using it and don’t mind the manual toggling on/off as needed, then disable and do just that.
Hotspot (Settings – Portable Hotspot) – as above really, as this could be a big drainer if left on. Luckily there is a setting (Turn off hotspot automatically) which can help with this.
Display
A massively subjective aspect of using your device and only you know what you’d rather have and what you;d rather be looking at. Just as we know, a higher brightness level will result in high battery drain and the screen can be the biggest drainer of the all, so choose wisely if you’re trying to conserve some juice.
Screen brightness (Settings – Display – Brightness level) – I personally have it set to manually controlled, as I find the auto-brightness not to be very smooth, at around 20-30% indoors and perhaps up to 100% outdoors. I believe that manually controlling brightness preserves battery as it of course doesn’t use the ambient sensor and brightness remains the same, rather than jumping up and down reacting to light levels.
Ambient display (Settings – Display – Ambient display) – functionality of having the ‘always on display’, but at the cost of some battery life. There is the scheduling that you can use to help with this, but personal preference whether you want this on or not. I personally don’t, though at times I’m tempted to given the notification light, for me, isn’t that practical.
Contrast and colours (Settings – Display –Contrast & colours) – it can be said that Standard will be the most battery friendly, Increased Contrast drawing that bit more power due to the increase in contrast and Automatic Contrast using the most given it will use the sensor to optimise contrast based off available light. I personally have it on Increased contrast and I’m happy enough.
Double tap/raise to wake (Settings – Display – System) – with both of these sensors will be used for the convenience of tapping your screen and raising your phone in order to wake the device. This may be handy, but be mindful that such convenience will come at the cost of the sensors running using up some battery.
Themes
Another subjective aspect of your device is you can make it look. The suggestion here is for black themes to be applied where possible as on our screens black images use less power, as noted by Google. Though indeed black theming isn't for everyone so this suggestion, as with all of them, is purely up to you.
Night mode (Settings - Additional settings - Developer options - Night Mode) - enable night mode (Always on) to turn on MIUI system-wide black/dark theme, such as the dialer etc. *If you don't know how to activate Developer options, see here
Substratum and Swift Black - I highly recommend using this theme with the help of Substratum, though indeed only available to rooted users. Be sure to follow all the required steps to get Substratum working, such as installing the Magisk module etc.
Battery & Performance
Here are the various system battery settings which aim to preserve battery. Some perhaps more useful than others!
Adaptive Battery (Settings – Battery & Performance – Use Adaptive Battery) – this claims to limit battery for apps that you don’t use often, which I have enabled, though as will be seen below some further manual control can be done.
Battery saver / background app restrictions (Settings – Battery & Performance – App Battery Saver – Choose apps) – here you can select per-app a choice of 4 background restriction settings. It’s time consuming, but it’s worth going through each app (note: use the 3 dots in the top right corner to Show system apps) and choose the restriction settings, if any, to be applied. Generally speaking, if you want notifications to come through from it (like WhatsApp) or you don’t want it being shut down in the background (like Spotify) then choose No restrictions. If you’re not so bothered about it and want the system to lay down the law on battery saving, choose Restrict background activity. There are settings in-between, like Battery Saver and Restrict background apps, but I’ll leave you to play around with those ones.
Battery Optimization (Settings – Battery & Performance) - this has several options to save battery ranging from adjusting screen brightness, turning on Battery Saver, turning off GPS etc. This can be used however I prefer to manually configure the settings, so this will be up to you…
Scenes (Settings – Battery & Performance) – here is a ‘smart scene’ called sleep mode which apparently will detect when you’re sleeping and close down apps, restrict NFC etc. I personally have this disabled as again I manually adjust such settings
Auto-start (Settings – Manage apps - *select app* - Autostart) – another useful option is to go through each app you have and disable the autostart, which could provide additional battery savings preventing apps from starting up in the background
Debloating / removing system apps
Lots of system resources can be freed up which can result in added performance and battery life. See the extremely helpful thread by @SirTAVARES who created the Debloat Applications (No-Root) thread.
I personally have used the above guide to remove a lot of pre-included apps, even on the somewhat pre-debloated Xiaomi.eu rom. Without root you can use ADB to remove apps and they won't reappear when you update your rom. They will appear back if you perform a factory reset, as they are not fully uninstalled.
Furthermore, with root you can remove the app from not only the user area but system area too. Check out the thread for more info on this.
Lastly, apps like System App Remover Pro can fully uninstall system apps, with the option to use the Recycle Bin option should you wish to restore
Battery draining apps and alternatives
It can be said that some apps are notorious for being big battery drainers, such as the official Facebook app. I’m not a huge user of some of the other apps, like Snapchat, Twitter etc. and to be honest I generally favour webpage versions of some things for example I don’t have the Amazon shopping app, I just use the web page version, saved as a bookmark on my home screen. The general tip here is if you are going to use an app, be sure to go through its settings and adjust notification settings/frequency. For example, I do have the Sky News app however set it to not notify me of news, the same for Yahoo weather. So tweak accordingly. If you have some good alternative app suggestions then I’ll be happy to include some here, but for now I’ll just start with…
Facebook – I use Folio for Facebook & Messenger which is a nice lightweight 'Facebook wrapper' in that it uses the Facebook webpage as the basis for the app. It also has a functional messenger included so no need for a separate app.
Battery monitoring apps - apps like GSam Battery Monitor and BetterBatteryStats can be useful in detecting the high draining apps, so could be worth using one of those in an effort to identify them.
Magisk modules
There are many Magisk modules out there which aim to solve battery. I only use one, which I’ll list below, however please feel free to make suggestions for inclusion in this section. I know that there are some like Greenify, Amplify (when using Xposed) etc. that could squeeze even more juice out of the device!
Universal GMS Doze - helps put Google Play Services to sleep to save some battery. I use this with no issues/impact on Gmail, Play Store etc.
Other system settings
Sync (Settings – Sync) – as with per app settings for notifications/sync frequency etc. settings, it’s worth checking here to see what apps are auto-syncing data. You can turn them all off (I believe) via the Auto-sync data toggle, or check them out individually via this menu setting. *Note: I have removed Mi Cloud etc. and so I don’t have any of that running in the background, but that’s up to you.
Vibration (Settings – Sound & Vibration) – now this is likely a very small potential for some battery savings but still worth noting. You can adjust the Vibrate on tap option ranging from Off/Light/Medium/Strong, which I’m sure someone who has it set to Strong will be using that tiny bit more power than someone who has it set to Off. Your call….
Permissions (Settings - Permissions - Permissions) - it's worth going through here to monitor per-app what permissions are being used. Some apps may not like being prevented using certain things and it may break some functionality, but it's an extra method in reducing potential usage, such as hardware usage, for an extra saving. For example, an app may try and use GPS each and every time you open it or even try running it in the background. If you're willing to, preventing it from doing so may help save some battery.
Authorization & revocation (Settings - Additional settings - Authorization & revocation) - here you can revoke some access from apps. I have stuff like Security, Downloads, Battery and performance and Settings listed here, all of which I've revoked with no noticeable negative consequences.
Fingerprint icon (Settings - Lock screen & password - Manage fingerprints) - another very small tweak for a potential very small saving. The setting is Show fingerprint icon when the screen is off (which is present on Xiaomi.eu 9.4.11) and by disabling will prevent the icon showing. As the icon is displayed by the screen, by turning it off it'll naturally save the power it takes to light the screen up, which as you may have noticed, it lights up with the tiniest movement of the device! I keep it on as I like it and battery doesn't seem to be greatly impacted - but this thread is about squeezing as much juice as possible, right?!
Recents and 'Clear all' - not a system setting but a little thing to do, is to open up the Recents menu and use the 'X' button to close all running apps, or swipe individual to close certain ones from running in the background. Now, it is the case the apps stored in the RAM aren't necessarily using battery, but this is still useful to stop apps that are running and active. Definitely a debatable one, as the argument against doing this is that it then uses battery to reopen the app, so perhaps just test it out and see for yourself.
Last but not least....
Now this last little tip of mine is certainly one that can be debated, but I do it nonetheless...
Remember, none of this is advice as such, it's just what I do to keep myself sane in knowing/believing (philosophical debate here?!) that I've done all I can to maximise battery life.
What I like to do is when installing a rom have the phone charged to 100% before doing so. This originates from the days of believing that batteries need to be calibrated. There is definitely lots of research that states it may not be needed and a simple Google search can reveal research into this, but it's something I like to do anyway.
So essentially my method regarding this, needed or not, is:
Charge phone to 100%
Update rom
Use phone until it switches off at 0%
Charge phone fully to 100% without interruption
I'm not stating this is needed, it's just what I do. Take it or leave it! I'm aware that there is science behind not allowing phone batteries to die at 0% in order to prolong the life of it, but again, it's just what I do and it works for me.
Your call!
That is it for now. As mentioned I highly welcome your comments and suggestions for adding to this thread so please do let me know if any questions etc.I'm purposefully not showing my SOT/battery stats as they won't be useful to anyone - the above tips are here for that!​
Nice thread.. we need something like this. Thanks
marko94 said:
Nice thread.. we need something like this. Thanks
Click to expand...
Click to collapse
Thanks, let's make it the best it can be
Great post. I haven't used substratum since my latest phone HTC one m8.. How did u installed it? With magisk?
Thanks for this extensive write up....
sakaki14567 said:
Great post. I haven't used substratum since my latest phone HTC one m8.. How did u installed it? With magisk?
Click to expand...
Click to collapse
Yeah, substratum via play store and there's a magisk module too. Follow its guidance and let us know if any questions
Many thx for all this advice ?
Thank you. I would like to see more ideas and for this thread to get pinned and updated for more tips
hardtheory said:
Many thx for all this advice ?
Click to expand...
Click to collapse
Ahmad Shawawreh said:
Thank you. I would like to see more ideas and for this thread to get pinned and updated for more tips
Click to expand...
Click to collapse
Enjoy guys.
Let me know if you feel any difference and if any questions/additions
cd993 said:
Yeah, substratum via play store and there's a magisk module too. Follow its guidance and let us know if any questions
Click to expand...
Click to collapse
Compiled everything, except the overlay of android system (it remains blue accent for some reason) phone overlay and system ui.
Thank you for your advice
With all you have done for your setting, Could you share us the battery performance please?
Tharitsaivet said:
Thank you for your advice
With all you have done for your setting, Could you share us the battery performance please?
Click to expand...
Click to collapse
As it as been say, the performance would be pretty different from different user (wifi, Bluetooth usage, nfc, ect) . I can give you an example, I done almost all optimization that has been given in the thread. I have Bluetooth activated all the time cause of my amazfit cor.
If I'm at home an only use wifi and if I often use my phone with 25 % brightness I can have 10 hours sot. But in real life use, with bad mobile network, usage of mobile data, phone call, screen at 100 % on outdoor use, I can only have 4h30 of sot.
Dépend of the usage and what you done with the phone. Personally, if I have a smartphone, it's to use use it. If you desactivaye all network, keep battery saver, keep your screen at 20 %, buy a Nokia 3310 ?
hardtheory said:
As it as been say, the performance would be pretty different from different user (wifi, Bluetooth usage, nfc, ect) . I can give you an example, I done almost all optimization that has been given in the thread. I have Bluetooth activated all the time cause of my amazfit cor.
If I'm at home an only use wifi and if I often use my phone with 25 % brightness I can have 10 hours sot. But in real life use, with bad mobile network, usage of mobile data, phone call, screen at 100 % on outdoor use, I can only have 4h30 of sot.
Dépend of the usage and what you done with the phone. Personally, if I have a smartphone, it's to use use it. If you desactivaye all network, keep battery saver, keep your screen at 20 %, buy a Nokia 3310
Click to expand...
Click to collapse
From what you said, it's seem to be good for standby draining. As I normally use the phone when I have the break from 9am to 6pm only 2 hrs screen on, My current phone battery are lower than 40% in the evening.
Tharitsaivet said:
Thank you for your advice
With all you have done for your setting, Could you share us the battery performance please?
Click to expand...
Click to collapse
hardtheory said:
As it as been say, the performance would be pretty different from different user (wifi, Bluetooth usage, nfc, ect) . I can give you an example, I done almost all optimization that has been given in the thread. I have Bluetooth activated all the time cause of my amazfit cor.
If I'm at home an only use wifi and if I often use my phone with 25 % brightness I can have 10 hours sot. But in real life use, with bad mobile network, usage of mobile data, phone call, screen at 100 % on outdoor use, I can only have 4h30 of sot.
Dépend of the usage and what you done with the phone. Personally, if I have a smartphone, it's to use use it. If you desactivaye all network, keep battery saver, keep your screen at 20 %, buy a Nokia 3310 ?
Click to expand...
Click to collapse
Tharitsaivet said:
From what you said, it's seem to be good for standby draining. As I normally use the phone when I have the break from 9am to 6pm only 2 hrs screen on, My current phone battery are lower than 40% in the evening.
Click to expand...
Click to collapse
OK guys here is some stats for you, see attached. Been off charge 21 hours with almost 5 hours SOT down to around 40%.
Going strong!
Hi, also running xiaomi.eu but can't find the screen of your last screenshoot. Mine under battery and performance looks completely difderent
Sent from my OnePlus 5T using XDA Labs
tbv2005 said:
Hi, also running xiaomi.eu but can't find the screen of your last screenshoot. Mine under battery and performance looks completely difderent
Click to expand...
Click to collapse
I use Nova launcher which has that additional battery info screen
cd993 said:
I use Nova launcher which has that additional battery info screen
Click to expand...
Click to collapse
I'm using Nova too, but I've never seen that screen before. Where can I find it / activate it?
janvandusschoten said:
I'm using Nova too, but I've never seen that screen before. Where can I find it / activate it?
Click to expand...
Click to collapse
You can add it to the home screen as a shortcut:
Long press empty space on home screen - add widget - shortcut activities (drag that to home screen) - Settings - Battery and Performance (PowerUsageSummary)
Then you'll have a shortcut to this battery info screen
10hrs39mins, best yet! On WiFi all day just light chrome/xda/reddit etc.
This is on latest RevolutionOS rom
Has somebody noticed that email apps (like bluemail, gmail...) make the phone never sleep totally ?
I often have 15 hours "held awake" in my gsam battery stats! [emoji33].
If I kill the email apps then my phone sleeps MUCH, better.
I tried several mail apps..same result.
Is it because of Android 9 or Xiaomi?
On my other devices (Android 7 and 8) I don't have this problem with the same apps...
Envoyé de mon MI 9 en utilisant Tapatalk

Categories

Resources