ubports / ubuntu-touch

Ubuntu Touch's issue inbox is now migrated to GitLab.
https://gitlab.com/ubports/ubuntu-touch
1.28k stars 110 forks source link

Help prepare more granular power consumption stats in kernels #413

Open Flohack74 opened 6 years ago

Flohack74 commented 6 years ago

While fixing a compile issue with a certain kernel I found that Google added the following (just an example for the field): https://github.com/surdupetru/android_kernel_huawei_msm8916-caf/commit/c67d629766c108439eec12fa375622553ebc8a9b

This would allow us to collect power stats per task and sum this up to power consumption figures for debugging and the user experience. Maybe :)

ricmm commented 6 years ago

Interesting one, but power consumption per task and so on is not just a matter of CPU time but a few other factors. CPU on these devices is pretty lightweight as its always heavily optimized, whereas network usage and aggressive hardware composition is the usual culprit.

ricmm commented 6 years ago

NB: Still valid to bring in tho ^_^ no downside

Flohack74 commented 6 years ago

Due to the complexity of the task this is not really applicable for the next OTA.