Skip to main content

MangoHud Performance Profiler for Bazzite / SteamOS

Project description

MangoHudPy

A MangoHud configurator, profiler, log manager, and uploader for Linux gaming. Works on Bazzite, SteamOS (Steam Deck), and standard desktop Linux.

Upload benchmark logs to FlightlessSomething!


Features

Command Description
launch-option TUI to set per-game Steam launch options for silent background logging (Bazzite / Steam Deck)
configure Generate MangoHud.conf + presets.conf with logging keys (desktop Linux)
profile Launch any command under MangoHud for a timed session with automatic summary
graph Produce PNG/SVG charts from CSV logs (mangoplot preferred, matplotlib fallback)
summary Human-readable stats: avg/min/max, percentiles, FPS stability score, frametime jitter
games List unique game names found in your log files
organize Sort raw logs into ~/mangologs/<GameName>/ with rotation and current symlinks
bundle Zip logs for batch upload to FlightlessSomething
upload Push CSVs to FlightlessSomething via API (interactive TUI file picker included)
auto-organize Install a systemd timer to run organize automatically
test Simulate the gamescope MANGOHUD_CONFIGFILE override and verify logging works

Installation

pip install mangohudpy

With optional graph support (matplotlib):

pip install "mangohudpy[graphs]"

The mangohud-py command is available immediately after install.


Platform guide


Bazzite (Game Mode)

On Bazzite, gamescope-session sets MANGOHUD_CONFIGFILE to a temp file owned by mangoapp. This means MangoHud.conf and presets.conf are not respected for games in Game Mode — mangoapp controls the visual overlay exclusively via the Steam Performance slider.

The only supported logging method on Bazzite is the launch-option TUI.

mangohud-py launch-option

This sets a per-game Steam launch option that runs MangoHud silently in the background:

MANGOHUD_CONFIG="autostart_log=1,output_folder=~/mangologs,log_interval=100,
log_versioning=1,log_duration=0,no_display=1" mangohud %command%
  • no_display=1 — no overlay; the Steam Performance slider still controls display via mangoapp
  • autostart_log=1 — logging starts immediately on game launch, no keypress needed
  • Logs saved to ~/mangologs/ and named by game automatically

The TUI connects live to Steam's CEF debugger (no restart needed). Changes take effect the next time the game is launched.

TUI keys: SPACE toggle, a toggle all, s show/hide current launch option, u apply + quit, q quit.

Bazzite workflow:

# 1. Set per-game launch options (run once, update any time)
mangohud-py launch-option

# 2. After gaming — sort logs into per-game folders
mangohud-py organize

# 3. Upload to FlightlessSomething
mangohud-py upload

Steam Deck (SteamOS — Game Mode)

The Steam Deck uses the same gamescope-session + mangoapp mechanism as Bazzite — MangoHud.conf and presets.conf are not effective for games in Game Mode.

Use the launch-option TUI from Desktop Mode (CEF is typically available there). If Steam is not running when you use the TUI, changes are written to localconfig.vdf and take effect on next Steam restart.

To set launch options manually:

  1. Switch to Desktop Mode
  2. Right-click a game in Steam → Properties → Launch Options
  3. Paste:
    MANGOHUD_CONFIG="autostart_log=1,output_folder=~/mangologs,log_interval=100,log_versioning=1,log_duration=0,no_display=1" mangohud %command%
    

Desktop Linux (any distro)

On a standard desktop, MangoHud.conf and presets.conf are respected normally. The configure command generates both files with logging keys pre-applied.

# Generate MangoHud.conf + presets.conf (logging at every Steam Performance slider position)
mangohud-py configure --preset logging

# Minimal HUD, no logging
mangohud-py configure --preset minimal

# Profile a specific binary for 2 minutes
mangohud-py profile --command "game-binary" --duration 120

# Set per-game Steam launch options via TUI (same as Bazzite)
mangohud-py launch-option

