lhwmon documentation
Roadmap
What comes next
lhwmon grows one feature at a time: each step is implemented, covered by
unit tests in tests/ (synthetic /sys and /proc trees, see FakeRoot)
and checked in the running app before the next one starts.
Guiding rules for every step:
- No root by default. Read what the kernel exposes to a normal user; anything that needs privileges (MSRs, raw SMART, SPD over SMBus, RAPL on recent kernels) goes through an optional helper later, and the UI says clearly which values need it.
- No distribution-specific dependencies. Read
/sysand/procdirectly;dlopenoptional vendor libraries (NVML) at runtime; look up database files (pci.ids,usb.ids) in every known location with a bundled fallback. - Missing hardware is normal. Every reader returns "unknown" instead of failing; every page has a sensible empty state.
Done
- Foundation. Core library (
lhwcore, no Qt) with root-prefixedSysFs, test harness, Qt 6 UI shell (sidebar, header, dark theme, own SVG icons), threaded sampler, English + Italian UI, AppImage packaging, CI. - Summary. Live tiles (CPU load, CPU temperature, memory, uptime and load) and identity cards (computer, motherboard, processor, graphics, storage, network).
- Sensors. Every hwmon channel grouped by chip with friendly chip names (CPU, NVMe model, DIMM slot, Super I/O), Current / Min / Max / Average, sparkline history, unconnected channels hidden, filter, reset.
Next
- Processor page. Per-core load and clock (live bars), topology, caches, instruction-set badges (supported / not supported), cpufreq driver, governor, EPP, boost state, CPU vulnerabilities and mitigations, microcode.
- Memory page. RAM and swap usage over time,
/proc/meminfobreakdown, zram/zswap, DIMM temperatures; DIMM modules (size, speed, part number) fromspd5118/ee1004EEPROMs when readable. - Motherboard & firmware page. All unprivileged DMI fields, UEFI vs legacy boot, Secure Boot state, Super I/O chip, chassis.
- Graphics page. Per GPU: name, board, driver and version, VRAM, PCIe link (current vs maximum), clocks, load, temperatures, power, fan. amdgpu and i915/xe from sysfs; NVIDIA through NVML loaded at runtime. Monitors: EDID decoding (name, size, resolution, refresh, manufacture date).
- Storage page. Drives and partitions, file system usage, transport
and link speed, live read/write throughput from
/sys/block/*/stat, NVMe health log and SATA SMART (through the helper orsmartctl --jsonwhen available), drive temperature. - Network page. Interfaces, addresses, link speed/duplex, Wi-Fi signal,
live up/down rates from
/sys/class/net/*/statistics. - Devices page. PCI tree (names from
pci.ids, class, driver, link speed/width) and USB tree (speed, power, names fromusb.ids). - Power page. Batteries (wear level, cycles, charge/discharge rate),
AC state, UPS through
power_supply, CPU/GPU package power where exposed (RAPL, amdgpupower1_average). - Operating system page. Distribution, kernel and command line, desktop and session, init system, loaded modules, uptime and boots.
Monitoring features
- Sensor customisation. Rename, hide and reorder sensors and chips; per-sensor offset/scale; °C/°F; decimals; saved per machine (keyed by chip id, which survives reboots).
- Graph workspace. Drag sensors into zoomable multi-line charts, selectable time window, save as PNG/CSV.
- Logging. CSV/JSON logging of selected sensors with interval and file rotation; session markers.
- Alerts. Per-sensor thresholds with hysteresis, duration and cooldown; actions: desktop notification, sound, run a command.
- Tray and compact widget. Sensor values in the tray (StatusNotifier), always-on-top compact panel.
- Diagnostics: "why is this sensor missing?" Detect Super I/O chips
without a driver, ACPI resource conflicts,
drivetempnot loaded, RAPL permissions, NVIDIA without NVML; show the fix. - Board label profiles. Curated labels and scaling for common Super
I/O channels keyed by DMI board name (
in4-> "+12V").
Tools
- Report. HTML, plain text and JSON report of every page, with a privacy option that leaves out serial numbers and MAC addresses.
- Stability test. CPU, FPU, cache, memory and GPU load with live graphs, throttling detection and a summary of peaks.
- Benchmarks. Memory and cache bandwidth/latency, CPU integer, FPU, crypto (AES, SHA-3) and compression tests, with saved results to compare.
- Disk benchmark. Read tests (sequential, random, access time); write tests only on explicit, repeated confirmation.
- Monitor test patterns. Calibration, grid, colour and dead-pixel screens.
Later
- Optional privileged helper (polkit) for MSR, SMART, SPD and RAPL.
- Remote monitoring: a headless mode with an authenticated HTTP/JSON and Prometheus endpoint.
- Light theme and theme following the desktop.
.deb,.rpm, Flatpak and AUR packages.