PowerFlow

PowerFlow (formerly TuxArmory / tux-armory) is a lightweight, cross-distribution Linux hardware and performance control center designed for gaming laptops and workstations. It provides both an intuitive PySide6 desktop interface and a scriptable command-line utility for managing power profiles, GPU switching, battery health thresholds, keyboard backlighting, and live hardware telemetry.

Features
- Power Profiles: Seamless switching across Quiet, Balanced, and Performance modes using Linux kernel ACPI (
platform_profile) and power-profiles-daemon.
- GPU Switching & PRIME Offload: Hybrid and Integrated GPU management via
supergfxctl, envycontrol, or system76-power, plus on-demand dGPU application execution via NVIDIA PRIME render offload.
- Battery Health Preservation: Configurable charging limits (60%, 80%, 100%) via standard sysfs battery thresholds, Lenovo IdeaPad conservation mode, and ThinkPad charge stop controls.
- Keyboard Lighting: Multi-mode RGB lighting and brightness controls with support for ASUS Aura, OpenRGB, and generic Linux kernel sysfs LED backlights.
- Hardware Telemetry: Real-time monitoring of CPU governors, thermal sensors, fan speeds, and NVIDIA GPU statistics (temperatures, power draw, and VRAM utilization).
- Desktop Integration: Polkit-authenticated sysfs helper for secure unprivileged tuning, tray menu with background polling, and responsive Qt interface.
Installation
# Install from PyPI (CLI)
python -m pip install powerflow-linux
# Install from PyPI with GUI dependencies
python -m pip install 'powerflow-linux[gui]'
# Or install from source
python -m pip install '.[gui]'
Desktop & Launcher Setup
Install the desktop entry and system icons:
data/install-desktop-entry
To enable unprivileged battery limit and platform profile updates via PolicyKit:
sudo ./install-helper.sh
CLI Usage
# View system hardware status
powerflow status
# View and set power profile
powerflow profiles
powerflow set-profile balanced
# GPU control
powerflow gpu
powerflow set-gpu Hybrid
# Set battery charge limit
powerflow set-charge-limit 80
# Keyboard lighting
powerflow aura mode "Colour Cycle"
powerflow aura brightness 3
Architecture
For an overview of the modular backend drivers, sysfs integration, and extension points, see docs/ARCHITECTURE.md.