Metadata-Version: 2.5
Name: powerflow-linux
Version: 0.2.2
Summary: Cross-distro Linux power profiles, GPU switching, and hardware controls for gaming laptops
Project-URL: Homepage, https://github.com/rhn-ryan/PowerFlow
Project-URL: Documentation, https://github.com/rhn-ryan/PowerFlow#readme
Project-URL: Repository, https://github.com/rhn-ryan/PowerFlow.git
Project-URL: Issues, https://github.com/rhn-ryan/PowerFlow/issues
Project-URL: Changelog, https://github.com/rhn-ryan/PowerFlow/releases
License: MIT
License-File: LICENSE
Requires-Python: >=3.11
Provides-Extra: gui
Requires-Dist: pyside6>=6.7; extra == 'gui'
Description-Content-Type: text/markdown

# PowerFlow

[![CI](https://github.com/rhn-ryan/PowerFlow/actions/workflows/ci.yml/badge.svg)](https://github.com/rhn-ryan/PowerFlow/actions/workflows/ci.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

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.

![PowerFlow Preview](https://raw.githubusercontent.com/rhn-ryan/PowerFlow/main/assets/screenshot.png)

## 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

```sh
# 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:

```sh
data/install-desktop-entry
```

To enable unprivileged battery limit and platform profile updates via PolicyKit:

```sh
sudo ./install-helper.sh
```

## CLI Usage

```sh
# 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](https://github.com/rhn-ryan/PowerFlow/blob/main/docs/ARCHITECTURE.md).
