🌐
Ubuntu
manpages.ubuntu.com › noble › 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 Mint Community
community.linuxmint.com › software › view › powerstat
Linux Mint - Community
Powerstat measures the power consumption of a mobile PC that has a battery power source. The output is like vmstat but also shows power consumption statistics.
🌐
Linux Command Library
linuxcommandlibrary.com › man › powerstat
powerstat man | Linux Command Library
powerstat linux command man page: Measure system power consumption statistics
🌐
GoLinuxHub
golinuxhub.com › 2018 › 06 › how-to-measure-power-consumption-in-watts-powerstat-linux-examples
How to measure power consumption in watts using powerstat in Linux with examples | GoLinuxHub
June 18, 2018 - In my last article I had explained ... commands which can show you the memory usage per process in Linux. These can help you troubleshoot performance related issues. In this article I will show the usage of powerstat to measure power in watts for various tuned profile and also ...
🌐
GNU
packages.guix.gnu.org › packages › powerstat
powerstat — Packages — GNU Guix
Website: https://kernel.ubuntu.com/~cking/powerstat/ Licenses: GPL 2 · Package source: gnu/packages/linux.scm · Builds: See build status · Issues: See known issues · Install the latest version of powerstat as follows: guix install powerstat · Or install a particular version: guix install powerstat@0.04.03 ·
🌐
Ubuntu
manpages.ubuntu.com › manpages › trusty › man8 › powerstat.8.html
Ubuntu Manpage: powerstat - a tool to measure laptop power consumption.
Measure power with the default of 10 samples with an interval of 10 seconds powerstat Measure power with 60 samples with an interval of 1 second powerstat 1 60 Measure power and redo sampling if we are not idle and we detect fork()/exec()/exit() activity sudo powerstat -r Measure power and redo sampling if less that 95% idle powerstat -i 95 Wait to settle for 1 minute then measure power every 20 seconds and show any fork()/exec()/exit() activity at end of the measuring powerstat -d 60 -s 20
🌐
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 - $ powerstat -d 0 0.5 960 Running for 480.0 seconds (960 samples at 0.5 second intervals). Power measurements will start in 0 seconds time.
🌐
Hectic Geek
hecticgeek.com › home › powerstat: power consumption calculator for ubuntu linux
powerstat: Power Consumption Calculator for Ubuntu Linux - Hectic Geek
October 9, 2021 - Thanks to those efforts, a Kernel developer of Ubuntu, called “Colin Ian” has written few tools that let you monitor the power consumption related things in Ubuntu Linux with ease. One, in particular, is called “powerstat”, and it is a pretty excellent little tool that calculates the power consumption of your Laptop/Notebook etc when running on your battery.
🌐
Code Tools
code.tools › man › 8 › powerstat
powerstat (8): Linux man pages – code.tools
powerstat is a program that measures the power consumption of a mobile PC that has a battery power souce. The output is like vmstat but also shows power consumption statistics.
Find elsewhere
🌐
Hexmos
hexmos.com › freedevtools › tldr › linux › powerstat
Powerstat - Measure Power Consumption | Online Free DevTools by Hexmos - linux Commands - TLDR | Online Free DevTools by Hexmos
October 26, 2025 - Measure power consumption with Powerstat. Analyze battery usage and system power states. Free online tool, no registration required.
🌐
CommandMasters
commandmasters.com › commands › powerstat-linux
How to Use the Command 'powerstat' (with examples)
The powerstat command is a powerful tool that measures and reports the power consumption of computers, especially those with a battery power source or those supporting the Intel RAPL (Running Average Power Limit) interface.
Top answer
1 of 1
8

Speaking on the power devices builtin statistics reporting capabilities level, not all devices support providing statistics ... Use the upower command of UPower to list power devices with the option -e like so(this is a demonstration on a test system):

$ upower -e
/org/freedesktop/UPower/devices/line_power_ADP0
/org/freedesktop/UPower/devices/battery_BAT0
/org/freedesktop/UPower/devices/DisplayDevice

Then check the information of the device you want with the option -i ... Names are pretty descriptive, so the direct power line:

$ upower -i /org/freedesktop/UPower/devices/line_power_ADP0
  native-path:          ADP0
  power supply:         yes
  updated:              Fri 11 Aug 2023 03:45:32 PM +03 (68 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    warning-level:       none
    online:              yes
    icon-name:          'ac-adapter-symbolic'

and as you can see, it doesn't have statistics ... So, information about current power consumption (among other information) can't be pulled from that device.

While the battery:

$ upower -i /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               LGC
  model:                L16L2PB2
  serial:               5545
  power supply:         yes
  updated:              Fri 11 Aug 2023 03:47:33 PM +03 (2 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               charging
    warning-level:       none
    energy:              5.06 Wh
    energy-empty:        0 Wh
    energy-full:         17.99 Wh
    energy-full-design:  30 Wh
    energy-rate:         9.238 W
    voltage:             7.744 V
    charge-cycles:       N/A
    time to full:        1.4 hours
    percentage:          28%
    capacity:            59.9667%
    technology:          lithium-polymer
    icon-name:          'battery-low-charging-symbolic'
  History (charge):
    1691758053  28.000  charging
  History (rate):
    1691758053  9.238   charging

does have statistics and among those is energy-rate: which you can isolate and format for printing with something like this:

$ upower --show-info /org/freedesktop/UPower/devices/battery_BAT0 |
awk '/energy-rate:/{print $2}'
10.828 # <--- output

However, the statistics update interval might vary and updated: shows the time the statistics were last updated, but you can force statistics refresh of a certain device with for example:

busctl call org.freedesktop.UPower \
/org/freedesktop/UPower/devices/battery_BAT0 \
org.freedesktop.UPower.Device Refresh

and you can pull for e.g. energy-rate every for example three seconds with something like this:

while sleep 3
do
# Refresh device statistics
busctl call org.freedesktop.UPower \
/org/freedesktop/UPower/devices/battery_BAT0 \
org.freedesktop.UPower.Device Refresh
# Query the device statistics
upower -i /org/freedesktop/UPower/devices/battery_BAT0 |
awk '/energy-rate:/{print $2}'
done
🌐
Pkgs.org
pkgs.org › download › powerstat
Powerstat Download for Linux (deb eopkg rpm xbps zst)
Download powerstat linux packages for Arch Linux, Debian, Fedora, openSUSE, Ubuntu, Void Linux
🌐
Debian Manpages
manpages.debian.org › testing › powerstat › powerstat(8)
powerstat(8) — powerstat — Debian testing — Debian Manpages
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.
🌐
Abilian
lab.abilian.com › Tech › Green IT › Power consumption (Linux servers)
Power consumption (Linux servers) - Abilian Innovation Lab
April 6, 2026 - Powerstat: Tracks and logs power consumption: bash sudo apt install powerstat powerstat -d 0 1 60 · Customizable for intervals and sampling frequency, providing averaged and peak power data. For precise and reliable power usage metrics, external power meters such as Kill A Watt or intelligent PDUs are ideal.
🌐
Arch Linux
aur.archlinux.org › packages › powerstat
AUR (en) - powerstat - Arch Linux
diff -u PKGBUILD.{old,new} --- ... <dev@goshawk22.uk> pkgname=powerstat -pkgver=0.04.05 +pkgver=0.04.06 pkgrel=1 pkgdesc='A tool for measuring a laptops power usage via the battery.' arch=('i686' 'x86_64') url="https://github.com/ColinIanKing/powerstat" license=('GPL2') ...
🌐
Ubuntu
launchpad.net › ubuntu › +source › powerstat
powerstat package : Ubuntu - Launchpad
powerstat: laptop power measuring tool powerstat-dbgsym: debug symbols for powerstat · This package has 0 new bugs and 0 open questions. Maintainer: Colin Ian King · Urgency:* Medium Urgency · Architectures:* linux-any · Latest upload: 0.04.05-1 · *actual publishing details may vary in this distribution, these are just the package defaults.
🌐
Alpine Linux
pkgs.alpinelinux.org › package › edge › testing › x86 › powerstat
powerstat - Alpine Linux packages
linux-headers · so:libc.musl-x86.so.1 · Required by (0) None · Sub Packages (2) powerstat-bash-completion · powerstat-doc · Provides (1) cmd:powerstat ·
🌐
Command Examples
commandexamples.com › linux › powerstat
Examples of powerstat Command in Linux - Command Examples
April 27, 2024 - Measures the power consumption of a computer that has a battery power source or supports the RAPL interface. More information: https://manned.org/powerstat.