powertop can show consumption, but there is nothing for recording such data. PMDA-denki or PMDA-power could do that. Ideas for this. German video "Einfluss von Software auf den Ressourcenverbrauch (bub2018) — Jens Gröger" from the “Bits und Bäume 2018” conference. Also this talk (german) shows that the same work is sometimes done by various pieces of software with very different energy consumption.
dnf -y install pcp-zeroconf pcp-devel gcc scp -r /usr/libexec/pcp/pmdas/denki host:/usr/libexec/pcp/pmdas/ cd /usr/libexec/pcp/pmdas/denki vim /var/lib/pcp/pmns/stdpmid # add this: #define DENKI 156 ./Install pminfo -fF denki
pmda-denki is not focusing on saving power itself, more on measuring as the first step. For saving power:
dnf -y install tlb tlb-rdw powertop powertop --auto-tune tlp start tlp-rdw disable