yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] nreuge:
S810 Power Efficiency

Well, I've found some data that can help a lot in understanding S810 power efficiency.

The source is here: Understanding Qualcomm's Snapdragon 810

See the "power model" data (5th figure): it shows the energy involved (mW/MIPS) as a function of frequency for little and big cores.

From that, you can deduce a "power efficiency" by just dividing the frequency (MHz) by the energy involved (mW/MIPS) . It leads to MIPS per Joule (or million instructions per second per Joule), which is consistent with a power efficiency.

I've obtained the following Figure:

We can deduce the following things:

- the power efficiency decreases as the frequency increases

- up to 1500 MHz, little cores are more power efficient than big cores

- from 1500 MHz, big cores become more power efficient than little cores

Conclusion:

From this data, overclocking little or big cores is not a good idea in term of power efficiency.

Notes:

- But if you succeed in overclocking without increasing voltage or just a little, it can be beneficial !!

- The battery drain by the SoC is inversely proportional to the power efficieny as I defined it.

- A power efficiency decrease means that thermal losses increase.
[Xperia Z5 Android Development] koekoek91:
I did some more reading and found this post by [MENTION=5243932]Tommy-Geenexus[/MENTION] in a thread by [MENTION=3037651]zacharias.maladroit[/MENTION] from a few months ago that also makes to wonder about wheter or not it is better to overclock or underclock.

I dont have any data / results for my underclocking process to show, as im not finished yet but I tend to think more like [MENTION=5243932]Tommy-Geenexus[/MENTION] as it sounds logical what he says.

I did notice before though when I applied some overclock settings for the big cores, that the small cores had a significant amount of more load then usual . So I dont know.

Maybe we'll never really know sure but when im finished tweaking my governor the way I think is the best I can do, we could compare some data :p

[MENTION=3037651]zacharias.maladroit[/MENTION] what do you think about this overclocking vs underclocking thing? :D

[MENTION=5231789]nreuge[/MENTION] ah interesting, just see your post lol. I will read later after dinner :)
[Xperia Z5 Android Development] _LLJY:
things like voltage haven't been considered
[Xperia Z5 Android Development] nreuge:
Exactly, I've forgotten to say smthg about that : if you overclock without increasing voltage, it can be good !!
[Xperia Z5 Android Development] nreuge:
If operations are done fastly at the same voltage, the power efficiency increases, because the power efficiency equals the frequency (higher) divided by the energy involved (P = UI but U remains the same). So, my power efficiency as I've defined it is the inverse of the battery drain.
[Xperia Z5 Android Development] koekoek91:
What do you mean by ''the inverse of the battery drain''?:o

What about leakage, and the hotness of our Z5? How does that influence things?
[Xperia Z5 Android Development] nreuge:
Well, look at my figure: at 600 MHz you have a power efficiency of 60, at 2100 MHz you have a power efficiency of 20, it means that the battery drain at 2100 MHz is 3 times higher than at 600 MHz. I should have said: the battery drain is inversely proportional to the power efficieny as I defined it.

About, the hotness, it's quite similar: a power efficiency decrease means that thermal losses increase.
[Xperia Z5 Android Development] nreuge:
Yes, same impression of reverb for me with my high-end headphones. The sound could be good without this awful reberb effect.

Apart that, this latest testing kernel seems working fine.
[Xperia Z5 Android Development] koekoek91:
I would conclude from this that ultimately for battery and reliability it might be a better idea to underclock since higher frequencies ----> Less efficiency ----> will faster lead to thermal problems which causes cores to go offline. or worse.

Lower frequencies is more stable and less leading to thermal issues , keeping cores online and so having more efficiency? My underclock of 960mhz for little cores and 1248mhz for big might be a little to low probably for good efficiency. Think ill try more in the range of 1248 little / 1824mhz big range for more efficiency. But ill probably try Zach's 1.9.4.8 for a few days first to see if it is an improvement over 1.9.4.6 :D
[Xperia Z5 Android Development] _LLJY:
It's not really inversely proportional because in order for it to be, the graph has to be straight and it has to follow this Efficiency=constant/frequency which is clearly does not but I still get your point

