Stock power saving slider functionality on custom rom? - Lenovo P2 Guides, News, & Discussion

I was using quite a lot the ultimate power saving feature that's available on stock P2 ROM through the HW slider. Now I'm on LineageOS 14.1. I suppose there's no way of getting the stock feature to a custom ROM. Is the any alternative, like an app, that would be providing something similar? The built-in LineageOS Extreme power saver is not that aggressive at all. It don't require it to be tied to the HW slider. And it can require root privileges.

There is an xposed module named powernap. You can try that.
It is not in development anymore but it works for nougat.
Otherwise. Try
Naptime
Force doze
Or Greenify. (Needs setup, add apps etc)

Related

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.

Ultra power save button with custom ROM's

Hi
Is anybody able to use Ultra Power Saver button feature of Lenovo P2 with custom ROM's (lineage os or some other)?
Any way to install this feature into them?
VarunAgw said:
Hi
Is anybody able to use Ultra Power Saver button feature of Lenovo P2 with custom ROM's (lineage os or some other)?
Any way to install this feature into them?
Click to expand...
Click to collapse
I guess this button triggers a feature that is developed by Lenovo specifically for the P2. I guess having that in lineage and other custom work would require coding such a function. Which does not seem impossible.
I tried to guess what this feature does, it seems to mainly stop any running app, Bluetooth, wifi, data, nfc, put the phone in Extreme power saver mode and show a black screen with big numbers and a set of icons to a limited number of applications like the phone and other things I cannot remember. Leaving the "Ultra Power Saver" state restores Bluetooth, wifi, data, nfc if they were enabled.
I guess that you'd need to have support for this button in lineage (maybe it is the case for kernels that are based on stock kernel) and somehow associate this button to this feature, but I don't know Android well enough to know how one would do that. It would be not essential but nice to have as far as I'm concerned. I would also like to be able to use this button for other things.
In case I run into a situation in which I need to save power to such extents, I would turn wifi, bluetooth, data, nfc off, put the phone in extreme power saver mode and force close apps that are likely running in the background (instant messaging, mails, file / contact syncing / backup, integration with computers,…).

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

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.

Issue with Battery Optimization - Please Help

Battery Optimization always turn off my MicroG and Volume Style
Detail:
I Use MicroG for Vanced, and Volume Style for swipe volume. (I like these two apps very much for several years) Then need to turn off battery optimization. I choose to not optimize. Then it will always back to optimize. Every day, every time I should find these two apps, and set to not optimize.
Open app setting and turn off battery saver too, still the same.
Is it because of MIUI Optimization ? is it okay to turn it off? Or I just have to give up using those two apps anymore :crying:?
you can turn off MIUI optimization. try enable microG in autostart. and disable Miui battery saver in microG. recomend use MIUI eu for this youtube vanced for better experience.
Pepiii said:
I Use MicroG for Vanced, and Volume Style for swipe volume. (I like these two apps very much for several years) Then need to turn off battery optimization. I choose to not optimize. Then it will always back to optimize.
Click to expand...
Click to collapse
Can confirm, I'm seeing the same here (Vanced on stock EU v12.0.3.0).
same here, especially if you reboot the optimisation comes back...very frustrating.
Alvian_P said:
you can turn off MIUI optimization. try enable microG in autostart. and disable Miui battery saver in microG. recomend use MIUI eu for this youtube vanced for better experience.
Click to expand...
Click to collapse
So, is it better to turn MIUI Optimization off or not ?
Pepiii said:
So, is it better to turn MIUI Optimization off or not ?
Click to expand...
Click to collapse
You don't need to turn off MIUI optimization. What's basically happening is that Microg doesn't request the proper app permissions for it to run on background smoothly. Even if you manually grant it the required permission i.e. Allow_in_power_save, it won't work, since it doesn't use it and MIUI requires it to be set to specify what to do. In short if you are worried about functionality then don't be. And if the notification bothers you, you can turn it off like in screenshots below.
Slim K said:
You don't need to turn off MIUI optimization. What's basically happening is that Microg doesn't request the proper app permissions for it to run on background smoothly. Even if you manually grant it the required permission i.e. Allow_in_power_save, it won't work, since it doesn't use it and MIUI requires it to be set to specify what to do. In short if you are worried about functionality then don't be. And if the notification bothers you, you can turn it off like in screenshots below.
Click to expand...
Click to collapse
I get it, so it means MicroG will still function well even though the notification appeared.
And what about function in Volume Style that always turn off because it back to optimize even I've already make it not optimize. Is there any suggestions what I have to do ?
seems MIUI battery settings seem to revert back after a while for "important apps" - such as Nova launcher for example.
i have optimisation off in developer settings, but no matter how many times i set specific apps to "no restriction" , MIUI 12 just reverts back after a little while.
nickmax1 said:
seems MIUI battery settings seem to revert back after a while for "important apps" - such as Nova launcher for example.
i have optimisation off in developer settings, but no matter how many times i set specific apps to "no restriction" , MIUI 12 just reverts back after a little while.
Click to expand...
Click to collapse
Developer options>standby mode
Try setting all buckets to active*; if they're not already locked to active, power management is active.
Find the app causing this and deal with it directly.
Power management... destroyer of worlds
*this may work but the power management app may simple reset the bucket state latter.
blackhawk said:
Developer options>standby mode
Try setting all buckets to active*; if they're not already locked to active, power management is active.
Find the app causing this and deal with it directly.
Power management... destroyer of worlds
*this may work but the power management app may simple reset the bucket state latter.
Click to expand...
Click to collapse
I have no setting in Developer Options called "Standby mode"
nickmax1 said:
I have no setting in Developer Options called "Standby mode"
Click to expand...
Click to collapse
I don't know then...
anyone found a solution for this? will using venced in root mode be any better?? what if one keeps the battery optimizations on for microG will venced still work as expected??
blzbh said:
anyone found a solution for this? will using venced in root mode be any better?? what if one keeps the battery optimizations on for microG will venced still work as expected??
Click to expand...
Click to collapse
For those wondering (this thread is a top match via Google), the solution is to simply enable the app icon in microG settings. You can get to settings via YouTube Vanced. Then MIUI will treat it like a standard app, allowing you to disable battery optimisation and it will persist across reboots.
nickmax1 said:
I have no setting in Developer Options called "Standby mode"
Click to expand...
Click to collapse
Standby apps...
This is how it should appear if global power management is disabled. Although the bucket shows all buckets as active, many are not and not using battery or any resources like ApkExport or Autostarts which weren't in the memory cache at the time this screen shot was taken.

Enabling doze on aosp roms

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

Categories

Resources