Documentation
lhwmon
Download, build, features
Linux Hardware Monitor: system information and live hardware sensors in one modern desktop app, built with C++17 and Qt 6.
It reads what the kernel already exposes to a normal user (/sys, /proc),
so it needs no root access, no daemon and no extra system packages, and
the same AppImage runs on any recent distribution.
Features
- Summary: CPU load and temperature, memory and uptime at a glance, plus the machine's identity (OS, kernel, motherboard, BIOS, CPU, caches, GPUs, drives, network interfaces).
- Sensors: every hwmon channel (CPU, GPU, motherboard Super I/O, DIMMs, NVMe and SATA drives, Wi-Fi/Ethernet chips, batteries) grouped by device with readable names, current / min / max / average values and a live history. Unconnected inputs are hidden by default.
- English and Italian UI.
See docs/ROADMAP.md for what comes next.
Download
Prebuilt AppImages for x86_64 and arm64 are attached to each release:
chmod +x lhwmon-linux-x86_64.AppImage
./lhwmon-linux-x86_64.AppImage
They are built on Ubuntu 24.04, so they run on distributions with glibc 2.39
or newer (Ubuntu 24.04+, Debian 13+, Fedora 40+, openSUSE Tumbleweed, Arch,
...). On distributions without FUSE 2, run them with
--appimage-extract-and-run.
Building
Prerequisites: CMake >= 3.20, a C++17 compiler, Qt >= 6.4 (Widgets, Svg,
LinguistTools).
| Distribution | Packages |
|---|---|
| Arch | cmake qt6-base qt6-svg qt6-tools |
| Debian / Ubuntu | cmake g++ qt6-base-dev qt6-svg-dev qt6-tools-dev qt6-l10n-tools |
| Fedora | cmake gcc-c++ qt6-qtbase-devel qt6-qtsvg-devel qt6-qttools-devel |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j
ctest --test-dir build --output-on-failure
./build/lhwmon
-DLHWMON_BUILD_APP=OFF builds only the hardware library (lhwcore) and its
tests, without Qt.
AppImage
ci/package-appimage.sh build/lhwmon x86_64 lhwmon-linux-x86_64
writes dist/lhwmon-linux-x86_64.AppImage (downloads linuxdeploy on first
use; set LINUXDEPLOY_CACHE_DIR to keep it). For an AppImage meant for
other machines, build on the oldest distribution you want to support, as
the CI does.
Command line
| Option | |
|---|---|
--page <id> |
Open a page (summary, sensors) |
--interval <ms> |
Refresh interval (default 1000) |
--screenshot <file> |
Save a PNG of the window after a few samples, then quit |
--sysroot <dir> |
Read /sys and /proc under another directory (testing) |
How it works
src/core/(lhwcore): plain C++17 readers for hwmon,/proc/stat,/proc/meminfo, DMI,/proc/cpuinfoand CPU topology, DRM/PCI devices (pci.ids), block devices and network interfaces. Every read goes throughlhw::SysFs, whose root prefix lets the unit tests run against synthetic trees.src/ui/: the Qt application. ASamplerreads every live value on its own thread once per interval (some sensor drivers take milliseconds per read) and hands a snapshot to the pages.
License
GPL-3.0-or-later. See LICENSE.