---------- Post added at 11:42 PM ---------- Previous post was at 11:35 PM ----------

Things to note here

- The battery drain is not inversely proportional, it's more like a inverse exponential graph instead of a linear one.

- Heat will still increase exponentially even if you don't overvolt, due to the silicon staying in a resistive state(on) for more times a second, therefore increasing heat

- Due to Qualcomm's AVS, the efficiency scales according to workload(I know, stupid right?)

- 1632mhz(little) sees a bump in voltage while 2054 and 2200(big) does not, therefore making the big cores work more power efficiently compared to the little cores(also shown in the graph)
[Xperia Z5 Android Development] nreuge:
Maybe it could be more judicious to try 1478 for little and 1824 for big. Little is more power efficient than big in the range 384-1478 MHz, whereas big is more power efficient than little beyond 1478 MHz.

Wise comments, I suppose.

Anyway, I think we should prevent big cores to operate at freq lower than 1500, because they are less power efficient than little in the range 384-1500. This can be done tuning core_ctl...
[Xperia Z5 Android Development] nreuge:
[MENTION=3037651]zacharias.maladroit[/MENTION]

Well, I give v1.9.4.6 a new try.

First impression: the sound is good (not like v1.9.4.8 and its awful reverb effect...)
[Xperia Z5 Android Development] nreuge:
I was still listen to music and realize that there are little random glitches from time to time. It's a no-go for me...
[Xperia Z5 Android Development] koekoek91:
I will flash 1.9.4.8 and try 1478 little - 1824 big first to see how this kernel from [MENTION=3037651]zacharias.maladroit[/MENTION] runs at somewhat stock speeds, and then ill try [MENTION=6791680]_LLJY[/MENTION] 1478mhz little / 2054 big in the weekend maybe.

How does that sound? :p
[Xperia Z5 Android Development] HaoZeke:
Does anyone else have a deep sleep issue with 1.9.8? (dual sim)

I'm on the interactive governor, for both clusters.
[Xperia Z5 Android Development] koekoek91:
Do you use greenify and Wake lock detector?

I would say there's stuff running in the background that is preventing from going to deep sleep.

Check with wakelock detector.

Download it and turn screen off for a few hours and then check wake up triggers and kernel wakelocks.

Post screenshots of those then.
[Xperia Z5 Android Development] koekoek91:
https://postimg.org/image/i5278ig25/

https://postimg.org/image/5rpd1lqdp/

[MENTION=3037651]zacharias.maladroit[/MENTION] So far, i'd say 1.9.4.8 is definetly an improvement in terms of battery life.

Just 2% drain in 2 hours with wifi on and deep sleep is working fine for me on my Z5 e6653.

I have some more wakelock hunting to do though I see :p

Edit: adding screenshots here directly didn't work, or I probably did something wrong. How does that work?
[Xperia Z5 Android Development] HaoZeke:
Hey so... These are my system details..

I cat figure out why I'm getting no deep sleep..
[Xperia Z5 Android Development] HaoZeke:
What's your setup exactly? If it's not too intrusive..

I'm on stock 253 with the kernel, Xposed and SuperSU.

Using appops, greenify (shallow hibernation and aggressive doze) , doze.
[Xperia Z5 Android Development] koekoek91:
Im using ROMX from [MENTION=6791680]_LLJY[/MENTION] with Zach's kernel on .253 firmware.

Furthermore Xposed,. Amplify, PowerNap, Greenify and use Wakelock Detector and Better Battery Stats full version for monitoring wakelocks and battery behaviour

http://xdaforums.com/android/general/guide-extreme-battery-life-t3095884

I used this thread as a reference, it has ALOT of info to get the most out of your battery.

