How to power off the phone at determinate percentage of the battery ? - General Questions and Answers

Hi,
Still here with other questions for optimize my phone. (N20U rooted with android 12 , custom rom & kernel, tweekspro etc etc)
Reading around how to preserve the longest efficiency of the battery I would like set the interval where the phone must work.
I know that the optimum interval is 20% - 85% for the maximum numbers of cycles.
In Android 12 is possible to set the maximum value: settings > battery > more battery settings > battery protection (to enable to 85%). This work well. (I can achieve this also with ThunderTweaks).
How can I set the minimum percentage after the which it power off ? (ex at 20%)
Thanks for the tips!

giostark said:
Hi,
Still here with other questions for optimize my phone. (N20U rooted with android 12 , custom rom & kernel, tweekspro etc etc)
Reading around how to preserve the longest efficiency of the battery I would like set the interval where the phone must work.
I know that the optimum interval is 20% - 85% for the maximum numbers of cycles.
In Android 12 is possible to set the maximum value: settings > battery > more battery settings > battery protection (to enable to 85%). This work well. (I can achieve this also with ThunderTweaks).
How can I set the minimum percentage after the which it power off ? (ex at 20%)
Thanks for the tips!
Click to expand...
Click to collapse
You can try using the Tasker app, it can be used to set up virtually any automated task that you can think of.

