As you surmised in your comment the limitation is not with the software but with your battery not reporting correctly.

To clarify these software tools below will only measure power consumption on laptops when running on battery. For desktop or server machines the only current solution is an electronic watt-meter that plugs into the mains socket.

#Power Statistics

In Ubuntu Precise 12.04 there is a new power statistics history window. This can be accessed by clicking the battery item in the application indicator menu then selecting Latop Battery tab.

#Powertop

As mentioned by the OP this program provides information on per process/device power usage.

#Powerstat

Another alternative that measures process/device power usage is powerstat that was written for Ubuntu by Colin King. There is a detailed review of its features on hecticgeek.com.

It can be installed from the PPA: ppa:colin-king/powermanagement

Answer from Cas on askubuntu.com
🌐
Baeldung
baeldung.com › home › administration › finding the power consumption of a machine in linux
Finding the Power Consumption of a Machine in Linux | Baeldung on Linux
March 18, 2024 - Based on the energy information, we can take a timestep and compute the power. We compute power with energy divided by time. This approach uses the RAPL (Running Average Power Limit), which is one interface for reporting the accumulated energy consumption of various device components.
Discussions

linux - How to find power draw in watts? - Unix & Linux Stack Exchange
I've been asked to estimate the power consumption of the servers I run for my laboratory. I thought that I'd ask if there was some handy Linux commandline to get the power consumption of the server... More on unix.stackexchange.com
🌐 unix.stackexchange.com
April 1, 2011
How do you monitor power consumption?
PowerTop can be used to monitor power usage at the process level as described in How to monitor power usage in Linux , but it doesn't monitor total system power consumption (memory, drives, PSU, etc.), at least to my understanding. I use lm-sensors as described in How to install sensors (lm-sensors) on Ubuntu / Debian Linux for monitoring CPU core temperatures along with the Telegraf lm-sensors plugin for writing these to InfluxDB and displaying them in Grafana. Some have suggested this, but I don't see power consumption reported by lm-sensors on my servers, a mix of Supermicro X8 systems and Lenovo Tiny desktops. I have monitored power consumption using two methods: Initially, by running SNMP queries (in a Python script) to an APC AP7801 , networked, metered PDU. I bought this PDU (cheaply on eBay) with the expectation to monitor individual outlets, but I didn't dig deep enough before buying it and learned later that it reports only total power consumption for all outlets. Currently, I use the Telegraf apcupsd plugin on the host (Debian-based NAS) that monitors my APC BackUPS Pro 1500 through USB. This provides all information available in the apcaccess command, and also is written to InfluxDB and displayed in Grafana. Again, both of these methods monitor only total power consumption. There are two options for monitoring power consumption of individual systems: Use a networked, metered PDU that monitors power consumption by outlet rather than a total. These are available, for example the CyberPower PDU81004 Switched Metered-By-Outlet PDU, 100-240V/15A, 8 Outlets, 1U Rackmount , but can get pretty pricey. Use smart plugs that include power monitoring, like these TP-Link Kasa Matter Smart Plug w/ Energy Monitoring . More on reddit.com
🌐 r/homelab
20
11
August 14, 2023
Which option I have to measure power consumption in Linux?
Intel's PowerTOP might help. https://01.org/powertop/downloads https://launchpad.net/ubuntu/+source/powertop You have to run it for a few hours before it shows data/power averages. More on reddit.com
🌐 r/linuxquestions
4
5
February 18, 2017
Hardware power consumption
I had that problem myself at some point, and here's what I found: You won't like it, but the only way I found is a file "energy_uj" from the "Intel RAPL" driver that tracks the sum of energy used in microjoules since boot. Here's an example: $ sudo cat /sys/class/powercap/intel-rapl/*/energy_uj 63264748624 To get the current power usage from that driver, you have to read the value twice and calculate using the time difference between your two reads. You then have the energy used for that particular stretch of time. This means you can't instantly get a power usage value. You need to track it over time in your program or you need to do a daemon that tracks it in the background that you can then ask for a "current" power usage value. Here's an example command line that you can try at the bash prompt to see what I'm talking about: sudo -v; old_energy_uj=0 old_time=0; while :; do energy_uj=$(sudo cat /sys/class/powercap/intel-rapl/*/energy_uj); time=$(date +%s%N); echo $(( (energy_uj - old_energy_uj) * 1000000 / (time - old_time) )); old_time=$time old_energy_uj=$energy_uj; sleep 1; done Here's that same command line with line-breaks added so you can better see what's happening there: sudo -v old_energy_uj=0 old_time=0 while :; do energy_uj=$(sudo cat /sys/class/powercap/intel-rapl/*/energy_uj) time=$(date +%s%N) echo $(( (energy_uj - old_energy_uj) * 1000000 / (time - old_time) )) old_time=$time old_energy_uj=$energy_uj sleep 1 done Here's what its output looks like here for me: $ sudo -v; old_energy_uj=0 old_time=0; while :; do energy_uj=$(sudo cat /sys/class/powercap/intel-rapl/*/energy_uj); time=$(date +%s%N); echo $(( (energy_uj - old_energy_uj) * 1000000 / (time - old_time) )); old_time=$time old_energy_uj=$energy_uj; sleep 1; done 0 26870 27503 28239 27934 27023 ^C The output numbers in this example are in milliwatts. The "27023" at the end before I hit Ctrl+C means that it used 27 Watt over the last second. This comment here was researched on a 6.9 kernel version and with an AMD Ryzen 5800X CPU. I think that RAPL energy value getting shown is somewhat new for Ryzen. It might not be there on older LTS kernels and maybe not with all AMD CPUs. More on reddit.com
🌐 r/linuxquestions
3
0
June 26, 2024
🌐
LinuxConfig
linuxconfig.org › home › how to check and tune power consumption with powertop on linux
How to check and tune power consumption with Powertop on Linux
August 29, 2023 - In the “Usage” column we can find the estimated usage of a resource, generically expressed in ms/s (milliseconds/second), µS (microseconds/second) or pkts/s (Packate rate – number of packets per second) for network interfaces. In the “Events/s” column, instead, we can see the wakeups generated by the resource. Here less is more: the less number of wakeup events, the less power consumption.
🌐
Abilian
lab.abilian.com › Tech › Green IT › Power consumption (Linux servers)
Power consumption (Linux servers) - Abilian Innovation Lab
April 6, 2026 - To calculate power (in watts), ... ($T1 - $T0) / ($time * 1e6)" | bc · Tool Integration: The turbostat utility, included in the linux-tools-common package, also provides power consumption information....
🌐
TecMint
tecmint.com › home › open source › powertop – monitors power usage and improve laptop battery life
PowerTOP - Analyze and Manage Power Consumption in Linux
January 18, 2024 - PowerTOP is a terminal-based diagnosis tool developed by Intel that helps you monitor power usage by programs running on a Linux system when it is not plugged into a power source.
🌐
Red Hat
redhat.com › en › blog › take-control-your-rhel-systems-power-consumption
Take control of your Red Hat Enterprise Linux systems’ power consumption with pmda-denki
November 23, 2025 - This article looks at the electrical consumption of computer workloads using three different data sources: RAPL readings: On most modern x86 systems, RAPL provides metrics relating to how much power is consumed by the CPU, RAM, and onboard GPU.
Find elsewhere
🌐
Red Hat
docs.redhat.com › en › documentation › red_hat_enterprise_linux › 8 › html › monitoring_and_managing_system_status_and_performance › managing-power-consumption-with-powertop_monitoring-and-managing-system-status-and-performance
Chapter 16. Managing power consumption with PowerTOP | Monitoring and managing system status and performance | Red Hat Enterprise Linux | 8 | Red Hat Documentation
The PowerTOP tool can provide an estimate of the total power usage of the system and also individual power usage for each process, device, kernel worker, timer, and interrupt handler. The tool can also identify specific components of kernel and user-space applications that frequently wake up ...
🌐
Reddit
reddit.com › r/homelab › how do you monitor power consumption?
r/homelab on Reddit: How do you monitor power consumption?
August 14, 2023 -

