After Update Android 7.0 battery drain issue - Xperia Z5 Q&A, Help & Troubleshooting

Hello everyone I had update my Z5 to Nougat stock rom with root yesterday.
I found my cellphone keep heating up, I had Google lots of information about sony Z5 bug. But still not get any useful answer.
So I take some search in my cellphone and found the answer of "Why my cellphone is keep the cpu at highest frequency and didn't run anything."
In root file "/init.qcom.rc" line 346 and line 801 there are two same action "property:sys.boot_completed=1" so the first one will run, but second not (?)
So the service "qcom-post-boot" not run.
So the script "/system/etc/init.qcom.post_boot.sh" will not be execute
Unfortunately, there are lots of cpu tweak in this script.
Because this script not execute by system so my Z5 cpu government is keep on "performance" this will keep my cpu at highest frequency and cause battery drain.
For now, I temporary run "/system/etc/init.qcom.post_boot.sh" this script to fix this problem
This is just my experience and share to everyone maybe helpful to you, and sorry for my bad English. XD

Related

Prime95 (OC stability tool) - can someone port this to Android?

Basically this tool will either run forever in search for Prime number OR it will stop and notify when CPU voltage is too low. Having this ported to Android would be huge help with Undervolting our phones.
Source is here: http://www.mersenne.org/freesoft/
"On an absolutely stable system, Prime95 would run indefinitely. If an error occurs, at which point the stress test would terminate, this would indicate that the system may be unstable. There is an ongoing debate about terms "stable" and "Prime-stable", as Prime95 often fails before the system becomes unstable or crashes in any other application. This is because Prime95 is designed to subject the CPU to an incredibly intense workload, and to halt when it encounters even one minor error, whereas most normal applications do not stress the CPU anywhere near as much, and will continue to operate unless they encounter a fatal error"
EDIT: There is a tool for this here
I bet this wont be good since it will most likely explode the device, or won't even run.
But if anyone can port it for ARM architecture, that'd be great since I'd love to see how far it can run on this X10.
Hzu said:
I bet this wont be good since it will most likely explode the device, or won't even run.
Click to expand...
Click to collapse
No reason for this, it works just like any simple CPU benchmark, but at least calculates something useful.
schriss said:
No reason for this, it works just like any simple CPU benchmark, but at least calculates something useful.
Click to expand...
Click to collapse
Yeah, I know. But I tried on my PC and it don't run, my PC had a hard hang. Haha, I'm scared of this tool.
Hzu said:
Yeah, I know. But I tried on my PC and it don't run, my PC had a hard hang. Haha, I'm scared of this tool.
Click to expand...
Click to collapse
That's exactly why it is useful. PC or phone might be stable when idling but when loaded you might get problems.
Strange that your PC locked up, its some serious issue there, more like hardware related, possibly a bios setting.
I could run Prime95 for a day long and all I get is high CPU temp, but system should be able to handle constant load (just like playing a game for hours)
schriss said:
That's exactly why it is useful. PC or phone might be stable when idling but when loaded you might get problems.
Strange that your PC locked up, its some serious issue there, more like hardware related, possibly a bios setting.
I could run Prime95 for a day long and all I get is high CPU temp, but system should be able to handle constant load (just like playing a game for hours)
Click to expand...
Click to collapse
Well, I haven't tried after changing my hardwares yet. I wonder how much battery it will use.
schriss said:
Basically this tool will either run forever in search for Prime number OR it will stop and notify when CPU voltage is too low. Having this ported to Android would be huge help with Undervolting our phones.
Source is here: http://www.mersenne.org/freesoft/
"On an absolutely stable system, Prime95 would run indefinitely. If an error occurs, at which point the stress test would terminate, this would indicate that the system may be unstable. There is an ongoing debate about terms "stable" and "Prime-stable", as Prime95 often fails before the system becomes unstable or crashes in any other application. This is because Prime95 is designed to subject the CPU to an incredibly intense workload, and to halt when it encounters even one minor error, whereas most normal applications do not stress the CPU anywhere near as much, and will continue to operate unless they encounter a fatal error"
Click to expand...
Click to collapse
if u really see a use for it i can make a quick version but unless its done in native code i doubt it would be a good metric to compare phones and its only single threaded, it also wouldnt be able to notify u if your voltage was to low ur phone would just hard lock
aaronpoweruser said:
if u really see a use for it i can make a quick version but unless its done in native code i doubt it would be a good metric to compare phones and its only single threaded, it also wouldnt be able to notify u if your voltage was to low ur phone would just hard lock
Click to expand...
Click to collapse
Wouldn't it know that returned number is wrong thus voltage to low? This should happen if you do not push it too much, people report that when lowering voltage slowly, the phone slows downs as CPU is handling errors. The app would detect this stage. Only when lowering voltage too much you get lockup. 1 thread would be useful because cores need to be tested independently, if you could specify core to run on, it would be ultimate stability test tool.
i think
just need to set governor to performance
This has been implemented, here: https://play.google.com/store/apps/details?id=com.into.stability&feature=search_result
The cpu worker performs mathematical calculations ("prime crunching") in native code and verifies the results, while the ram worker does heavy c memcpy operations in native code in a different thread.
Click to expand...
Click to collapse