Config presets

Preset Description
logging Full CSV logging, minimal OSD — best for data collection
minimal Lightweight HUD — FPS + frametime only, no logging
full Everything on OSD and all logging enabled (autostart_log=1)
battery Power / battery metrics — ideal for handheld devices
# Per-game config (Wine/Proton games)
mangohud-py configure --game Cyberpunk2077 --preset logging
# writes ~/.config/MangoHud/wine-Cyberpunk2077.conf

# Custom log output folder
mangohud-py configure --preset logging --log-dir /mnt/data/mangologs

presets.conf and the Steam Performance slider

configure also writes ~/.config/MangoHud/presets.conf, which maps the Steam Performance slider positions (1–4) to MangoHud display + logging configs. On desktop, MangoHud reads this file normally, so logging activates at any slider position.

On Bazzite/SteamOS Game Mode, presets.conf is not used for games — see above.


Summary and graphs

# Summarise the newest log
mangohud-py summary

# Summarise a specific log
mangohud-py summary --input ~/mangologs/MyGame_2026-03-05.csv

# JSON output (for scripting)
mangohud-py summary --input ~/mangologs/MyGame_2026-03-05.csv --json-output out.json

# Generate graphs (uses mangoplot if installed, otherwise matplotlib)
mangohud-py graph --input ~/mangologs/MyGame_2026-03-05.csv

# List all profiled games
mangohud-py games

Organise and bundle

# Sort logs into ~/mangologs/<GameName>/ folders
mangohud-py organize

# Auto-organize on a systemd timer (every 30 min by default)
mangohud-py auto-organize

# Bundle a game's logs into a zip for upload
mangohud-py bundle --game Cyberpunk2077

FlightlessSomething upload

# Store your API token once (get it from the site's /api-tokens page)
echo YOUR_TOKEN > ~/.flightless-token
chmod 600 ~/.flightless-token

# Interactive upload (TUI file picker)
mangohud-py upload

# Non-interactive upload for a specific game
mangohud-py upload --game Cyberpunk2077 -y

# Append runs to an existing benchmark
mangohud-py upload --append

Log locations

Path Description
~/mangologs/ Default log output and organised per-game folders
/tmp/MangoHud/ MangoHud default temp log location
~/.local/share/MangoHud/ XDG data dir fallback

Requirements

  • Python 3.9+
  • MangoHud installed (mangohud in PATH)
  • vdf — required for launch-option (pip install vdf)
  • websocket-client — required for CEF live injection in launch-option (pip install websocket-client)
  • matplotlib — optional, for graph generation (pip install "mangohudpy[graphs]")
  • mangoplot — optional, preferred for graphs (ships with MangoHud on Bazzite)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mangohudpy-1.0.9.tar.gz (47.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mangohudpy-1.0.9-py3-none-any.whl (51.6 kB view details)

Uploaded Python 3

File details

Details for the file mangohudpy-1.0.9.tar.gz.

File metadata

  • Download URL: mangohudpy-1.0.9.tar.gz
  • Upload date:
  • Size: 47.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for mangohudpy-1.0.9.tar.gz
Algorithm Hash digest
SHA256 56be10f2e0e728485878f6ed545bf29a3e574ac39a01aa47335353b1c93fb5d0
MD5 cf53d8f3b0133cf8eb9a8ebd3e4501a3
BLAKE2b-256 1553c89d84b857575dc792d09ab44df346e0c14a27037b1f848996e1a0180850

See more details on using hashes here.

File details

Details for the file mangohudpy-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: mangohudpy-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 51.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for mangohudpy-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c148af7d17ffc3d38ea362ddb8fe8609832a9787e04ad0b7dc52945daaa1b8a2
MD5 097c757ddacdc21d98e5f07c04d31bc7
BLAKE2b-256 51a4b7ced0b2bcdd73ef6907b95cccb6f17053f11c133cccddbeb7de379a6e4f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page