Tnx Droid , I already seen this workaround but because I'm not a coder this would be a little complicated.
This feature for "extend" the battery life should be a common features . Is strange no one have already published something about it. (if at the end I will not found any alternative solution I'll have to dig in tasker)

giostark said:
Tnx Droid , I already seen this workaround but because I'm not a coder this would be a little complicated.
This feature for "extend" the battery life should be a common features . Is strange no one have already published something about it. (if at the end I will not found any alternative solution I'll have to dig in tasker)
Click to expand...
Click to collapse
Tasker is pretty much your only option. I don't know of any other methods of setting up automated processes with conditions of activation, I've been a member here for many years and haven't seen any other tricks to do what you want. If there is another method here, its very obscure and more complicated than Tasker.

Droidriven said:
Tasker is pretty much your only option. I don't know of any other methods of setting up automated processes with conditions of activation, I've been a member here for many years and haven't seen any other tricks to do what you want. If there is another method here, its very obscure and more complicated than Tasker.
Click to expand...
Click to collapse
Hei Droid , I have news about this :
by Dr.Ketan - I have made a app couple of yrs ago, deep discharge protection (search xda) tool. Will do similar job. I may add to Tweaks next version
Click to expand...
Click to collapse
So I will search this app and wait for the integration. I'll update this 3d.

Hi Droid,
In the mean while Ketan will post the missing apk from his 3d ( I suppose he is really busy ) :
[09.01.18][G95*][N950] Deep Discharge Protection V1.2
Deep Discharge Protection Tool You might knowing about Deep discharge issue reported on S8/S8+/N8 devices This tool simply switch off device when battery level reaches to 12% to prevent accidental Deep Discharge (While you are sleeping ;) )...
forum.xda-developers.com
I found a nice app that accomplish the same task "LBS(root)":
LBS(root) - Apps on Google Play
Shutdown your devices on low battery level.
play.google.com
I didn't have a playstore account so I downloaded it from Apkpure:
https://apkpure.com/lbs-root/com.yuandroid.low.battery.shutdown

Tested LBS. Unfortunately the app is too old for andorid 12. The developer told that would update the app for make it compatible. Right now this app reboot the device instead of turning it off.

Related

[Q] Basic Battery Saving Tips

I'm sure this question has been answered quite a lot of times on the forums here, but I'd simply like to gather all useful tips for extending my Android device's battery life, from the well-known "Turn off Wi-Fi when you're not around your hotspot" to "Allow only a few background services to run reducing CPU activity etc".
Just simple tweaks that do not require flashing any ROMs or root access in the first place.
Thanks!
devizegr said:
I'm sure this question has been answered quite a lot of times on the forums here, but I'd simply like to gather all useful tips for extending my Android device's battery life, from the well-known "Turn off Wi-Fi when you're not around your hotspot" to "Allow only a few background services to run reducing CPU activity etc".
Just simple tweaks that do not require flashing any ROMs or root access in the first place.
Thanks!
Click to expand...
Click to collapse
Nothing will be as powerfull as rooting your device (I know you didn't want to hear this kind of answer... )
BUT may be u can use some informations:
- Turn mobile network to "2G"
- Disable autosync
- Lower brightness of display
- Reduce "display stay active" time
- When u have an AMOLED display, use a "black" skin for your rom
- Disable wifi notification
- "disable wifi"
- "Allow only a few background services to run"
A real improvement will be:
- root
- uninstall all the stupid preinstalled crap of your stockrom
- disable autostarts you dont need
- may be disable wakelocks of apps you need and which act a lot on their own
- install a kernel which allows you control cpu settings --> Scheduler/Governor + CPU frequencies (lowering CPU freq)
- or setting cpu freq profiles automatically + undervolt system
misc:
get a stronger battery
I hope other members will add some or many more usefull tips
LS.xD said:
Nothing will be as powerfull as rooting your device (I know you didn't want to hear this kind of answer... )
Click to expand...
Click to collapse
Truth is my device is already rooted with a custom ROM which isn't very stable and it is still in development. This is why I'm asking for a few tips. The battery life is already awful and I don't want to mess up with any system files so just basic tips that will do the trick are needed.
devizegr said:
Truth is my device is already rooted with a custom ROM which isn't very stable and it is still in development. This is why I'm asking for a few tips. The battery life is already awful and I don't want to mess up with any system files so just basic tips that will do the trick are needed.
Click to expand...
Click to collapse
Why you don't tell me phone type and the rom u actually use?
LS.xD said:
Why you don't tell me phone type and the rom u actually use?
Click to expand...
Click to collapse
Sony Xperia Sola w/ Unofficial CM11
http://forum.xda-developers.com/xperia-u/sola-development/rom-unofficial-cyanogenmod-11-0-t2627210
devizegr said:
Sony Xperia Sola w/ Unofficial CM11
http://forum.xda-developers.com/xperia-u/sola-development/rom-unofficial-cyanogenmod-11-0-t2627210
Click to expand...
Click to collapse
This CM11 version? --> http://forum.xda-developers.com/xperia-u/sola-development/rom-unofficial-cyanogenmod-11-0-t2627210
LS.xD said:
This CM11 version? --> http://forum.xda-developers.com/xperia-u/sola-development/rom-unofficial-cyanogenmod-11-0-t2627210
Click to expand...
Click to collapse
Yes! I am aware that there is already a battery life issue even on Nexus 5 so no matter what ROM it is, if it is baed on 4.4.2 it's going to have battery issues.
devizegr said:
Yes! I am aware that there is already a battery life issue even on Nexus 5 so no matter what ROM it is, if it is baed on 4.4.2 it's going to have battery issues.
Click to expand...
Click to collapse
I use HTC One S + Samsung Galaxy W and both run 4.4.2 and are stable to use also battery life is ok to me
I'm using greenify and lux (brightness app which enable you to make the screen even dimmer). These two apps make my phone last longer
Skickat från min GT-I9505 via Tapatalk

Battery Temperature Monitor for OnePlus 3

BattTemp - Battery Temperature Monitor for OnePlus 3
(no I couldn't think of a better name!)​
Also tested working on Sony Xperia Z (both Stock and CyanogenMod)
Current Version: 7.0
Last Updated: 15/06/2017
For: OnePlus 3, Xperia Z and LG P990. Will work on MOST others, but these are the only two I have physically tested.
In this update, the battery temperature is acquired using BatteryManager instead of SysFS. Should work on MUCH more devices now...
This is a very simple application for keeping tabs on battery temperature. I am a very beginner Android developer and have started to make some simple apps, this being one of the more useful ones. I just thought it would be cool to have the battery temperature in the notification bar, plus there are lots of threads on here mentioning about glue lifting (Xperia Z)/etc when temperatures are high, plus other more catastrophic overheating stories involving complete failure caused by (extreme) overheating.
There is a much better app for doing this in Google Play but my app is free and also works below 10c unlike the one by Dustinmj (I tested mine in the fridge down to -1C, as you do).
FAQ - Please read before downloading!
Q: Do you take any responsibility if this breaks my phone/Android device?
A: NO although I would be interested to know how.
Q: What license does the app have?
A: None... its not GPL/etc but it is open source and free... It is just a beginner learning to program. Feel free to pass it along/make changes/etc as long as you do not take credit for the original app.
Q: Does this work on Stock?
A: Yes
Q: Does this work on CyanogenMod?
A: Yes CM13 tested
Q: Does this work on my Nexus/Galaxy S4/Zanussi fridge freezer/other devices?
A: Doubtful, maybe if it has a Qualcomm chip. If (in the unlikely event) you are keen to run this app on your non-tested device it can be made possible quite easily.
Q: What about my Note 7?
A: Sorry, I have no idea and I don't think this app will save you, or your house
Q: How often does the temperature update?
A: In the notification bar every 30 seconds. In the app itself (when open) every 10 seconds.
Q: Will this drain my battery?
A: Tests conclude it does not. All services, alarms, updates, etc are configured to NOT run when phone is in sleep. This app should never wake the phone. The app will stop updating when phone is sleeping and update as soon as phone is awake again. If you find a drain, please let me know!
Q: Whats with all the pretty colours?
A: So it might not be to your taste, I know it isn't the year 2000 anymore (or IOS for that matter), but I happen to like colours... The application notification is coloured in the following way:
Freezing and below
Cold (1-5C)
Cool (6-15C)
Optimal (16-29C)
Warm (30-39C)
Hot (40-44C)
Overheat (45C)
You should not charge li-ion batteries below 0C or above 45C. Within 5 degrees of each isn't really recommended much either...
Q: What logcat filters does this application use?
A: uk.org.bitservices.BattTemp.BSBootRecv and uk.org.bitservices.BattTemp.BatteryStats
Q: Will you include SafetyNet to stop rooted users from somehow using this mighty power to manipulate the battery temperature in order to fry bacon with their OnePlus?
A: No... just no.
Q: Why you sharing this junk?
A: I wrote this purely to "have a play" with Eclipse and Android development and the app itself purely for my own purposes. I am just posting it here in case anyone else may find it useful... if not, still nothing lost
Permissions - and why!
START ON BOOT: If the application service is started, it will resume the notification on boot. This permission allows this to happen.
Download - and how to use.
Download and install the APK (look in Attachments!)
To view temperature of battery, run the application.
To enable the notification bar icon, run the application, press the settings button and press 'Start Service'. Please note this will be persisted even after a reboot. To remove the icon go back into the application, press settings and press 'Stop Service'. Nice and simple :good:
XDA:DevDB Information
BattTemp, App for all devices (see above for details)
Contributors
rlees85
Source Code: https://gitlab.com/rlees85/BattTemp
Version Information
Status: Stable
Current Stable Version: 7
Stable Release Date: 2017-06-15
Created 2016-10-19
Last Updated 2017-06-15
Cheers! Giving this a try.

Extreme battery tweaks

I just sharing my setup for getting maximum from my one plus 6 battery without compromising performance and notification acess.
AFTER FULL TESTING I CAN SUERLY SAY EVERYTHING IS PERFECT I AM FRUSTRATED USER AFTER BUYING ONE PLUS 6 I NEVER GOT FULL DAY BATTERY PHONE DIES IN 10 HR AND 4 TO 5HR SOT.
MY SCREENSHOT SHOWING EVERYTHING NO FAKE NOTHING.
Video guide:
https://youtu.be/BKcZPNqahS0
REQUIREMENT :
1)Rooted
2)TWRP installed
3)Magisk installed
1) Flash magisk based extreme battery friendly ROM:
After installing xxx nolimits ROM finally i come to conclusion that this ROM is combination of performance and battery tweaks which does the 40% job done in our battery saving target
Now this rom is magisk based u have to download and flash magisk based rom zip from following thread if u want to change aspects for what to install what not to be download xxx no limits profile and edit it using filexplorer put it at root of sd card before flashing ROM.
DOWNLOAD LINK:
https://forum.xda-developers.com/on...xxx-nolimits-1-0-speed-ram-optimized-t3799167
This rom comes with all tweaks to save battery default which includes.
>battery savings build prop properties
>disabling playstore wake locks
>debolting(IF U WANT TO DELBOLT U R OOS ROM AT EXTREME LEVEL U HAVE TO CHANGE xxx no limits profile app that u want to remove just enable debolting by typing 1) NOTE: I AM NOT USING ANY DEBOLTING OF APPS
2)Franco kernel :
Suerly this kernel is god of battery savings kernels and its now available for one Plus 6
Combination of this kernel with NO LIMITS rom is just awesome.
Just flash this kernel in recovery after flashing xxx no limits rom
After reboot go to
> franko kernel updater app > Settings > performance profile > select power saving profile
U can also use balanced profile
DOWNLOAD LINK:
https://forum.xda-developers.com/oneplus-6/development/kernel-francokernel-r1-18th-june-t3806062
Franco kernel updater appPAID APP LINK FOR OLD FREE VERSION GIVEN IN VIDEO)
https://play.google.com/store/apps/...app&pcampaignid=APPU_1_vB4qW9_eKszlvgT0n5D4Dw
3)BLACKING OUT ROM:
So our phone got amoled screen so we can use this panel to maximize u r battery as per one survey amoled screen with maximum blacked out screen helps SOT to increase up to 2-3 hr and i tested it.
>Use best theme with total backed out link of
Swift black theme given in video description
Or u can download it from play store
OR U CAN USE OZONE SUBTRATUM THEMES WHICH COMES WITH XXX NO LIMITS ROM
>Install theme via subtratum and subtratum app is already available in no limits ROM.
4)ENABLE DOZE MODE FOR GOOGLE PLAY SERVICE :
First u have to check weather u r play services is using doze mode or not
Go to settings >battery> search for play services>see at bottom if its showing using battery optimization then. No need to follow this step
Other wise use this magisk module
Download:
https://drive.google.com/file/d/1TUkuYZB8XOahwJI4SAeqqhVCS46tjiQe/view?usp=drivesdk
Download module>go to magisk app> go to modules in left tab> click + icon at bottom then select file u have downloaded
It will get flashed automatically in magisk app then reboot.
5)USE greenify :
Download and enable greenify for most of apps that u don't use except apps like whatsapp, instagram as we need these apps regularly in touch.
(follow video steps in settings)
https://greenify.en.uptodown.com/android
6)MINOR setup :
> WIFI:
Go to settings > wifi> wifi preferences>advanced>Disable always on wifi scanning and disable keep wifi on during sleep
> Disable all vibrations
>Disable autobrrightness mode.
>disable sceen auto rotate mode from Settings
>Disable ambient display
Thats it after all u will get all U r performance without compromising U r battery and notifications.
I will post results with screenshot sooon.....
what repercussions could it have to doze play services? missing notifications or anything?
=dave= said:
what repercussions could it have to doze play services? missing notifications or anything?
Click to expand...
Click to collapse
Yes. You'll have to open each app to start the sync.
Only reason why I haven't kicked play sevices from my device. Some apps even use their own notification system but many rely on these services and that is a PIA.
Thanks but might as well put the phone in the drawer and don't use it.
Sent from my OnePlus6 using XDA Labs
ilia1985 said:
Thanks but might as well put the phone in the drawer and don't use it.
Sent from my OnePlus6 using XDA Labs
Click to expand...
Click to collapse
Or sometime u have keep u r screen on continously and di nothing 22 hr of SOT. ???
SO JOKES OVERED AFTER FULL TESTING I CAN SUERLY SAY EVERYTHING IS PERFECT. I AM FRUSTRATED USER AFTER BUYING ONE PLUS 6 I NEVER GOT FULL DAY BATTERY PHONE DIES IN 10 HR AND 4TO 5HR SOT.
MY SCREENSHOT SHOWING EVERYTHING NO FAKE NOTHING
...
I'm not sure about this setup. Way to many compromises.
From my experience when you get strong cellular signal and will remove all unnecessary activities, it enough to increase battery performance.
I'm getting better battery then the OP showed in photos. I only turn off all the Google account syncing and just sync contacts and calendar when I make changes. Restrict background data on apps that don't need it. I allow messaging apps, email and anything I need the download in the background like my browser. I'm getting 9 hours sot with 40 hours off charge with combined drain of 1.9%-3.4%. and I'm not neutering my phone like that.
x111 said:
I'm not sure about this setup. Way to many compromises.
From my experience when you get strong cellular signal and will remove all unnecessary activities, it enough to increase battery performance.
Click to expand...
Click to collapse
Yeah good point here my result with a good signal and actually no tweak just flashed elementalx kernel or flash kernel ...
Edit : I actually did only the stune tweak !
This is just from today and my averages. Off charge around 8am and it's 1:26pm now
Eric214 said:
I'm getting better battery then the OP showed in photos. I only turn off all the Google account syncing and just sync contacts and calendar when I make changes. Restrict background data on apps that don't need it. I allow messaging apps, email and anything I need the download in the background like my browser. I'm getting 9 hours sot with 40 hours off charge with combined drain of 1.9%-3.4%. and I'm not neutering my phone like that.
Click to expand...
Click to collapse
In 8 hr of SOT i continously used my phone mainly i edited my youtube video for complete 2hr using KINEMASTER this apps is major battery sucking app. I made the video uploaded to youtube, used wifi whole the day, using two whatsapp parellel apps syncronizing for each and every second as lots of messages. I never restricting baground process for any app, and not disabling sync of google account. Used camera lots a time, etc
I just installed the ROM and and kerbel from thread and blacked out my theme nothing else, extra tweaks given for major impact.
So its the matter of use what u r using and how u using , if u uses phone mainly for Gaming and heavy tasks then no tweak can work then how can u say u r better.
pankspoo said:
In 8 hr of SOT i continously used my phone mainly i edited my youtube video for complete 2hr using KINEMASTER this apps is major battery sucking app. I made the video uploaded to youtube, used wifi whole the day, using two whatsapp parellel apps syncronizing for each and every second as lots of messages. I never restricting baground process for any app, and not disabling sync of google account. Used camera lots a time, etc
I just installed the ROM and and kerbel from thread and blacked out my theme nothing else, extra tweaks given for major impact.
So its the matter of use what u r using and how u using , if u uses phone mainly for Gaming and heavy tasks then no tweak can work then how can u say u r better.
Click to expand...
Click to collapse
Your right, it is how you use your phone, but if I use my phone continuously, I have gotten over 13 hours. And WiFi is cheating on battery as it consumes less battery then LTE data signal, I'm never on WiFi... 100% always on data. I usually have 2+ hours of calls, YouTube throughout the day, Whatsapp with Photos and voice along with video, 30-50 emails a day with replies about 2 hours of web surfing. This is a typical day of work as 80% of that is for work. So not a gamer but I am a pretty heavy user throughout the day.
And you talk about Extreme Battery Tweaks and you don't do the simplest things like restrict background data on apps that have no need or business constantly syncing with nothing to sync? Seems odd.
Again based on your photo of usage... that shows significantly less use then what I do and still get more battery without Neutering my phone. You have nothing but your screen on, it's all phone idle and Android OS and Android system and cell standby all higher then any app or anything else. If mine looked like that I'd have 12 hours sot or more.
Oh and this was a light day as I was already heading home at 1:30pm today. I was more showing you my averages.
ilia1985 said:
Thanks but might as well put the phone in the drawer and don't use it.
Sent from my OnePlus6 using XDA Labs
Click to expand...
Click to collapse
:highfive: :laugh:
pankspoo said:
In 8 hr of SOT i continously used my phone mainly i edited my youtube video for complete 2hr using KINEMASTER this apps is major battery sucking app. I made the video uploaded to youtube, used wifi whole the day, using two whatsapp parellel apps syncronizing for each and every second as lots of messages. I never restricting baground process for any app, and not disabling sync of google account. Used camera lots a time, etc
I just installed the ROM and and kerbel from thread and blacked out my theme nothing else, extra tweaks given for major impact.
So its the matter of use what u r using and how u using , if u uses phone mainly for Gaming and heavy tasks then no tweak can work then how can u say u r better.
Click to expand...
Click to collapse
This is truly true. I also found out, that it makes a difference between watching a black screen and performing heavy tasks. Until now I was not totally sure, but you convinced me in this point. Thanks a lot.
Also thank you for your valuable contribution to this forum. I refer to #1:
Since you obviously know a lot about different tweaks of different roms and how they exactly work, could you perhaps elaborate on that? I would like to know how exactly the battery saving tweaks work, especially when compared to them of other roms. Also, how exactly the franco kernel performs so battery friendly compared to other kernels. For example, which settings do you apply (except “powersaving-mode”) and which tweaks of this kernel are responsible for this behavior compared to other kernels. Furthermore, why a franken-, flash- or other kernel are not battery-saving to the same extent.
As far as I understand, the combination xXx No Limits and Franco is the only correct one, if I understood #1 correctly (concerning battery life of course). This suggests that you also know other combinations. Please substantiate your claim and go deeper in your explanations to understand your modest determination correctly, as you really seem to know much about this topic.
Thank you again for sharing your expertise with us.
hi, I have rooted my oneplus 6 running on OOS 5.1.9. I have flashed the franco kernel. After installing the franco kernel updater its showing that my device is not supported. Also it doesnt show any performance profile in the menu. Cant you please help me in this regard? here are the screenshots:
Eric214 said:
I'm getting better battery then the OP showed in photos. I only turn off all the Google account syncing and just sync contacts and calendar when I make changes. Restrict background data on apps that don't need it. I allow messaging apps, email and anything I need the download in the background like my browser. I'm getting 9 hours sot with 40 hours off charge with combined drain of 1.9%-3.4%. and I'm not neutering my phone like that.
Click to expand...
Click to collapse
is there a way to restrict bg data on apps in a group? instead of doing it manually?
virtyx said:
is there a way to restrict bg data on apps in a group? instead of doing it manually?
Click to expand...
Click to collapse
Not that I've ever seen or heard of. It only takes about 5 in to go through them and set it up.
Guys i switched to liquid remix rom and its insanely battery friendly rom, give that rom a try along with tweaks.
Definitely mind blowing
I did not use any of this and I still can get 6.5hrs of SOT, without compromising anything,(not even using black theme).
isaacchook said:
I did not use any of this and I still can get 6.5hrs of SOT, without compromising anything,(not even using black theme).
Click to expand...
Click to collapse
I am not using any tweak and using liquid remix giving 9hr SOT with average use?

