Ubuntu • Debian • Fedora GNOME • Hyprland • Plasma C & x86_64 ASM Engine ⚡ Universal Hardware Discovery 🤖 AI-Assisted Engineering v2.2.0

FF Power Manager

Low-overhead Linux power management, Multi-DE Adaptive Refresh (60–165Hz), ffctl blame wakeup profiler, ffctl doctor residency audit, s2idle sleep-drain analytics, and a Cosmic Space GTK4 UI.

# Install via Debian/Ubuntu .deb package or build from source
$ sudo apt install ./ff-power-manager_2.2.0_amd64.deb
# Scan hardware, diagnose & inspect top watt offenders in C:
$ ffctl setup --apply && ffctl blame
FF Power Manager Cosmic Bento UI Showcase

Cosmic Bento Cockpit Gallery

Cosmic Bento Telemetry Overview

Telemetry Deck & USB-C PD

Live watt/thermal sparkline, USB-PD negotiation status, ToF distance gauge, and GPU-isolated corner space backdrop (~5% CPU).

Per-Process ~W & Freeze Profiler

Per-Process ~W & Safe Freeze

Attributes exact ~Watts & battery minutes lost per process, tracks discrete D0 GPU zombies, and pauses background hogs safely.

Battery & AC Policy Studio

Side-by-Side Policy Studio

Instant Battery/AC EPP, PCIe ASPM, NVMe/USB PM, and ff-power-autoboost orchestration with single-click presets.

Multi-DE Refresh & ToF Wave Gestures

Adaptive Refresh & ToF Wave Gestures

Zero-latency 60↔120Hz battery switching plus ≤18cm IR hand-wave actions for media pause, privacy dim, and session lock.

Engineered Features

⚡

Sub-Millisecond C & Assembly Core

Hand-written x86_64 assembly routines decode ST VL53L1 HID Report 4 packets and read sysfs power/thermal nodes directly via syscalls with minimal memory footprint.

🔍

Wakeup Blame & Residency Audit

ffctl blame --json ranks top CPU/wakeup offender processes & active PCI/USB hardware in 250ms, while ffctl doctor verifies s2idle hooks and PCI PM ratios.

🌙

Suspend Drain Analytics & Guard

ff-sleep-guard disables spurious USB/Thunderbolt wakeups and computes exact sleep duration, Wh used, and standby wattage via ffctl sleep-report.

🛡

Universal OEM & Lenovo ACPI Care

One-click 80% Battery Conservation (IdeaPad VPC2004 + standard charge_control_end_threshold), One-Shot 100% Charge Watchdog, Fn-Lock, and USB charge control.

🔋

Battery Health & Telemetry HUD

Real-time fuel-gauge analytics: design vs full-charge capacity (Wh), cycle count, voltage, NVMe/Wi-Fi thermals, and machine-readable JSON via ffctl health --json.

👓

GNOME Top Bar Quick Indicator

Lightweight GNOME Shell extension displaying live wattage draw, SSD/Wi-Fi °C, GPU clocks, Wh savings counter, MPRIS controls, Focus Mode, and quick profile toggles.

🎨

OLED Care & Zero-Touch Blanking

Anti-burn-in panel shift on HiDPI scales, 15s inactivity dimming, and instant DPMS screen-off when walking away without disturbing active video/audio playback.

🚀

Auto Dynamic Boost & Thermal Guardrail

Zero-overhead process watcher boosts compilers (gcc, cargo), Proton/Wine games, and local LLMs, while tapering RAPL PL1 limits at ≥90°C to prevent throttling.

🎬

Universal Intel Xe / i915 & AMD Support

Dynamically discovers P/E/LP-E cores, Intel Xe GuC SLPC, i915, and AMD Radeon DPM / k10temp nodes, pinning interactive compositor and HID/GPU IRQs cleanly.

📡

Live ToF Proximity Radar

Continuous millimeter-precision distance tracking over Intel ISH HID. Blanks display beyond 1.2m and wakes cleanly upon return, using zero webcam access.

🖥

Battery-Only Adaptive Refresh (ARR)

Drops refresh rate to 60Hz after 8s idle strictly on battery via Mutter.IdleMonitor and restores full 120Hz+ VRR at 0ms on keyboard or touchpad input.

📊

Interactive TUI Dashboard

Tabbed terminal dashboard (ff-tui) with single-key profile switching, 80% conservation toggle ([K]), live ToF radar bar, and sysfs read-back checks.

🔒

Non-Setuid Privilege Hardening

Unprivileged CLI/TUI binaries delegating privileged sysfs writes via explicit fork()/execv() PolicyKit boundaries across Ubuntu (sudo) and Fedora (wheel).

Fast CLI Reference (ffctl)

Command Description Details
ffctl status [--json] Live hardware status (Watts, battery %, CPU package temp, ARR Hz, EPP, ToF). Native C • JSON ready
ffctl doctor [--json] Inspect sleep guard hook, ACPI wakeups, PCI PM ratios, and daemon conflicts. < 2 ms Hardware Audit
ffctl blame [--json] Rank top processes by CPU, wakeups/sec, ~Watts, minutes lost & active dGPU/PCI blockers. 250 ms Live Profiler
ffctl setup [--apply] Auto-discover CPU tiers, USB-C PD, dGPU, ToF & recommend/apply optimal power policies. Hardware Setup Wizard
ffctl bundle [path] Export scrubbed .tar.gz diagnostics (masks usernames, hosts, MACs, IPs & UUIDs). Privacy-Safe Export
ffctl throttle PID Safely freeze/resume/deprioritize background battery hogs (protects system/DE PIDs). Safe Signal / IONice
ffctl sleep-report [--json] Inspect last s2idle/deep suspend duration, Wh consumed, and avg standby W. ff-sleep-guard Telemetry
ffctl health [--json] Display factory design capacity, full capacity, cycle count, and health score. Native Sysfs
ffctl conservation on|off Toggle 80% battery conservation (Lenovo VPC2004 & standard sysfs thresholds). PolicyKit / Sysfs
ffctl sensor live Stream continuous real-time distance and packet telemetry to terminal. Raw HID / Sub-ms ASM
ffctl apply [profile] Apply battery, ac, cool_quiet, max_battery, or extreme_performance. Hardware Verified
ff-tui / ff-power-manager Launch interactive terminal dashboard or GTK4/Libadwaita control center. ncurses & GTK4

About the Developer & Project

💻

Furkan (lwrlock)

18 Years Old • Computer Engineering Student • Linux Systems Developer

Hi! I am Furkan, an 18-year-old Computer Engineering student. I built FF Power Manager to solve real Linux laptop power and firmware quirks—such as high idle draw, s2idle suspend wakeups, hybrid P/E/LP-E scheduler latency, static OLED refresh waste, and Intel ISH ToF presence integration—using direct kernel sysfs interfaces, C/x86_64 assembly, and GNOME Wayland D-Bus APIs.

AI-Assisted Development: Engineered in collaboration with Google DeepMind Antigravity for C/assembly optimization, automated unit testing, and multi-distro PolicyKit/packaging hardening, with all hardware telemetry verified directly on bare-metal Linux machines.

C & x86_64 Assembly Linux Kernel Sysfs & RAPL Intel & AMD P-State / GPU Mutter IdleMonitor ARR Ubuntu & Fedora GNOME MIT Open Source