[Q] Xperia E new firmware status bar lag?

I recently updated my C1504 to the 11.A.2.23 firmware, and I have to say its good.
But there seems to be a response problem with the status/notification bar. If drops down a second-or-two after I swipe it down. Guys trust me it feels very irritating!
Has anyone else got/solved this problem?
Moreover, why did Sony remove 'headphone surround' from the audio engine?
sent from my Xperia E (C1504) using xda Premium
HIT THE THANKS BUTTON IF I WAS OF ANY HELP
Hello,
I'm on 11.3.A.2.23 to, and... I don't have any lag at all! Everything runs smooth, no problems here. Perhaps you haven't much RAM left? The only way to make your phone a lot faster is to root it, or to unlock the bootloader(for Custom Kernels and ClockWorkMod). ofcourse there are also options for non-rooted users, but these won't help as much as the tips listed under here. So you may want to consider to root your device. Ofcourse you can also delete a few apps(and more, but these options don't have the great variery, rooted phones have.)
Warning! These tipps I give you are only for rooted users! This will only work if your device is rooted!
1. Try to hibernate(freeze, don't let it to eat up CPU speed) a few apps with Greenify. That feeling man, that feeling, Everything goes smoother! And if you open one of the apps you have hibernated, it still reacts fast! Great improvement for the crappy CPU of the E.
2. Download SetCPU. The great improvement to your phone, is more than worth a small donation to the great developer of this app. I currently have overclocked my phone to 600 mHz, while the capacity of the E's CPU only 512 is. It speeds up your device, but can kill your processor and/or battery.
3. Download Root App Delete, and remove the pre-installed crapware on your phone, like: Google(15 MB), Google +(31 MB), Chrome(25 MB). And more! You'll get a lot of new space!
If you don't want to root your device, fine! I will give you a few tips for non-rooted users, if you want to. But with a rooted phone, you can do much more to improve your speed, than with a non-rooted phone!
Cheers, and good luck!
Duh, I am rooted !
MatsPunt said:
Hello,
I'm on 11.3.A.2.23 to, and... I don't have any lag at all! Everything runs smooth, no problems here. Perhaps you haven't much RAM left? The only way to make your phone a lot faster is to root it, or to unlock the bootloader(for Custom Kernels and ClockWorkMod). ofcourse there are also options for non-rooted users, but these won't help as much as the tips listed under here. So you may want to consider to root your device. Ofcourse you can also delete a few apps(and more, but these options don't have the great variery, rooted phones have.)
Warning! These tipps I give you are only for rooted users! This will only work if your device is rooted!
1. Try to hibernate(freeze, don't let it to eat up CPU speed) a few apps with Greenify. That feeling man, that feeling, Everything goes smoother! And if you open one of the apps you have hibernated, it still reacts fast! Great improvement for the crappy CPU of the E.
2. Download SetCPU. The great improvement to your phone, is more than worth a small donation to the great developer of this app. I currently have overclocked my phone to 600 mHz, while the capacity of the E's CPU only 512 is. It speeds up your device, but can kill your processor and/or battery.
3. Download Root App Delete, and remove the pre-installed crapware on your phone, like: Google(15 MB), Google +(31 MB), Chrome(25 MB). And more! You'll get a lot of new space!
If you don't want to root your device, fine! I will give you a few tips for non-rooted users, if you want to. But with a rooted phone, you can do much more to improve your speed, than with a non-rooted phone!
Cheers, and good luck!
Click to expand...
Click to collapse
Dude....I rooted my phone a second after the update was installed.:laugh::laugh::laugh:
Already removed the bloatware, changed the CPU governor to performance (for a constant 1 GHz), Greenified everything (YES, EVERYTHING),
High Minfree values applied, 224MB of DVM cache assigned, DNS set to Google DNS, pretty much everything you can do to a locked-bootloader stock ROM that is rooted!
And hold on, the E's CPU can go upto 1008 MHz in stock kernel, not 512MHz as you mentioned.
And how did you OVERCLOCK using SetCPU ? I never found any such option
Hello,
Oh, you're right! The CPU has indeed a capacity of 1 GHz... Sorry for that. And for the overclocking part with SetCpu, just set your mininum speed to 1008 MHz and your maximum also. This can heat up your phone pretty fast, and can kill your processor, but nevermind .My tip is to go to the profiles tab and hit enable profiles. And then set up a profile that slows your CPU down when the battery is overheated(I chose 45 degrees Celsius). And set the priority to 100 so it has a privilege over other profiles you might use. This will extend your battery life! It lets me run Temple Run: Oz very smooth, and without little to zero lag, and if my battery(and also the processor) gets to warm, SetCPU slows it automatically down.
And I didn't know that your device wasn't rooted, so my apologies!
But no status bar lag here? Everything runs smooth, hatsApp responds very slow sometimes, but that's it. No other lags, or complaints. I don't have any options left? Reflash your rom maybe, but if you have a lot of apps, and data, and backup it all, for just a simple flash... Maybe not the best idea.
Cheers, and good luck!
P.S. Do you use Tasker? I love that app! It's something I would really recommend to a rooted user.
OK...
MatsPunt said:
Hello,
Oh, you're right! The CPU has indeed a capacity of 1 GHz... Sorry for that. And for the overclocking part with SetCpu, just set your mininum speed to 1008 MHz and your maximum also. This can heat up your phone pretty fast, and can kill your processor, but nevermind .My tip is to go to the profiles tab and hit enable profiles. And then set up a profile that slows your CPU down when the battery is overheated(I chose 45 degrees Celsius). And set the priority to 100 so it has a privilege over other profiles you might use. This will extend your battery life! It lets me run Temple Run: Oz very smooth, and without little to zero lag, and if my battery(and also the processor) gets to warm, SetCPU slows it automatically down.
And I didn't know that your device wasn't rooted, so my apologies!
But no status bar lag here? Everything runs smooth, hatsApp responds very slow sometimes, but that's it. No other lags, or complaints. I don't have any options left? Reflash your rom maybe, but if you have a lot of apps, and data, and backup it all, for just a simple flash... Maybe not the best idea.
Cheers, and good luck!
P.S. Do you use Tasker? I love that app! It's something I would really recommend to a rooted user.
Click to expand...
Click to collapse
Hmm..Maybe I'll use the "repair" option to reflash the ROM, which will also let me create a backup of my original firmware (blob_fs method)
And Tasker is cool, but I just don't need it

[Completed] [Q] IUNI U2 CPU Clock Speed Control

I am using IUNI U2 phone. this phone has Snapdragon 800 processor but battery is only 2200mAh. I want to reduce the CPU clock for better battery life. I am using IUNI OS 4.4.2.
can anyone suggest me a way to do this??
Hi
Thanks for writing to us at XDA Assist. In order adjust CPU settings you must have root access on the device. I was unable to find a specific root method for your phone but I'd suggest you take a look here:
How to Root Any Device
It's going to be trial and error, so hopefully one of those methods will work. Once (if) you get root there are a variety of CPU control apps on the Play Store, just search for "CPU control".
Good luck!
timmaaa said:
Hi
Thanks for writing to us at XDA Assist. In order adjust CPU settings you must have root access on the device. I was unable to find a specific root method for your phone but I'd suggest you take a look here:
How to Root Any Device
It's going to be trial and error, so hopefully one of those methods will work. Once (if) you get root there are a variety of CPU control apps on the Play Store, just search for "CPU control".
Good luck!
Click to expand...
Click to collapse
Thanks for your reply.
I have rooted my phone already and installed No-frills CPU control app. now I can set max freq of cpu but when I check my cpu freq in others apps like cpu-z then it shows freq higher than I have set in cpu control app and also there is no effect on the battery life after decreasing the freq. I think my phone kernel does not allow it.
one more thing, if I want to port an AOSP rom to my phone then from where should I start? I m studying computer science and have some knowledge of programming but don't tried anything about android yet. currently I can install just simple custom roms and don't know more than that.
Reason to change the rom of my phone is 1. I want to learn android rom porting. 2. I dont like the stock IUNI OS rom of my phone because lots of bugs.
mubashirsaeed said:
Thanks for your reply.
I have rooted my phone already and installed No-frills CPU control app. now I can set max freq of cpu but when I check my cpu freq in others apps like cpu-z then it shows freq higher than I have set in cpu control app and also there is no effect on the battery life after decreasing the freq. I think my phone kernel does not allow it.
one more thing, if I want to port an AOSP rom to my phone then from where should I start? I m studying computer science and have some knowledge of programming but don't tried anything about android yet. currently I can install just simple custom roms and don't know more than that.
Reason to change the rom of my phone is 1. I want to learn android rom porting. 2. I dont like the stock IUNI OS rom of my phone because lots of bugs.
Click to expand...
Click to collapse
In CPU-Z are you talking about the "clock speed" reading where you're saying it is showing a higher frequency? If so, that reading will never change because that's showing you the capability of the chip, not its current settings.
There are countless guides on how to port ROMs available on XDA, here's just a couple:
[GUIDE] How to port ROMS
[GUIDE]How To Port ROMS to Your Device [AOSP]
[GUIDE]How To Port Different ROMS to Your Device
There are many more, generally found in this section:
Android Software Development
Good luck!
PS. Please note that XDA Assist isn't a general helpdesk area, our purpose is to direct people who don't know where to post in the right direction.
Transmitted via Bacon
Yes I am talking about the clock speed. In cpu-z SOC section we can see the status of each core. We can see the core is stopped or running at which speed and there the cores speed changes to higher than I have selected.
mubashirsaeed said:
Yes I am talking about the clock speed. In cpu-z SOC section we can see the status of each core. We can see the core is stopped or running at which speed and there the cores speed changes to higher than I have selected.
Click to expand...
Click to collapse
Go into the settings section of No Frills and check the "prevent changes from other apps" box, see if that helps.
Transmitted via Bacon

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.

Latest version of Set CPU?

Hello I'm looking for Set CPU but all links to Google Play Store appear to be broken, would like a reliable link for this app. Or is this app outdated? In that case would like suggestions for any other app for over locking of CPU. Bear in mind that I am new to the concept. Thanks in advance
Ism786 said:
Hello I'm looking for Set CPU but all links to Google Play Store appear to be broken, would like a reliable link for this app. Or is this app outdated? In that case would like suggestions for any other app for over locking of CPU. Bear in mind that I am new to the concept. Thanks in advance
Click to expand...
Click to collapse
Many Smart Pack kernel manager ( my favorite), FKM kernel manager , Ex Kernel manager .
This is a useless app made by Vietnamese people (I'm Vietnamese). It cannot overclock which many people mistakenly believe, and it only has the task of limiting the CPU speed, the CPU speed is managed by the OS and limiting it is a bad way because no matter what task it does it will be slowed down. When idle the CPU will automatically reduce its voltage and speed by OS. Any process no matter how big or small with high CPU speed it will be processed very fast even with small tasks that are reported not to use up CPU but it will still be faster than a slower CPU. Kernel Auditor is also useless.
SetCPU is only usefull if you have a modded kernel with added clocks (some of wich may be way to high for you device so need to be blocked to prevent crashes) and i used this version https://www.mobileapkfree.com/apk/setcpu-for-root-users IT MAY BE MODIFIED AND HAVE A VIRUS OR SOME **** so use at your own risk.

Categories

Resources