Since power usage (at least cpu-wise) is fairly easy to monitor in windows (hwinfo). Is there is a cli equivalent for linux?

Top answer
1 of 13
6
PowerTop can be used to monitor power usage at the process level as described in How to monitor power usage in Linux , but it doesn't monitor total system power consumption (memory, drives, PSU, etc.), at least to my understanding. I use lm-sensors as described in How to install sensors (lm-sensors) on Ubuntu / Debian Linux for monitoring CPU core temperatures along with the Telegraf lm-sensors plugin for writing these to InfluxDB and displaying them in Grafana. Some have suggested this, but I don't see power consumption reported by lm-sensors on my servers, a mix of Supermicro X8 systems and Lenovo Tiny desktops. I have monitored power consumption using two methods: Initially, by running SNMP queries (in a Python script) to an APC AP7801 , networked, metered PDU. I bought this PDU (cheaply on eBay) with the expectation to monitor individual outlets, but I didn't dig deep enough before buying it and learned later that it reports only total power consumption for all outlets. Currently, I use the Telegraf apcupsd plugin on the host (Debian-based NAS) that monitors my APC BackUPS Pro 1500 through USB. This provides all information available in the apcaccess command, and also is written to InfluxDB and displayed in Grafana. Again, both of these methods monitor only total power consumption. There are two options for monitoring power consumption of individual systems: Use a networked, metered PDU that monitors power consumption by outlet rather than a total. These are available, for example the CyberPower PDU81004 Switched Metered-By-Outlet PDU, 100-240V/15A, 8 Outlets, 1U Rackmount , but can get pretty pricey. Use smart plugs that include power monitoring, like these TP-Link Kasa Matter Smart Plug w/ Energy Monitoring .
2 of 13
4
My choice https://www.amazon.com/P3-P4400-Electricity-Usage-Monitor/dp/B00009MDBU
🌐
Ubuntu
manpages.ubuntu.com › bionic › man(8)
Ubuntu Manpage: powerstat - a tool to measure power consumption
powerstat measures the power consumption of a computer that has a battery power source or supports the RAPL (Running Average Power Limit) interface. The output is like vmstat but also shows power consumption statistics.
🌐
Linux Hint
linuxhint.com › monitor_optimize_power_usage
How to Monitor and Optimize Power Usage on Linux? – Linux Hint
Guide on how to monitor the system resource usage with the different tools and how to optimize the power usage on a Linux system using various doable methods.
🌐
Medium
medium.com › @dreams-smoke › how-to-monitor-power-usage-of-your-linux-computing-system-with-prometheus-grafana-f21b9933762
How to monitor Power Usage of your Linux computing system with Prometheus/Grafana | by Saurabh Sarkar | Medium
November 11, 2023 - Scaphandre is a monitoring agent, dedicated to energy consumption metrics. Depending on your kernel version, you could need to modprobe the module intel_rapl or intel_rapl_common first: modprobe intel_rapl_common # or intel_rapl for kernels < 5 · # To quickly run scaphandre in your terminal you may use docker: docker run -d -v /sys/class/powercap:/sys/class/powercap -v /proc:/proc -p 8080:8080 -ti hubblo/scaphandre prometheus # for using downloaded binary (https://hubblo-org.github.io/scaphandre-documentation/tutorials/getting_started.html): scaphandre stdout -t 15
🌐
Linux Mint Forums
forums.linuxmint.com › board index › main edition support › software & applications
power consumption monitor? - Linux Mint Forums
October 11, 2024 - Check for example this https://www.baeldung.com/linux/power-consumption 1. Please note that the measurements are approximate and may differ from the actual ones. 2. Sensors do not return values ​​in watts very often. The unit of power is calculated. P = U * I So the apps show the calculated ...
🌐
Xmodulo
xmodulo.com › how-to-monitor-power-usage-in-linux.html
How to monitor power usage in Linux
October 26, 2020 - For Linux-based systems, you can use PowerTop, an ncurses-based command-line tool developed by Intel to monitor process-level power consumption, and to provide suggestions to optimize power management.
🌐
Certsimple
certsimple.com › home › how to check power consumption linux?
How To Check Power Consumption Linux? - CertSimple.com
March 12, 2026 - To do this, simply run the following command: cat /proc/acpi/battery/BAT0/state This will give you output that looks something like this: remaining capacity: 96868 mWh present rate: 0 mW charging state: discharging present voltage: 12642 mV ...
🌐
BinaryTides
binarytides.com › home › how to monitor cpu power consumption in watts on ubuntu
How to monitor cpu power consumption in watts on Ubuntu - BinaryTides
November 19, 2022 - root@li240-5:~# turbostat Command ... install linux-tools-common # version 5.15.0-52.58 root@li240-5:~# The following turbostat command example displays the cpu usage (%), clock frequency (mhz), temperature (C) and power consumption (watts).
🌐
OMG! Ubuntu
omgubuntu.co.uk › home › news › see real-time power usage (in watts) in ubuntu’s top panel
See Real-Time Power Usage (in Watts) in Ubuntu's Top Panel - OMG! Ubuntu
September 22, 2024 - Of course, you can monitor power consumption on Linux without any extension. Command line tools like upower can do it, as can some system monitors, and there are dedicated GUI energy apps, like Power Statistics which is included in Ubuntu.
🌐
UbuntuMint
ubuntumint.com › home › how to display power usage in watts on ubuntu’s top bar
How to Display Power Usage in Watts on Ubuntu's Top Bar
September 28, 2024 - The GNOME PowerTracker extension is lightweight and does not require any additional dependencies, making it easy to install and use. It displays active power consumption in watts directly in the top panel of the GNOME desktop environment.
🌐
YouTube
youtube.com › watch
Find out battery power consumption (wattage) on your laptop on Linux - YouTube
PowerTOP is a useful tool to monitor the overall power consumption of your laptop while running on battery. But you can gather the same details by navigating...
Published   November 29, 2022