12-22-2024, 04:48 PM
Hi, everyone!
biketool got me thinking about this: is there a LINUX utility that can do the following:
a) log battery level over time (datalogger functionality for graphing)
b) log which processes or hardware modules (especially the modem) are consuming what power, in milliwatts
c) show power-related settings, especially those that might alter the power consumption
The primary objectives are:
1) to allow the PINE64 community to objectively compare their own experiences for the purpose of sharing settings, tips, tricks, and diagnoses to maximize battery life. There are too many variables to consider when comparing battery life, such as screen brightness, modem clock speed, settings, usage patterns, cell signal strength. With a datalogger we could see, for instance, that someone who complains about awful battery life might have a specific setting that's set wrong, or that someone else with awful battery life has a process that keeps waking the phone up, or that someone with fantastic battery life runs their screen brightness at the dimmest setting all the time, etc.
2) to improve LINUX distros' power optimization for the PinePhone and PinePhone Pro over time
PowerTOP can do b) and c), but I don't think it can do a) without having a serial-attached external datalogger.
It's probable that PINE64 has some kind of internal tool that profiles power/battery consumption as they design their hardware. If that exists and we can use it, that would be great.
If not, which 3rd party open-source LINUX tools are closest to fulfilling the objectives?
I'll search online, but if anyone knows already what tools to use, please share here. Thanks!
biketool got me thinking about this: is there a LINUX utility that can do the following:
a) log battery level over time (datalogger functionality for graphing)
b) log which processes or hardware modules (especially the modem) are consuming what power, in milliwatts
c) show power-related settings, especially those that might alter the power consumption
The primary objectives are:
1) to allow the PINE64 community to objectively compare their own experiences for the purpose of sharing settings, tips, tricks, and diagnoses to maximize battery life. There are too many variables to consider when comparing battery life, such as screen brightness, modem clock speed, settings, usage patterns, cell signal strength. With a datalogger we could see, for instance, that someone who complains about awful battery life might have a specific setting that's set wrong, or that someone else with awful battery life has a process that keeps waking the phone up, or that someone with fantastic battery life runs their screen brightness at the dimmest setting all the time, etc.
2) to improve LINUX distros' power optimization for the PinePhone and PinePhone Pro over time
PowerTOP can do b) and c), but I don't think it can do a) without having a serial-attached external datalogger.
It's probable that PINE64 has some kind of internal tool that profiles power/battery consumption as they design their hardware. If that exists and we can use it, that would be great.
If not, which 3rd party open-source LINUX tools are closest to fulfilling the objectives?
I'll search online, but if anyone knows already what tools to use, please share here. Thanks!