Hi everyone.
Can I safely assume that if I multiply the current from /sys/class/power_supply/battery/current_now
with the voltage from /sys/class/power_supply/battery/voltage_now
, I should get the power draw of the battery, which can be considered the power consumption of the device in real time?
Or is there any other API or system file I can use to get more accurate power data of the device, in real time?
It’s the same on Linux desktop, but there on modern CPUs, we have Intel RAPL integrated in the kernel for much more accurate real-time power readings. Anything similar for ARM processors in SailfishOS?