Also there are screenshots of the best settings for Greenify and the other mentioned apps attached in the thread so it is very helpful.

You seem to have alot of wakelocks.

You should check out that thread and further optimize your phone ;)

It does seem very strange though you have no deep sleep time at all, so I dont know if anything else could be wrong.
[Xperia Z5 Android Development] HaoZeke:
I had awful performance issues with 1.9.4 on romx so I switched to stock... I think appops might be an issue.

Still no deep sleep.
[Xperia Z5 Android Development] koekoek91:
If I remember correctly 1.9.4 had issues, so maybe it wasn't caused by the rom.

What do you mean with your question: ''still no deep sleep?''
[Xperia Z5 Android Development] HaoZeke:
Well, I sort of gave up and wiped everything. Starting clean with XROM and the latest... will update with results... Hope I can replicate yours :D
[Xperia Z5 Android Development] koekoek91:
Haha I know how that feels (starting all over) :silly:

Make back ups from your apps and system settings and home screen, saves some time because you can have them installed automatically right after installing new firmware :)

Also, have you read the thread I mentioned? Its really good. Better do things good, when you start clean :D

Good luck :good:
[Xperia Z5 Android Development] HaoZeke:
I'm sorry to be spamming this thread... but anyone else facing a strange problem where the little cluster cpus are stuck at 1344?

I'm trying out LPLUG, think that might be it?
[Xperia Z5 Android Development] toncheee:
I had the same problem.... look few pages back...
[Xperia Z5 Android Development] HaoZeke:
Yeah I noticed, but I couldn't find a resolution posted... How did you fix it? Things seem to be ok after removing LPLUG and going back to SmartTemp
[Xperia Z5 Android Development] zebasketteur:
Hi guys, I use the 1_9_4_7, what is the best Governor for you?
[Xperia Z5 Android Development] koekoek91:
I would recommend Interactive or conservative governor.

Im using Interactive for both big and little cluster myself.
[Xperia Z5 Android Development] zebasketteur:
No battery issu? What is your SoT with this governor?
[Xperia Z5 Android Development] koekoek91:
Well, I am on 1.9.4.8 version and so far I have no issues with it at all.

I still have to tune my settings for the governor on this kernel, but battery life is already pretty great.

About 2% drain in 2 hours on idle / screen off as I posted screenshots from on the previous page you can find them linked to postimage.

My SOT is just a little under 7 hours.. ill post some more screenshots later.

Ofcourse you'll have to optimize your phone also using Greenify etc.... to get similar results.
[Xperia Z5 Android Development] _LLJY:
Wtf how did u even get 7hours? I get around 4-5 hours sot
[Xperia Z5 Android Development] koekoek91:
Greenify ( Experimental Forced Doze) + AppOpsXposed + Power Nap + Amplify to limit wakelocks and alarms.

Im using GSam Battery Monitor Pro for my screen on time, dont know for sure though if im looking at the right value for screen on time.

Im currently re-evaluating the estimated averages times in GSam battery monitor to see if my times have improved or not. I'll post a screenshot of it after i've used my phone for some time.

But here some screenshot of Better Battery Stats from a 7 hour (idle) drain test. ill upload a text dump file of these results in this thread:

http://xdaforums.com/android/general/guide-extreme-battery-life-t3095884

which i've used for my settings for Greenify, AppOpsXposed, Power Nap and Amplify to get this result, and ask there if I can still improve battery life more.

How did you get your SOT?

EDIT: added a screenshot from GSam battery Monitor. As you can see it is still recalculating estimates.

But I believe the most important values here to look at are screen on at the bottom, and the time used in total after a full charge.

Correct?
[Xperia Z5 Android Development] zacharias.maladroit:
There seems to be a persistent battery drain issue with 5.0 ramdisk,