[GUIDE] Ways to decrease battery drain for poco

Hello guys,
I am happy to share some ways to decrease battery drain for which is problem for most poco stock miui non root users:
1- Go to every app you don't want on background (always active) and make it (restricted backgroud activity) through Settings-Manage app-choose your app-battery saver
2- For system app: you can do the same by going Settings-Manage app-choose your app-permissions-information icon-battery-choose first option and then restrict app
3- Network signals some times drains battery alot, you could decrease it by changing network bands by the following:
Go to dialer and write (*#*#4636#*#*)-phone information-set preferred network-choose LTE\CDMA\UMTS auto prl (tested on global rom was good), note that you need to change it again after every reboot
4- Disable adaptive limit battery option through Setting-battery&perfomance
5-Activate force close button through Setting-additional setting-buttons&gestures-close current app and choose shortcut you want, then at any app you should force close when you are finished with it.
6- Go to every MIUI app and disable automatic updates and recommendation receive
7- Disable location when you are finished through Setting-additional settings-privacy-location and also disable wifi scanning after every disable
8- Go to Google app through Settings-Google and disable every activity on it as you can
9- Install Greenify app from store and work with (non root device) and hibernate all apps you don't need as background
10- Disable automatic brightness, and also decrease the brightness as you can to save power
11- Go to settings-additional settings-privacy-special access-Battery optimization and then make all apps (optimized)
12-Go to settings-additional settings-authorization&revocation and then disable all apps except (updater-system app updater-feedback-battery&performance-Xiaomi sim activation-settings)
I hope these steps could help you and I'm waiting your comments for additional ways or correcting anything
Any review or test results ?
Just wondering wtf is even benefit of 4000mah battery if we need to disable every single app to get battery life. It's their optimisation not good with the latest stable build of miui
Hemudon said:
Just wondering wtf is even benefit of 4000mah battery if we need to disable every single app to get battery life. It's their optimisation not good with the latest stable build of miui
Click to expand...
Click to collapse
I think this is from Android system itself due to alot of system app running on backgroud
Hemudon said:
Just wondering wtf is even benefit of 4000mah battery if we need to disable every single app to get battery life. It's their optimisation not good with the latest stable build of miui
Click to expand...
Click to collapse
Its not their thing its an android thing. It gets heavier with every update, and since they (its a good thing gone bad) made a lot of those updates standalone of android version it makes like old tablets unusable over the yeras unlike them ipads.
That being said, the advantage of having 4000mah battery is that you still get through every day and have more than the usual midrange 3000mah phone. I get through any day for weeks now even playing games. The tips in this thread are awesome and apply to any phone.
I might as well advise you to clean your USB type-c port once in a while with toothpick since dusts can cause unnecessary wakelocks to your device
whrynox said:
I might as well advise you to clean your USB type-c port once in a while with toothpick since dusts can cause unnecessary wakelocks to your device
Click to expand...
Click to collapse
so strange
magaedy said:
so strange
Click to expand...
Click to collapse
Dust in the port really causes wakelocks. For proof, visit the BBS thread.
next guide will include stop using the phone and turning it off completely
Instead of doing all these, just spend a few bucks and get a powerbank.
magaedy said:
Hello guys,
I am happy to share some ways to decrease battery drain for which is problem for most poco stock miui non root users:
[...]
Click to expand...
Click to collapse
Hi magaedy, this list is very useful thank you very much.
Thanks to a RF detector, i found out that my Poco was emitting very often without being sollicited, now I know what to try first.
(In case you are interested in my setup, you can have a look on YouTube searching JaMa6iK4lbM).
Again thanks a lot, this forum is really interesting.
Regards.
GBoTwice said:
Hi magaedy, this list is very useful thank you very much.
Thanks to a RF detector, i found out that my Poco was emitting very often without being sollicited, now I know what to try first.
(In case you are interested in my setup, you can have a look on YouTube searching JaMa6iK4lbM).
Again thanks a lot, this forum is really interesting.
Regards.
Click to expand...
Click to collapse
I saw your video and cannot completely understand as it is very advanced but what I want to ask is if poco is emiting waves too much to be harmful on our health ?????
magaedy said:
I saw your video and cannot completely understand as it is very advanced but what I want to ask is if poco is emiting waves too much to be harmful on our health ?????
Click to expand...
Click to collapse
Hi magaedy, no, the Pocophone F1 has nothing special regarding its RF electromagnetic radiation, it is just that I own one and that I can do some tests with it. In terms of SAR (Specific Absorption Rate), the Poco even complies with the FCC threshold which is the most stringent.
As a personal point view, i would just avoid to keep it onto my body when i must upload big files, or onto my head for long phone calls, especially when i'm not sure about the RF coverage (bad coverage implies that the mobile emits at its full power, which is e.g. 2 watts in GSM 900).
Depending on my LED light, now I can tell for sure
Rgds,
GBoTwice
smatm said:
next guide will include stop using the phone and turning it off completely
Click to expand...
Click to collapse
I want that suggestion. Gonna try it now
1.Uninstall unused apps
2.Force stop every app
3.turn on airplane mode when u r not use phn.
4.stop few sensor-brightness,gyro,ambient(if there is any software to stop sensor forcefully pls reffer)
5.User suggest BO,i suggest battery optimize must be off
6.use magisk lkt-battery
7.*DONT PLAY PUBG* its a battery hunger demon.
smatm said:
next guide will include stop using the phone and turning it off completely
Click to expand...
Click to collapse
Very funny.
I like this recommendation very much.:fingers-crossed:
Cheers
sssyraj.
I would also wanted to add some battery saving tips:
1. Stick to only one, either Google or MIUI, cloud sync provider then disable everything you don't need on the other.
2. Go to Settings -> Permissions -> Other permissions -> Permissions (tab) -> Start in Background. Only choose the apps that you wanted permissions to receive notifications or third-party sync apps regularly. Others should be disabled. (IDK if this conflicts with MIUI's battery saver but I did it anyway).
3. Disable Double tap to wake or enable it in combination with pocket mode.
4. Put your phone on your pocket with display facing your leg. Prevents false trigger of FP scanner.
I have another suggestion. If using a custom ROM, don't install GApps. Instead use MicroG . I haven't done a side by side comparison, and I'll admit my usage today has been fairly lite, but so far my battery life is great!
I'm running the latest AOSiP ROM.
BentMetal said:
I have another suggestion. If using a custom ROM, don't install GApps. Instead use MicroG . I haven't done a side by side comparison, and I'll admit my usage today has been fairly lite, but so far my battery life is great!
I'm running the latest AOSiP ROM.
Click to expand...
Click to collapse
Dude could you please send me the link of microG please?
nosiobadx said:
Dude could you please send me the link of microG please?
Click to expand...
Click to collapse
I use the MicroG zip from here:
https://downloads.nanolx.org/NanoDroid/Beta/
If you also flash the f-droid zip, you should also install the f-droid extension module through Magisk.

Essential Tweaks

Hey everyone! Hope you're all doing fine. I just updated to Android 10, coming from AICP Pie, and I noticed that battery life took a serious hit compared to AICP. Now I know that AICP (and probably many other custom ROMs) use EAS by default, which could be credited for the great performance and battery life you get with these setups. This didn't stop me from conducting some tests and experimenting with some changes in order to try and improve the battery life I am getting on Android 10 (and possibly all previous versions of the stock ROM). Anyway, without further ado, here is a script that tweaks the phone a little, which should improve your phone's battery life on STOCK ROMs, mainly Android 10 but it is also applicable to Android 9, though I have mainly tested it on Android 10 and the deprecated developer previews and beta builds of Android 10. A link to download the script is provided down below, right below the prerequisites and instructions.
Prerequisites
1- An Essential PH-1 (of course!)
2- Magisk (make sure to have the latest version installed)
3- A terminal emulator app -- I use this one here:
https://play.google.com/store/apps/details?id=jackpal.androidterm
4- Any file manager app.
Instructions
1- Download the script from the link below.
2- For more convenience, move the script you just downloaded to the root of your internal storage (/sdcard) using any file manager if your choice.
3- Open the terminal emulator app.
4- Type "su" (without the quotes) and hit the enter/return key on your keyboard to grant it root access (Magisk could display a pop-up window asking whether you want to grant this app root access. Make sure to tap in Grant. This usually happens once).
5- Afterwards, type "sh /sdcard/essential-tweaks" (without quotes) and hit the enter/return key on your keyboard to execute the script.
6- Voila! You're done!
--> In case you think the script has caused any regressions your are dissatisfied with, simply reboot your phone since this script doesn't automatically get applied on boot.
--> In case you rebooted your phone and wish to re-apply the script, simply follow the same instructions again.
Download
G Drive: https://drive.google.com/file/d/101Z_Co7uVU_h2blanJ88MV8x9PpRcOvg/view?usp=drivesdk
Let me know your thoughts down below. Cheers!
Reserved
Reserved 2
Sounds interesting and I'd like to try it. I don't know if you know this though, but the file on Google Drive is set to "ask permission" to download it.
Tanner1294 said:
Sounds interesting and I'd like to try it. I don't know if you know this though, but the file on Google Drive is set to "ask permission" to download it.
Click to expand...
Click to collapse
Fixed. Sorry for inconvenience. Thanks for letting me know!
#justgoogledrivethings
Mostafa Wael said:
Hey everyone! Hope you're all doing fine. I just updated to Android 10, coming from AICP Pie, and I noticed that battery life took a serious hit compared to AICP. Now I know that AICP (and probably many other custom ROMs) use EAS by default, which could be credited for the great performance and battery life you get with these setups. This didn't stop me from conducting some tests and experimenting with some changes in order to try and improve the battery life I am getting on Android 10 (and possibly all previous versions of the stock ROM). Anyway, without further ado, here is a script that tweaks the phone a little, which should improve your phone's battery life on STOCK ROMs, mainly Android 10 but it is also applicable to Android 9, though I have mainly tested it on Android 10 and the deprecated developer previews and beta builds of Android 10. A link to download the script is provided down below, right below the prerequisites and instructions.
Prerequisites
1- An Essential PH-1 (of course!)
2- Magisk (make sure to have the latest version installed)
3- A terminal emulator app -- I use this one here:
https://play.google.com/store/apps/details?id=jackpal.androidterm
4- Any file manager app.
Instructions
1- Download the script from the link below.
2- For more convenience, move the script you just downloaded to the root of your internal storage (/sdcard) using any file manager if your choice.
3- Open the terminal emulator app.
4- Type "su" (without the quotes) and hit the enter/return key on your keyboard to grant it root access (Magisk could display a pop-up window asking whether you want to grant this app root access. Make sure to tap in Grant. This usually happens once).
5- Afterwards, type "sh /sdcard/essential-tweaks" (without quotes) and hit the enter/return key on your keyboard to execute the script.
6- Voila! You're done!
--> In case you think the script has caused any regressions your are dissatisfied with, simply reboot your phone since this script doesn't automatically get applied on boot.
--> In case you rebooted your phone and wish to re-apply the script, simply follow the same instructions again.
Download
G Drive: https://drive.google.com/file/d/101Z_Co7uVU_h2blanJ88MV8x9PpRcOvg/view?usp=drivesdk
Let me know your thoughts down below. Cheers!
Click to expand...
Click to collapse
Neat...
A kranel tweaker...
In my opinion:
The damn powerhint is probably the worst offender to battery...
Currently, with magisk, I just remove /vendor/etc/powerhint.xml
I am also using kernel touchboost so I can idle down to 300...
If your battery doesn't suck... You can switch back to 518 and 806 for minimum frequencies, disable msm touchboost, and kill the powerhint... And get MUCH closer to where you were with AICP on Pie
rignfool said:
Neat...
A kranel tweaker...
In my opinion:
The damn powerhint is probably the worst offender to battery...
Currently, with magisk, I just remove /vendor/etc/powerhint.xml
I am also using kernel touchboost so I can idle down to 300...
If your battery doesn't suck... You can switch back to 518 and 806 for minimum frequencies, disable msm touchboost, and kill the powerhint... And get MUCH closer to where you were with AICP on Pie
Click to expand...
Click to collapse
Is that similar to disabling perfd?
Because that is what I did (and incidentally what my script does).
Thanks a lot for your suggestion!
Mostafa Wael said:
Is that similar to disabling perfd?
Because that is what I did (and incidentally what my script does).
Thanks a lot for your suggestion!
Click to expand...
Click to collapse
No sir...
The powerhint has something to do with the PowerHals directly...
You'll notice if you watch any frequency monitor that when you touch the screen... It jumps to 1.1Ghz on both big and little ... That's NUTS...
It also will run the processor at 1.9 and 2.5 for 5 seconds on app launch... Also CRAZY and unnecessary
Perfd controls the profiles in /vendor/etc/... I think there's 8 of em...
And like mpdecision before it... It sucks...
On a side:
I've been on Q since beta 2... And have put together a magisk module that cuts frequencies down... 1.8 Max for little and 2.0 for big... Kills perfd... Kills the powerhint by replacing with a 0 byte file... Ups zram to 1 GB... And puts touchboost to 825 and 499...
I just incorporated your scheduler changes and I'll let you know what I come up with...
If you're interested in the module ... I'll share it .. just let me know
Edit: @KuranKaname approves the frequency choices BTW
rignfool said:
No sir...
The powerhint has something to do with the PowerHals directly...
You'll notice if you watch any frequency monitor that when you touch the screen... It jumps to 1.1Ghz on both big and little ... That's NUTS...
It also will run the processor at 1.9 and 2.5 for 5 seconds on app launch... Also CRAZY and unnecessary
Perfd controls the profiles in /vendor/etc/... I think there's 8 of em...
And like mpdecision before it... It sucks...
On a side:
I've been on Q since beta 2... And have put together a magisk module that cuts frequencies down... 1.8 Max for little and 2.0 for big... Kills perfd... Kills the powerhint by replacing with a 0 byte file... Ups zram to 1 GB... And puts touchboost to 825 and 499...
I just incorporated your scheduler changes and I'll let you know what I come up with...
If you're interested in the module ... I'll share it .. just let me know
Edit: @KuranKaname approves the frequency choices BTW
Click to expand...
Click to collapse
Yes I know about the max frequency values. These used to be the default in Kuran's AICP too
Interesting, so you mean to say that this is completely different from perfd? Well, I only disabled perfd and I am not seeing the phone jumping back to 1.1GHz while interacting with the screen or locking on max frequencies while launching apps.
Also, what command are you using to disable perfd on Q? I just found out that the usual "stop perfd" command is not working anymore like it used to on Pie :/
I used EXKM to disable it and it works just fine :good:
Let me know if my sched tweaks bring any further improvements to you. Cheers!
EDIT: these input boost frequency values used to be the ones Sultanxda go for too iirc right?
Mostafa Wael said:
Yes I know about the max frequency values. These used to be the default in Kuran's AICP too
Interesting, so you mean to say that this is completely different from perfd? Well, I only disabled perfd and I am not seeing the phone jumping back to 1.1GHz while interacting with the screen or locking on max frequencies while launching apps.
Also, what command are you using to disable perfd on Q? I just found out that the usual "stop perfd" command is not working anymore like it used to on Pie :/
I used EXKM to disable it and it works just fine :+1:
Let me know if my sched tweaks bring any further improvements to you. Cheers!
Click to expand...
Click to collapse
Interesting ..
stop perfd
getprop|grep perfd yields the service has stopped for me
rignfool said:
Interesting ..
stop perfd
getprop|grep perfd yields the service has stopped for me
Click to expand...
Click to collapse
Weird. I will check again when I am home.
Thanks for chiming in! :highfive:
Mostafa Wael said:
Weird. I will check again when I am home.
Thanks for chiming in! :highfive:
Click to expand...
Click to collapse
Interesting... I just put back the powerhint... While stopping perfd and now it's listening ... I wonder if I came up with that when I had the typo in my script...
Thanks for forcing me to debug...
---------- Post added at 02:30 PM ---------- Previous post was at 02:18 PM ----------
Mostafa Wael said:
Weird. I will check again when I am home.
Thanks for chiming in! :highfive:
Click to expand...
Click to collapse
OHHHH...
Are you using service.d to run your script?
If so... You need
while [ "$(getprop sys.boot_completed)" != 1 ];
do sleep 1;
done
sleep 5
Before... Otherwise init gonna reset your stuff...
And post-fs-data.d is WAAY too early
So I have been doing a lot of tracing and testing some new changes and, well, I think it is very difficult to squeeze any more battery life on stock ROMs. Which means that it is highly unlikely that this script is going to be updated with new additions as this is practically the best we could reach at the moment. However, I will keep digging deep and see if I can come up with any updates.
To put things into perspective, here is a quick comparison with the default stock ROM tunings.
By default, I would get an average active drain of 14%/h per charge cycle, peaking at 16%/h
After applying this script the average active drain rate would drop to around 12-13%/h, peaking at 15%/h.
In other words, there is around 1-2%/h improvement in active drain rate as per my usage.
Idle drain rate is fairly similar though.
Mostafa Wael said:
So I have been doing a lot of tracing and testing some new changes and, well, I think it is very difficult to squeeze any more battery life on stock ROMs. Which means that it is highly unlikely that this script is going to be updated with new additions as this is practically the best we could reach at the moment. However, I will keep digging deep and see if I can come up with any updates.
To put things into perspective, here is a quick comparison with the default stock ROM tunings.
By default, I would get an average active drain of 14%/h per charge cycle, peaking at 16%/h
After applying this script the average active drain rate would drop to around 12-13%/h, peaking at 15%/h.
In other words, there is around 1-2%/h improvement in active drain rate as per my usage.
Idle drain rate is fairly similar though.
Click to expand...
Click to collapse
hello. Thanks for your work. It's nice and works very well.
How I can add this script to autorun?
P.S. Here is screenshots of my battery life after tweaks
@Mostafa Wael Hey mate, do you remember what the experiment was that you wanted to do recently ?
Was meant to help with smoothness and battery on Android 10?
St.Noigel said:
hello. Thanks for your work. It's nice and works very well.
How I can add this script to autorun?
P.S. Here is screenshots of my battery life after tweaks
Click to expand...
Click to collapse
I really don't have any idea, I just run then every time after boot via terminal emulator ?
CamoGeko said:
@Mostafa Wael Hey mate, do you remember what the experiment was that you wanted to do recently ?
Was meant to help with smoothness and battery on Android 10?
Click to expand...
Click to collapse
Well, it was a desperate attempt by me to try and squeeze more juice on Android 10 custom ROMs, not sure it will work out on stock ROM. Basically, I am experimenting with different values for the cpusets and stune settings of each cgroup.
I'm still evaluating whether it has a significant impact or not. So far, it is almost the same...
Mostafa Wael said:
Well, it was a desperate attempt by me to try and squeeze more juice on Android 10 custom ROMs, not sure it will work out on stock ROM. Basically, I am experimenting with different values for the cpusets and stune settings of each cgroup.
I'm still evaluating whether it has a significant impact or not. So far, it is almost the same...
Click to expand...
Click to collapse
If you're running Artemis... You're wasting you're time...
Military Dictator @KuranKaname does not allow for the powerhal to accept adjustments from stune other than what HE deems required ...
You MIGHT be able to adjust scheduler values and have them mean something ...
rignfool said:
If you're running Artemis... You're wasting you're time...
Military Dictator @KuranKaname does not allow for the powerhal to accept adjustments from stune other than what HE deems required ...
You MIGHT be able to adjust scheduler values and have them mean something ...
Click to expand...
Click to collapse
Cpuset and stune values are open (besides the top-app stune boost)
I'm using elementalx kernel on android 10 nov update, and my battery drain in deep sleep is unusually high at 2 - 2.5% per hour.
I'm wondering if this script conflicts with anything with the kernel.
I took a look at the script and it looks like some of the settings I can apply in the kernel manager.

Categories

Resources