P2 battery life issue - changing kernel govenor settings on Lineage OS 15.1 - Android General

I have a Lenovo P2. My carrier has not provided any OTA updates since an old Android 6 version, before the Spectre/Meltdown issues, so once the warranty expired I installed Lineage OS, now 15.1.
Only problem is that the battery life is significantly reduced. This is while using the second-slowest setting before battery saving mode in Lineage.
I want to try to change the kernel governor settings to see if I can improve this. I think I need root access to do so and tried installing Magisk as it seemed the most user friendly. When trying to flash the 16.0 and 17.0 zips in TWRP (newest) for the P2 kuntao, it fails as it cannot mount the /vendor partition. Posts suggests this problem has come and gone before, and that basically Lineage 15.1 doesn't try to cater for Magisk, rather the philosophy is that root/SU access is either there or not, no trying to circumvent SafetyNet checks etc.
Does anybody know a solution to (in order of priority):
1) Improve the battery life issue.
2) Change the governor settings without root (defaults settings in Lineage OS appear to not be well suited for Lenovo P2).
3) Install Magisk.
4) Recommend a good alternative Android ROM or perhaps just a kernel, which I can adjust power settings for, but still allows security-sensitive programs such as banking apps etc.
Thank you!
More details: Various battery analyser programs including Better Battery Stats don't seem to uncover any programs (and I have no social media apps). I sync manually and generally have WiFi turned off (no secret scanning) and also the screen turned off (no double tapping to unlock). The culprit appears to be system standby (not radio, its usage is reassuringly low). Reading posts suggests that the CPUs are governed too high when in standby and that the best thing to try at this point is to adjust the kernel governor settings. I don't particularly want to root (I develop software, but don't know much about linux), however it seems it is necessary to do so.

Related

[TIP]Getting the best out of your phone.

HEATING:
Heating while charging isn't an issue pls. You can let your phone cool down before charging it in a cool place. You can either power it off or put it on Airplane mode while charging. (This will reduce the charging time and also some activities by apps which slow the charging) Heating is normal while charging owing to the Quick Charge x.0 capability of Qualcomm Snapdragon 617 (MSM8952). It will heat up. Heating is reduced in the latest builds, especially while recording video via the camera. This semi-budget oriented processor isn't designed for heavy gaming pls, despite 3GB of DDR3 RAM available to it. If you're a hard core gamer or someone who likes to overclock stuff, this isn't the right phone.
If you feel your phone is heating with normal usage too, consider removing apps which are useless and clear the cache followed by a reboot. See to it that the apps are updated. You can switch to WiFi instead of Mobile Data (keeps my athene cool idk why). If nothing works, consider a factory reset; else shift to a custom ROM if you can and test.
PERFORMANCE:
General phone performance of Nougat has been better than Marshmallow for sure, but for many, 7.0 has had the notification drawer stuttering issue in some cases and Bluetooth being turned on automatically after turning Airplane mode ON. Overall experience is smooth. But many people do not like stock ROM very much, because of the lack of features. AOSP and LineageOS based ROMs are much better that stock in terms of speed. For god's sake don't use the task killer apps or battery savers like CCleaner / CleanMaster/ DU Battery Saver. Apps staying in the memory (RAM) are good for your device until your phone is lagging. Clearing the things from the recents panel will force them to start again from scratch, consuming the CPU and of course the battery.
BATTERY & CHARGING:
Stock N wasn't very good in terms of battery after all in comparison to MM despite the improved doze mode introduced in Nougat. Well this is the case in almost every android OEM that the battery performance went down in transition from one Android version to another. However, the March 1 update is said to fix a bit of battery and security issues. Android has the habit of collecting garbage (but that makes it smart too) and this can be one of the reasons why battery and performance issues occur after an OTA. The best thing after a "dirty/problem causing" update is to do a factory reset. Anyways, it is advised to clear the cache before and after doing an update. For god's sake don't use the task killer apps or battery savers like CCleaner / CleanMaster/ DU Battery Saver. Apps staying in the memory (RAM) are good for your device until your phone is lagging. Clearing the things from the recents panel will force them to start again from scratch, consuming the CPU and of course the battery.
Battery Saving and charging Tips:
Please understand the difference between Screen On time of a complete cycle and the usage time. People start judging the battery from the estimated time left after the first charge itself. A tip is to fully charge the battery after a clean flash and then let it drain till 15%. Do not let the battery drain completely, Li-ion batteries lose their capacity over time and are designed to run between 20-100 percent. Battery life of your phone is completely dependant on your usage. Turning off Auto-Rotation, WiFi, Bluetooth, Sync, Mobile Data, Location Services and scanning (almost everything ) when not needed can give you the best battery life possible. You can consider using Greenify although you should avoid any such thing. Android learns how you use it, no need to comment about the 2 H SOT you're getting after a clean flash. You might also want to uninstall the useless apps and block the wakelocks (which you understand) if possible. Turn off the SIM card if it's in very low network. If nothing is helping you, you might consider doing a factory reset too.
Checkout this amazing thread by @rirozizo and the video by XDA TV.
https://www.youtube.com/watch?v=3Zt2j8lFbJQ
Ghost Touch: Your touchscreen is at fault. Visit the service center please.
Screen Retention: Your display is defective. Turning the phone off for a while and then setting blue light filter at 5% for Black colour or changing the RGB values is a temporary fix. Visit the service center please.
Random Reboots: Try factory resetting your device, see if you installed something wrong and flash latest stock firmware, just in case, you know. Else the service center only can fix the issue if still present.
For not being called a noob:
1. Read XDA and other forums and think before you do anything to your phone.
2. Ask in the community if you have doubts. (Read Rules and XDA University's New User's guide first)
3. Always make backups before flashing new things. (Use TitaniumBackup and TWRP backups)
Check the videos by XDA-TV and Rootjunky ( @Tomsgt )
https://www.youtube.com/watch?v=_rEsgCrvEqY
https://www.youtube.com/watch?v=nyr3FstDKH0&index=1&list=PLgLZvFga2ml4Atl32E4c_ZslfrTJJDUfr
https://www.youtube.com/watch?v=j-i59R51Cys
4. See this video by XDA-TV:
https://www.youtube.com/watch?v=JmvCpR45LKA
5. Stop using useless apps and be patient pls.
Valar Morghulis!
Good thread, I'll add a couple of my tips here.
- ohmergerd, there's thousands of ROMs for the G4! Which ones are the best???? Nearly every single ROM for the G4 subtracting perhaps GZR ROMs and RevivorOS/optimized stock is LineageOS based (Invicta is basically Lineage with MM kernel blobs and faux/OMS integrated). There's basically no performance differences, just feature differences based on the discretion of the dev.
- If heating is STILL an issue for you, disable the 4 big cores. There isn't a significant difference in everyday use- the LITTLE cluster handles the UI and basic apps anyway.
- Haven't noticed notification bar lag since the 7.1.2 builds. If you have lag (depending on your ROM), using blur or transparency helps trick your eyes into seeing no lag. If lag persists, force enable scrolling cache and speed up the animations.
- If you have a custom kernel and your RAM usage isn't an issue, disable KSM, Adaptive Memory Killer, and/or ZRAM and Kernel Adiutor/EXKM. While useful if you let your memory use skyrocket, if you are conservative in your memory use these memory killers just suck up CPU cycles.
- Build prop tweaks/L Speed/HEBF don't work. Completely placebo, except for governor tweaks.
- USB-OTG is great, I recommend getting a dongle if you're a flashaholic. Much easier and quicker to simply plug in your USB to flash instead of plugging in your phone, transferring the ROM, flashing, etc.
- Use a trickle charger, and save that fast charger for emergencies (camping, flights, etc.).
- Disable a bunch of Google's **** in settings- I advise going through Activity controls as Google takes snippets of keyboard input, voice, web history, video history, etc. This adversely affects battery life especially if you have a weak signal, as Google Play Services continuously attempts to push through their telemetry data. This is also why you get 2hrs of SoT after a clean flash.
- On stock-based ROMs (to eliminate lag), boot the ROM once, then reboot to recovery and flash the latest Aroma GApps package with the apps you want. Then, mount /system, and start deleting all apps in /system/app or /system/priv-app that begin with "3c". This effectively removes Motorola updates and telemetry, and also updates your GApps- the stock GApps are very old, and updating them caused Play Store errors and miscellaneous battery sucking services.
- Mr. Shield Protectors suck. Badly cut-out, misaligned, etc.
Hard reset: A term with the common misconception here in the group. Hard reset means nothing in android smartphones. It is only a term for older computers where you manually had to reset the old electrical parts from the charge they held.
Factory reset via the settings is equivalent to the Wipe Data/Factory reset available in the stock recovery.
Also, always sign out from your Google account before doing the wipe, else chances are your device may enable Factory Reset Protection and lock the device.
Normally my phone was using two BIG cores (and the four LITTLE ones). Each core was utilized around 40-60%.
Withing kernel manager I have set the minimum value for the BIG cores to 1 and I have lowered the minimum frequency value for that core. Now the utilization on that core is close to 100%.
Now the phone is cold all the time (except when charging with the Fast Charger) and I have no lag issues whatsoever.
Oh, btw, on some kernels (EX 1.07, Vegito), workqueue power saving is built in which iirc tries to schedule tasks on the fewest cores as possible, so on these kernels which tend to turn off cores and lower frequencies while asleep the wakeup action, especially while dozing, the wakeup action will be met with significant lag/delay.
If you have a delay when turning on your phone with these kernels (or even stock kernels for some ROMs), disable the setting called wq_power_saving.
I have the solution for random reboots. But only for those devices that reboots 4 or 5 times every day. Just open your device and disconnect the battery for 30 minits. Or also you can change the battery (confirmated it works)
negusp said:
Good thread, I'll add a couple of my tips here.
- ohmergerd, there's thousands of ROMs for the G4! Which ones are the best???? Nearly every single ROM for the G4 subtracting perhaps GZR ROMs and RevivorOS/optimized stock is LineageOS based (Invicta is basically Lineage with MM kernel blobs and faux/OMS integrated). There's basically no performance differences, just feature differences based on the discretion of the dev.
- If heating is STILL an issue for you, disable the 4 big cores. There isn't a significant difference in everyday use- the LITTLE cluster handles the UI and basic apps anyway.
- Haven't noticed notification bar lag since the 7.1.2 builds. If you have lag (depending on your ROM), using blur or transparency helps trick your eyes into seeing no lag. If lag persists, force enable scrolling cache and speed up the animations.
- If you have a custom kernel and your RAM usage isn't an issue, disable KSM, Adaptive Memory Killer, and/or ZRAM and Kernel Adiutor/EXKM. While useful if you let your memory use skyrocket, if you are conservative in your memory use these memory killers just suck up CPU cycles.
- Build prop tweaks/L Speed/HEBF don't work. Completely placebo, except for governor tweaks.
- USB-OTG is great, I recommend getting a dongle if you're a flashaholic. Much easier and quicker to simply plug in your USB to flash instead of plugging in your phone, transferring the ROM, flashing, etc.
- Use a trickle charger, and save that fast charger for emergencies (camping, flights, etc.).
- Disable a bunch of Google's **** in settings- I advise going through Activity controls as Google takes snippets of keyboard input, voice, web history, video history, etc. This adversely affects battery life especially if you have a weak signal, as Google Play Services continuously attempts to push through their telemetry data. This is also why you get 2hrs of SoT after a clean flash.
- On stock-based ROMs (to eliminate lag), boot the ROM once, then reboot to recovery and flash the latest Aroma GApps package with the apps you want. Then, mount /system, and start deleting all apps in /system/app or /system/priv-app that begin with "3c". This effectively removes Motorola updates and telemetry, and also updates your GApps- the stock GApps are very old, and updating them caused Play Store errors and miscellaneous battery sucking services.
- Mr. Shield Protectors suck. Badly cut-out, misaligned, etc.
Click to expand...
Click to collapse
Thanks for the tips.
Using Root explorer I deleted the 3c stuff and updated the Gapps via Aroma installer (never knew this Aroma version existed).
Where do I find the Activity controls thing?
bluegrass55 said:
Thanks for the tips.
Using Root explorer I deleted the 3c stuff and updated the Gapps via Aroma installer (never knew this Aroma version existed).
Where do I find the Activity controls thing?
Click to expand...
Click to collapse
It's in settings>Google, first 3 menus iirc.
i just had to unroot, re-lock my boot, and flash the latest firmware because someone has been hacking my phone. I purchased a Samsung phone and been switching the SIM between phones. I wish custom ROMs were more secure, flashing every ROM available, some took longer then others. After seeing that the Samsung KNOX wasnt able to be hacked, i decided to flash your stock N package. They are yet to get in my XT-1644 since earlier after the flash.
Am i stuck on the Stock ROM or is there a way to keep from getting a rooted with unlocked bootloader, hacked?

simples tips and tricks to make this device awesome right now

with stuff we got :angel:
Here are mines, mostly based on personnal/subjective stuff, but I spent quite some time digging this out for me so let's share.
Whats the best custom ROM LOLOLOL ?
AICP might be https://forum.xda-developers.com/lenovo-p2/development/7-1-1-aicp-12-1-n-7-1-1rxx-lenovo-p2-t3576216
Provided you want those extra shiny custom things built over Lineage.
This is to my knowledge the only custom ROM here receiving OTA updates (correct me if I'm wrong). Nightly updates.
RR feels more polished, but no updates since second release and issues updating Magisk. (Well some had, other didn't, I know I did).
On a side note RR can go MicroG way using those scripts for more privacy and battery related interests https://forum.xda-developers.com/android/development/microg-unofficial-installer-t3432360
Haven't tried with AICP yet.
This is a subject on his own, so tell me if you're interested. Otherwise go OpenGapps ARM64/7.1 http://opengapps.org/ (I suggest Pico then you install everything else you might need from google on the playstore).
Mandatory custom Rom stuff
1- No Volte.
2- No Volte, at least for a long long time.
3- Stop asking.
4- No fingerprint back button. 3rd party app might do the trick, but everyone should use the mighty copied but never surpassed pie https://forum.xda-developers.com/showthread.php?t=1330150 ... And never need anything else again to control their phone.
4- If you experience idle battery drain reported as usb related by good monitor apps like Better Battery Stats, just remember to plug and unplug AC after each reboot. Not too tedious.
5- Use this mehod to get LED notification back https://forum.xda-developers.com/lenovo-p2/themes/lenovo-p2-rooted-custom-led-t3589859
-This got people confused: LED codes are to be entered in each Notification events, and it doens't matter if the main LED controller indicate it's grey, it wont be cause you're using the other one.
-Light Flow is acually awesome and doesn't drain any noticeable amount of juice contrary to what I red.
-If you want to get rid of the perma notif (works as well for LMT pie), don't use legacy version, just block the notification from android by longpressing on them. I will then work without trouble. Don't battery optimize it though.
6- Fast charge should works as expected, although not notified on lockscreen (but the timer will give you a hint).
7- "Battery life is not as good as it is on stock". I haven't made extensive tests being allergic to stock looks and lack of custom-ability, but I can tell you battery life on Aicp is STELLAR with a few tricks:
- battery optimize google play service. Oh yes ! It will works as usual.
Then choose carefully what apps absolutly needs to be left alone on that matter, they are few.
No need for greenify anything anymore unless you have some really "rogue" app (and in that case they should be disinstalled anyway).
- perma-run on data saving mode even in wifi (add your usual wifi at the bottom of the page).
You don't need anyone phoning home on your back anyway, only authorize the apps that absolutly can't do without internet.
Along those one are google contacts and agenda sync (not the apps themselves, another satellites ones). If you use google sync that is to say.
- Disable this 90% of your apps that don't need to run in background or at boot into the advanced mode of the privacy menu.
- Bonus round: manually sync everything including markets, disable all those apps that want to notify or check about things you don't care, get a nice black substratum theme like Flux, maybe make use of the suspend action function (incuded in Aicp and RR) that switch data and gps when screen is off.
Battery might even looks like it recharges itself now what a phone on that matter.
On the contrary speaking about where it falls short:
Sound sucks
Well, it's not that good, not Audiophile one bit. As a music addict I felt really bothered. Highly subjective matter, but after trying many many things I finally got my butt kicked trough my hear with this combination only: Ahrion Dolby https://forum.xda-developers.com/android/apps-games/soundmod-axon-7-dolby-atmos-t3412342 + Ainur Audio https://forum.xda-developers.com/android/software/soundmod-ainur-audio-t3450516
Procedure to install them both was a bit tricky:
-distinstalling Dolby with provided .zip
-installing Sauron (disinstall/install as OP says)
-disinstall Audiomod in Magisk
-re-install Dolby. Wich re-installs Audiomod.
Then sonic bliss !
More to come.
duck from space said:
With stuff we got :angel:
Here are mines, based on personnal/suggestive stuff, but I spent quite some time digging this out for me so let's share.
Whats the best custom ROM LOLOLOL ?
AICP might be https://forum.xda-developers.com/lenovo-p2/development/7-1-1-aicp-12-1-n-7-1-1rxx-lenovo-p2-t3576216
Provided you want those extra shiny custom things built over Lineage.
This is to my knowledge the only custom ROM here receiving OTA updates (correct if wrong I know you will). Nightly updates.
RR feels more polished, but no updates since second release and issues updating Magisk. (Well some had, other didn't, I know I did).
On a side note RR can go MicroG way using those scripts for more privacy and battery related interests https://forum.xda-developers.com/android/development/microg-unofficial-installer-t3432360
Haven't tried with AICP yet.
This is a subject on his own, so tell me if you're interested. Otherwise go OpenGapps ARM64/7.1 http://opengapps.org/ (I suggest Pico then you install everything else you might need from google on the playstore).
Mandatory custom Rom stuff
1- No Volte.
2- No Volte, at least for a long long time.
3- Stop asking.
4- No fingerprint back button. 3rd party app might do the trick, but everyone should use the mighty copied but never surpassed pie https://forum.xda-developers.com/showthread.php?t=1330150 ... And never need anything else again to control their phone.
4- If you experience idle battery drain reported as usb related by good monitor apps like Better Battery Stats, just remember to plug and unplug AC after each reboot. Not to tedious.
5- Use this mehod to get LED notification back https://forum.xda-developers.com/lenovo-p2/themes/lenovo-p2-rooted-custom-led-t3589859
-This got people confused: LED codes are to be entered in each Notification events, and it doens't matter if the main LED controller indicate it's grey, it wont be cause you're using the other one.
-Light Flow is acually awesome and doesn't drain any noticeable amount of juice contrary to what I red.
-If you want to get rid of the perma notif (works as well for LMT pie), don't use legacy version, just block the notification from android by longpressing on them. I will then work without trouble. Don't battery optimize it though.
6- Fast charge should works as expected, although not notified on lockscreen (but the timer will give you a hint).
7- "Battery life is not as good as it is on stock". I haven't made extensive tests being allergic to stock looks and lack of custom-ability, but I can tell you battery life on Aicp is STELLAR with a few tricks:
- battery optimize google play service. Oh yes ! It will works as usual.
Then choose carefully what apps absolutly needs to be left alone on that matter, they are few.
No need for greenify anything anymore unless you have some really "rogue" app (and in that case they should be disinstalled anyway).
- perma-run on data saving mode even in wifi (add your usual wifi at the bottom of the page).
You don't need anyone phoning home on your back anyway, only authorize the apps that absolutly can't do without internet.
Along those one are google contacts and agenda sync (not the apps themselves, another satellites ones). If you use google sync that is to say.
- Disable this 90% of your apps that don't need to run in background or at boot into the advanced mode of the privacy menu.
- Bonus round: manually sync everything including markets, disable all those apps that want to notify or check about things you don't care, get a nice black substratum theme like Flux, maybe make use of the suspend action function (incuded in Aicp and RR) that switch data and gps when screen is off.
Battery might even looks like it recharges itself now what a phone on that matter.
On the contrary speaking about where it falls short:
Sound sucks
Well, it's not that good, not Audiophile one bit. As a music addict I felt really bothered. Highly subjective matter, but after trying many many things I finally got my butt kicked trough my hear with this combination only: Ahrion Dolby https://forum.xda-developers.com/android/apps-games/soundmod-axon-7-dolby-atmos-t3412342 + Ainur Audio https://forum.xda-developers.com/android/software/soundmod-ainur-audio-t3450516
Procedure to install them both was a bit tricky:
-distinstalling Dolby with provided .zip
-installing Sauron (disinstall/install as OP says)
-disinstall Audiomod in Magisk
-re-install Dolby. Wich re-installs Audiomod.
More to come.
Click to expand...
Click to collapse
Quick question what's micro g?
MicroG allows you to use Gapps without Playservices, thus gaining more control over your battery and privacy while having a still fully functionning phone.
Btw RR was updated 2 days back.
Thanks for all the detailed info.
On the subject of
Camera sucks
I'd very like to hear if someone has dug the most optimal app and settings for this phone.
I'm not really into photo and the few pic I've taken outside looks perfectly fine to my noob eyes.
But on a few occasion I like to storm photos on something and that's better be ok shots :good:
- perma-run on data saving mode even in wifi (add your usual wifi at the bottom of the page).
-You don't need anyone phoning home on your back anyway, only authorize the apps that absolutly can't do without internet.
-maybe make use of the suspend action function (incuded in Aicp and RR) that switch data and gps when screen is off.
Can't find suspended action
I'm not able to understand above mentioned things please explain a those if possible.
I'm in aicp latest build.
Sent from my Lenovo P2 using Tapatalk
Data save mode is an android feature found into the data consumption menu.
Suspend action is a custom rom feature found in the custom rom options of RR and AICP. RR has a tile for it, AICP doesn't.
This Custom Ron is great, way better than i expected.

[GUIDE] How to improve performance and battery life on Nokia 3

Hello guys, I'm going to show you how to improve battery performance and battery life for Nokia 3. I will separate guide for Battery and Performance, Easy and Advanced steps. It will be best to have unlocked bootloader, TWRP, Magisk root and to be on Android Nougat so you can accomplish all steps.
Performance
Easy steps:
1. Don't use multitasking on this device, only use 1 app in background.
2. Don't use phone while charging (it slows down your phone and affect battery - overheating)
3. I'm using Android 7.1.1 December SP which is in my opinion most stable and battery friendly so if you have issues flash this ROM with OST LA.
Advanced steps:
1. Remove encryption (this significantly improves performance, especially on low end phones like this, it works only on Nougat), https://forum.xda-developers.com/no...oving-encryption-twrp-recovery-t3758814/page2 look at last post.
2. Install Low RAM property patcher (this basically treats your device like Android GO device and decreases RAM consumption.).
https://forum.xda-developers.com/an...mod-low-ram-property-patcher-android-t3737373
3. Uninstall system apps that you don't need.
https://forum.xda-developers.com/nokia-3/how-to/guide-how-apps-uninstall-t3804425
Battery
Easy steps:
1. Decrease your brightness to minimum
2. Change network mode to 2G or 3G (choose most stable network that have 3-4 bars to avoid big battery consumption)
3. Uninstall battery hungry apps like Facebook, Messenger and use alternative app like SlimSocial (it have facebook with messenger at only 600kb)
4. Go to Settings > Apps > Battery optimization and enable battery optimization for all apps that are not optimized (some apps can't be optimized, so just leave it like that).
Advanced steps:
1. Install Enable Doze for GMS Magisk module, it allows Google Play service to be dozed.
2. Follow this useful guide for better lasting battery over years and how to avoid battery degradation.
https://forum.xda-developers.com/axon-7/how-to/guide-how-to-avoid-battery-degradation-t3789740
btw you shouldn't use quick charge for this phone, it is not supported for reasons also Battery Charge Limit app is not working for Nokia 3.

The possible best and functional alternative to Kernel Adiutor

the title says it all, but not to leave them with later doubts, I tell you: I have installed Cyanogenmod with Android 5.1, which of course I'm going for luxury. The detail is that I currently use Kernel Adiutor for CPU / GPU settings and the extras it has. the detail is that I do adjustment after adjustment and then ... it comes to work, unfortunately I have problems with other applications and I must be making adjustments every so often. I have some settings (at the moment) so I can use it for PUBG (which gives in some cases flaws in sound and after some time the application fails completely forcing the phone lock (S3 Neo)). I must resort to the application to give a half solution that finally does that, solve the problem halfway .. Because of the "half solution" I've been doubting if the application itself runs the changes above (a placebo effect), this is because the device once in even with the minimum CPU / GPU settings the phone starts to behave slowly (as is normal) but also consumes a large amount of battery, in the afternoon watching streaming (through medium settings in the application) the battery It drops quickly, from 52% to 9% in an average time of 10 minutes, I was finding out if I changed the application for an at least more durable alternative to Kernel Adiutor (like SetCPU or similar) but I doubt that they are compatible with the version of Android that I own or, if it will also apply placebo effect, as I am beginning to notice.
And if in case of mentioning the battery, it is better not to say anything about it since it is not battery failure. It's the same one that I've always owned, plus, unlike this one, it worked better via Stock for obvious reasons.

battery idle mode?(bypass charging)

Is there anyway way to get this feature
I think it should be a default feature in android in general
The asus rog phone got it officially as "bypass charging" in a new update
In a nutshell the feature allows the phone to use power directly from the charger bypassing the battery altogether this is especially good for gamers and long sessions because u can use the phone without wasting even a fraction of battery life cycle
It can extend battery life a great deal.
After some searching I found out it can be done with a magisk module called advanced charging controller
Any chance we can implement this in a flashable zip or in a rom without the need for rooting?
It is certainly possible since there is kernels that support this for some devices and since it was implemented on the asus rog phone 3 by a software update
.. it's explained in detail here https://android.stackexchange.com/q...tery-but-use-connected-power-to-run-the-phone
This could be a very interesting feature.
For exemple I drive all day long with android auto and this could be a real life saver for the battery.
Zaboon26 said:
This could be a very interesting feature.
For exemple I drive all day long with android auto and this could be a real life saver for the battery.
Click to expand...
Click to collapse
True
eddie1 said:
After some searching I found out it can be done with a magisk module called advanced charging controller[/url]
Click to expand...
Click to collapse
Battery idle mode needs kernel support to be possible, and this phone's kernel does not support it--not on stock (global), and not on Xiaomi.eu. ACC cannot turn on something that isn't available. And there are no third party kernels for this phone on this site. The closest thing you can do is get a low wattage charger that can only supply roughly the same amount of current the phone is using. Charging from a laptop's USB port might be suitable. This obviously does not require root, but will slowly charge or discharge the battery. The effect will be almost the same as battery idle mode, except that you may still end up charging the battery a bit while the phone is warm, which is not ideal. It should still be better than charging at high current as you would with the OEM charger and cable.
If you charge slowly as recommended above, ACC can be complementary. ACC can stop charging when your battery reaches a certain percent, so can operate the battery in a less stressful region, such as 60-80%.
fenstre said:
Battery idle mode needs kernel support to be possible, and this phone's kernel does not support it--not on stock (global), and not on Xiaomi.eu. ACC cannot turn on something that isn't available. And there are no third party kernels for this phone on this site. The closest thing you can do is get a low wattage charger that can only supply roughly the same amount of current the phone is using. Charging from a laptop's USB port might be suitable. This obviously does not require root, but will slowly charge or discharge the battery. The effect will be almost the same as battery idle mode, except that you may still end up charging the battery a bit while the phone is warm, which is not ideal. It should still be better than charging at high current as you would with the OEM charger and cable.
If you charge slowly as recommended above, ACC can be complementary. ACC can stop charging when your battery reaches a certain percent, so can operate the battery in a less stressful region, such as 60-80%.
Click to expand...
Click to collapse
It's actually possible even without kernel support
There is a generic way using acc
Here is a screenshot from the acc GitHub stable channel documentation
So it's possible
but my question was if it would be possible to implement the code in a rom or a flashable zip instead of magisk module
I'm still kinda hesitant to use magisk
I created a thread on the xiaomi.eu forums but didn't get any response
eddie1 said:
It's actually possible even without kernel support
There is a generic way using acc
Here is a screenshot from the acc GitHub stable channel documentation
So it's possible
but my question was if it would be possible to implement the code in a rom or a flashable zip instead of magisk module
I'm still kinda hesitant to use magisk
I created a thread on the xiaomi.eu forums but didn't get any response
Click to expand...
Click to collapse
I see what you mean about emulating battery idle mode. (Though I'll believe it when I see it, since the two features described are something similar to battery idle mode, not battery idle mode itself.)
The way ACC and AccA are implemented requires root. It's the way the software is written and installed. In fact after you install the Magisk ACC module, you will see a flashable .zip in your Downloads folder. So you have the zip, but it won't install without Magisk. (I did try flashing it without Magisk.) And according to the ACC readme, some root solution is necessary (not necessarily Magisk). I assume it is possible to create flashable software that runs as root without requiring an external root solution (after all, Magisk and SuperSU provide root without depending on an external solution), but that's not the way ACC was implemented.
fenstre said:
I see what you mean about emulating battery idle mode. (Though I'll believe it when I see it, since the two features described are something similar to battery idle mode, not battery idle mode itself.)
The way ACC and AccA are implemented requires root. It's the way the software is written and installed. In fact after you install the Magisk ACC module, you will see a flashable .zip in your Downloads folder. So you have the zip, but it won't install without Magisk. (I did try flashing it without Magisk.) And according to the ACC readme, some root solution is necessary (not necessarily Magisk). I assume it is possible to create flashable software that runs as root without requiring an external root solution (after all, Magisk and SuperSU provide root without depending on an external solution), but that's not the way ACC was implemented.
Click to expand...
Click to collapse
I see
Thanks for explaining
It can be implemented in the rom without root if the kernel supports it tho
I posted on akr-developers (one the hiirakernel thread) about the feature if it's possible to implement
Hopefully the developers will implement it
eddie1 said:
It's actually possible even without kernel support
There is a generic way using acc
Here is a screenshot from the acc GitHub stable channel documentation
So it's possible
but my question was if it would be possible to implement the code in a rom or a flashable zip instead of magisk module
I'm still kinda hesitant to use magisk
I created a thread on the xiaomi.eu forums but didn't get any response
Click to expand...
Click to collapse
This command just stopped charging... Battery drain is still there
This needs more attention. Im also interested in it to be able this to work whenever needed not only in gaming.

Categories

Resources