5.0 rc8 seems to be the sweet spot in terms of idle battery consumption (NONE/0% in 4-12+ hours) vs. 5.0 (if you're lucky 0%, if you're un-lucky continually going down somewhat) :silly:
[Xperia Z5 Android Development] _LLJY:
0% drain for me, with almost all wakelocks blocked
[Xperia Z5 Android Development] zacharias.maladroit:
Introducing SunKernel , codename Corona [Testing]

Download, AndroidFileHost :

253 Kernel

SunKernel_for_Z5 253_corona_III.1_9_10

[leads to Nirvana, AFH is currently too slow]

Notes

- ALL functions (well, most) have been tested and should work reliably (including FM Radio app, which still acts up from time to time)

- the Kernel (GUI) might be laggy, under investigation how to mitigate this, please consider that

this might save A LOT of battery

(lower clocked GPU)

-

YOU HAVE THE CONTROL: if the GUI is too laggy,

disable Adreno-Idler, State_Notifier (Adreno_Idler is the only user) and disable GENTLE_FAIR_SLEEPERS, this should improve it A LOT

- The Kernel is built on the following premise of having a slim Base with which only the relevant (needed & desired) areas are updated, others are deliberately left alone

- [e.g. not ALL Hotplug mechanisms are merged which cannot be used or NOT needed to avoid cluttering the source or even binary from any unwanted effects]

Power efficiency Tests

- Downclock the max GPU frequency to 390 MHz [this should be NO Problem for e.g. MX Player Pro with HW and HW+ acceleration for even 1080p videos (tested)]

- default idle frequency for the GPU is at 27 MHz which might cause trouble with STAMINA MODE, might cause lagginess (currently under investigation), this might be a bit mitigated by using Adreno Idler (currently included)

- testing Downclock the max CPU frequencies for BIG to 1.5 GHz, little 1.3 GHz (depending on your usage case it might improve battery time or make it worse and take longer for things to complete)

- More aggressive Task packing for HMP Scheduling (this needs in-depth knowledge and LOTS of tests)

- ...

Attention

- This kernel is in

TESTING

state since power efficient WQ, quickwakeup, LPM improvements, NVIDIA relax improvements, KTM/BCL interface, CAF changes and some more got merged

- The goal is to IMPROVE STABILITY and RELIABILITY but it needs more TESTING to confirm this intention

- issues CANNOT be ruled out - caveat emptor !

- This is reason enough to Backup your data, have another Kernel release on your phone's Internal or External storage ready in case of (potential) trouble

Kudos

to all devs who are working on Xperia devices and of course all of the other devs on XDA, 4pda, etc. etc.

Sauce

https://github.com/zachariasmaladro...Kernel_Eclipse_32.2.A.0.253_corona_III.1_9_10
[Xperia Z5 Android Development] koekoek91:
[/COLOR]

So how are you getting only 4-5 hrs SOT?

Maybe you could post some screenshots from bbs and wakelock detector too? ;)

---------- Post added at 05:07 PM ---------- Previous post was at 05:03 PM ----------

@zacharias.maladroit

I've got a couple of questions:

Regarding Adreno idler, what is the difference between State notifier and FB notifier and which is better for battery life?

About Gentle Fair Sleepers, to disable it... should it be ticked in kernel adiutor or unticked? The description listed under it makes it confusing for me lol :silly:

Anyway thanks, will run a backup and then flash this kernel :good:
[Xperia Z5 Android Development] _LLJY:
you seem to just be really lucky :P everyone I asked only gets about 4-6hours .
[Xperia Z5 Android Development] koekoek91:
Or im looking at the wrong numbers. Where should I look for SOT?

GSam batter monitor now says I have 9 hours, after recalculating. But this cant be right lol.

Maybe this number will change after using my phone for a few days, or im just being plain stupid and looking at the wrong thing???:p
[Xperia Z5 Android Development] _LLJY:
Try using the values that Android give(settings>battery usage) it's way more accurate in my experience
[Xperia Z5 Android Development] koekoek91:
Thanks.... never even knew screen time was right there lol:rolleyes:

By the way, after rebooting my phone the screen on numbers from GSam has gone down from 9 hrs to 6 hrs 25 mins :p

ill keep a look at the numbers that android gives from now on instead :good:
[Xperia Z5 Android Development] -DM-:
So far all latest tested kernels behave great on Z5p...no idle drain on any of them....

And pretty much getting the same results from a kernel to an other...

1_9_4

1_9_8

Even managed to get it down to 0% on the 1_9_8 and was still able to get a screenshot ;) ....usually the phone shuts down when the 1% is passed

Just downloaded 1_9_10 from the Z5p thread and will test it, but as previously said all of them are bug free and behave the same, no noticeable differences in everyday usage and my SOT is always around 6 hours give out take
[Xperia Z5 Android Development] toncheee:
I can't make this kernel work with RXSW ROM and root.

Kernel normally boot, but can't root the device

Any suggestion?
[Xperia Z5 Android Development] koekoek91:
Just a simple suggestion, probably doesn't help but have you tried a different version of supersu zip??
[Xperia Z5 Android Development] zacharias.maladroit:
That definitely helps,

certain newer versions of SuperSU simply DO NOT WORK for me :confused:
[Xperia Z5 Android Development] nreuge:
[MENTION=3037651]zacharias.maladroit[/MENTION]

Well, I've just dicovered that the audio glitches I get with your latest kernels disappear when I disable V4A. It's weird because with the other kernels I don't have this issue...

Currently testing v1_9_10 without V4A.
[Xperia Z5 Android Development] toncheee:
I just reflashed with 2.68 Beta and it works now!

Thanks for suggestion!
[Xperia Z5 Android Development] koekoek91:
I have version 2.77 on my external sd and then update it in the google playstore , hasn't failed yet.

By the way... did you miss my questions I posted on the previous page?

Regarding Adreno idler, what is the difference between State notifier and FB notifier and which is better for battery life?

About Gentle Fair Sleepers, to disable it... should it be ticked in kernel adiutor or unticked? The description listed under it makes it confusing for me lol
[Xperia Z5 Android Development] RyTekk:
Originally Adreno Idler uses Powersuspend to hook the state, but Powersuspend is old and not suitable for new software (3.10 kernel, Android 6.0), State Notifier hooks deeper than FB notifier and Doze so it's more efficient. GENTLE_FAIR_SLEEPERS, just toggle it and check its status in /sys/kernel/debug/sched_features, GENTLE_FAIR_SLEEPERS means that it's active and NO_GENTLE_FAIR_SLEEPERS means not, btw, I don't recommend to deactive it, you can get strange wakelocks and sudden high power consumption when device is woke up.
[Xperia Z5 Android Development] koekoek91:
Thanks for clarifying.

I toggled Gentle Fair Sleepers and checked the status but it doesn't change. Not even affter a reboot.

The status is GENTLE_FAIR_SLEEPERS so i guess that means its active and ill just leave it alone.
[Xperia Z5 Android Development] toncheee:
So, after one and half day on v1_9_10 I can say that it is most battery friendly kernel for Z5.

after 1d 3h on battery 1h SoT all syncs on whole time and about 30m phone time I still have 41% of battery left!
[Xperia Z5 Android Development] _LLJY:
I've been using the phone for a good 45mins and it's still at 100%
[Xperia Z5 Android Development] zacharias.maladroit:
Will address comments, questions, etc. later (not now) need to wade through the thread for that ...

Thanks

Can I get some feedback please ?

Overclocking or no overclocking ?

The SoC (processors) should be fast enough, no ?

The past experience has shown that NOT using overclocking makes the phone behavior cooler in total ...

