[M] <piggz> i noticed the phone qute warm, when screen off, with an active wakelock, but not doing much else, but not measured any cpu frequencies etc
Читать полностью…[M] <piggz> if i could have the kernel auto scale the freqnecy etc, that would be easiest
Читать полностью…[M] <piggz> dsimic: its also about what support in there is in sailfish for setting the frequencies etc .... most of this kind of stuff is handled by a daemon called mode-control-entity (mce) ... but I suspect most android kernels handle this internally and auto scale the cpu frequency ? afaik, all mce generally controls is whether or not the device fully suspends or not, and allows the kernel to suspend using config_pm_autosleep .... but full suspend isnt much good if, eg, you are tethering from the phone, so, im looking at some way to not suspend, but still be in a low power state
Читать полностью…[M] <piggz> do the pinephone(s) have any cpu frequency scaling to reduce power while staying awake? any kernel options needed for that? (megi)
Читать полностью…[I] <dsimic> and _maybe_ some kind of sysfs overclocking interface could become reality at some point, after the DT-overlay-based overclocking proves its worth and usability
Читать полностью…[I] <dsimic> DT overlays have become accepted rather recently upstream, so it's good time now to make them more user friendly
Читать полностью…[I] <dsimic> which is similar to the trans_table for GPU devfreq, if you remember :)
Читать полностью…[I] <dsimic> @piggz : you can check is CPU DVFS working as expected by running something like this:
Читать полностью…[I] <dsimic> but idling with WFI, which is always supported, should still produce measurable reduction of heat and power consumption
Читать полностью…[I] <dsimic> there might be some issue with idling (i.e. powering off) the CPU cores when inactive using PSCI (i.e. TF-A)
Читать полностью…[I] <dsimic> that's what Linux kernel does, the OPPs/frequencies for the CPU cores are selected automatically according to the configured temperature thresholds
Читать полностью…[M] <piggz> at the moment, when i tether, i create a wakelock to prevent susepend, but, thats still quite power hungry
Читать полностью…[I] <dsimic> @piggz : as a note, it's all about the DVFS support for the Allwinner A64 or the Rockchip RK3399, i.e. it isn't specific to the PinePhone (Pro)
Читать полностью…[I] <megi> kernel options are the CPUFREQ_ ones / https://www.kernel.org/doc/html/v4.14/admin-guide/pm/cpufreq.html
Читать полностью…[I] <dsimic> if you'd work on the DT-overlay-based overclocking, perhaps we could merge those two utilities together at some point :)
Читать полностью…