(might be undecided here, z4/z3+ users might favor exclusion, z5 premium users perhaps also)
[Xperia Z5 Android Development] Wess.a:
No overclocking. I underclocked it to 1.5 B and 1.2 L and its working cool and fine. No lag or anything but i didnt play any game yet so i cnt tell what about the performance and heat under gaming load.

And thanks for your work man ???
[Xperia Z5 Android Development] _LLJY:
So far, with little cores at 1.2ghz + 2054mhz big, phone runs super cool + great performance. I'm going for over clocking please
[Xperia Z5 Android Development] toncheee:
Kernel default CPU and GPU frequencies alucard governor sio scheduler for both internal and external storage
[Xperia Z5 Android Development] peter.schwake@gmail.com:
Good battery life, nice performance: no overclock, alucard LITTLE, tweaked interactive big, sioplus ( changed tunables, works nice now ).
[Xperia Z5 Android Development] paulle:
[QUOTE=zacharias.maladroit;

Overclocking or no overclocking ?

The SoC (processors) should be fast enough, no ?

The past experience has shown that NOT using overclocking makes the phone behavior cooler in total ...

First thank you for your work. Your 1_9_10 kernel runs without any issue and fast. For me it would be fine without over clocking and the device cooler in total.
[Xperia Z5 Android Development] Wess.a:
[MENTION=3037651]zacharias.maladroit[/MENTION] one thing here, the gpu's temperature rise insanely and i dont know why!! Any idea why?
[Xperia Z5 Android Development] Masoud.Ser:
thanks for your work

no overclock -Good battery life, nice performance
[Xperia Z5 Android Development] islanders:
which version are you using ? and what are your settings plz :'(
[Xperia Z5 Android Development] _LLJY:
Overclock ftw(just not on the little cores)
[Xperia Z5 Android Development] koekoek91:
[MENTION=3037651]zacharias.maladroit[/MENTION]

The kernel runs great (1.9.10).

But I am only getting like 1 hour SOT. I havent charged my phone to see how long I could keep going with it.

I attached some screenshots, pretty much al draining wakelocks have been killed. Also No big draining apps. Screen brightness to lowest for most of the time. But still only about 1 hour SOT?

What is the problem here? I barely haven't even touch my phone during these times. By the way im running at 1478mhz little, 1824mhz big for now, but I think im going back to underclock.

Unless someone can convince me that something else is the problem here for me, overclocking is a no go for me probably. Im either thinking it is the CPU speeds, or Mobile Radio or Wifi that is caussing me to have such terrible SOT.

Any help would be appreciated :good:
[Xperia Z5 Android Development] xerxess:
Kernel 1.9.10 i think have good battery life so far

But it sometimes have random reboot even only 2 or 3 times a days
[Xperia Z5 Android Development] nreuge:
I use stock freq (no OC) and it is really fast enough for me.

I need more time to really judge the battery life but it seems pretty decent. No idle drain.

The sound is really good.

Til now, I've not had the random reboots or crashes I had with the previous versions, it seems really stable.

IMHO your best kernel since a while :)

Thanks for your hard work!
[Xperia Z5 Android Development] Wess.a:
Is this normal? Gpu temp!!
[Xperia Z5 Android Development] RyTekk:
Absolutely not.
[Xperia Z5 Android Development] korom42:
1.9.10 is Great, i would go for overclock surely for all cores I personally put 2 Ghz for big and 1.7 Ghz for small ones

I'm also using a governor MOD by [MENTION=5321318]Debuffer[/MENTION] which balance interactive frequencies very well and I'm getting less heat you check it HERE + Lplug 3 which helps which faster cool down and less power usage too without loosing performance :D

As a result getting 5-6 Hrs of SOT on moderate usage
[Xperia Z5 Android Development] LMcR92:
What was you doing before you checked the temperature? Gaming while charging?
[Xperia Z5 Android Development] Wess.a:
At all!! checking whatsapp and tapatalk and charging it!! Thats it nothing more and it happened again now without being pluged in but i didnt take a pic of it.