Based on your command (sudo mangohud ./Superposition) and your request to get "all that MangoHud has to offer," I'll explain how to achieve this step by step. I'll assume ./Superposition is the Superposition Benchmark tool (a common GPU stress test/benchmark), but this advice applies to any app you want to run with MangoHud.
Quick Notes
- MangoHud is a Vulkan/OpenGL overlay that displays real-time metrics like FPS, frame timings, CPU/GPU stats (load, temp, power, clocks), RAM/VRAM usage, I/O, battery (if applicable), and more. It's highly configurable.
- "All that MangoHud has to offer": This means enabling every possible metric and feature (the "full" preset + extras). MangoHud doesn't show everything by default to avoid clutter, but you can configure it via environment variables or a config file.
- sudo: This is probably unnecessary unless Superposition requires root privileges (e.g., for hardware access). Running MangoHud with sudo can sometimes cause issues (e.g., with environment variables or permissions). I'll show commands both with and without it—try without first.
- Prerequisites: Ensure MangoHud is installed (e.g., via your distro's package manager:
sudo apt install mangohud on Ubuntu/Debian, or sudo dnf install mangohud on Fedora). If you're on Windows (via Proton/Wine), it works too but requires extra setup.
Step 1: Run with All Features Enabled (Recommended Command)
MangoHud has a built-in full preset that enables almost everything. You can extend it with additional options if needed.
Use this command (no sudo unless required):
MANGOHUD_CONFIG=full mangohud ./Superposition
What Does full Enable?
This preset activates a ton of metrics and features:
- Performance Metrics: FPS, frame timings (histogram/graph), throttling status.
- CPU Stats: Load %, power usage, temperature.
- GPU Stats: Load %, power usage, temperature, core clock, memory clock, fan speed (if supported).
- Memory/Storage: RAM usage, VRAM usage, swap usage, I/O read/write speeds.
- System/Engine Info: CPU architecture, Vulkan driver/version, OpenGL engine version, Wine/Proton details (if running under Wine), GameMode status (if enabled).
- Other: Battery stats (laptops), executable name, and more.
- Visuals: Default position (top-left), font size, colors, etc. It includes a frame time graph for detailed analysis.
This will overlay all this info on-screen while Superposition runs. Press Shift + F1 (or your configured toggle key) to show/hide it during runtime.
Example Output (What You'll See On-Screen)
Something like this (text overlay in the corner):
FPS: 120.5
Frame time: 8.3ms
CPU: 45% | 15W | 65°C
GPU: NVIDIA GeForce RTX 3080 | 80% | 150W | 70°C | Core: 1800MHz | Mem: 9500MHz | Fan: 50%
RAM: 12/32GB
VRAM: 6/10GB
IO Read/Write: 50MB/s / 20MB/s
Swap: 0/8GB
Vulkan Driver: NVIDIA 535.113
Engine: Vulkan 1.3
Arch: x86_64
[Frame time graph here]
Step 2: Customize for Even More (Fully Exhaustive Config)
If full isn't enough (or you want to tweak visuals), you can manually specify every single option MangoHud supports via MANGOHUD_CONFIG. This is overkill but gives you "all it has to offer."
Run this (again, add sudo only if needed):
MANGOHUD_CONFIG="cpu_stats,cpu_power,cpu_temp,cpu_mhz,gpu_stats,gpu_power,gpu_temp,gpu_core_clock,gpu_mem_clock,gpu_fan,vram,ram,swap,io_read,io_write,battery,exec,fps,frame_timing,histogram,frame_count,throttling_status,gamemode,engine_version,vulkan_driver,gpu_name,resolution,wine,arch,position=top-left,font_size=24,round_corners=5,background_alpha=0.5,toggle_hud=Shift_L+F1,toggle_hud_position=Shift_L+F2,toggle_logging=Shift_L+F3" mangohud ./Superposition
- Breakdown of All Options (what each enables):
- cpu_stats/cpu_power/cpu_temp/cpu_mhz: CPU load, power, temp, frequency.
- gpu_stats/gpu_power/gpu_temp/gpu_core_clock/gpu_mem_clock/gpu_fan/gpu_name: GPU load, power, temp, clocks, fan speed, GPU model.
- vram/ram/swap: Video RAM, system RAM, swap usage.
- io_read/io_write: Disk read/write speeds.
- battery: Battery level/usage (laptops only).
- exec: Shows the running executable name.
- fps/frame_timing/histogram/frame_count: FPS counter, frame time graph, histogram, frame counter.
- throttling_status: Detects CPU/GPU thermal throttling.
- gamemode: Shows if GameMode (performance optimizer) is active.
- engine_version/vulkan_driver/resolution: Graphics API version, Vulkan driver, current resolution.
- wine/arch: Wine/Proton details (if applicable), CPU architecture.
- Visual Tweaks: Position, font size, corner rounding, transparency, keybinds for toggling HUD/logging/position.
- Even More? If your hardware supports it, add
procmem (process memory) or device_battery (for multiple batteries). Check man mangohud for the full list.
This will make the overlay quite large—adjust font_size or position (e.g., top-right) if it's overwhelming.
Step 3: Make It Permanent (Config File)
If you want this config for every MangoHud run (not just this command):
- Create/edit the config file:
~/.config/MangoHud/MangoHud.conf
- Add your full config:
full
# Or the exhaustive list from above, one per line, e.g.:
cpu_stats
gpu_stats
# etc.
- Now just run
mangohud ./Superposition (it'll use the config automatically).
Step 4: Logging and Advanced Usage
- Enable Logging: To log all metrics to a file (great for benchmarks), add
log_interval=100 to your MANGOHUD_CONFIG (logs every 100ms). Toggle with your keybind (default: Shift + F3). Logs go to /tmp/MangoHud.<app>.log.
- Keybinds: Customize with
toggle_hud=KeyName (e.g., Shift_L+F1). List keys with mangohud --dlsym (test mode).
- Benchmark Mode: For Superposition specifically, run with logging enabled, then analyze the log file for averages/min/max FPS, etc.
- If Using Steam/Proton/Wine: Set
MANGOHUD=1 in launch options, and it should work automatically with the config.
Troubleshooting
- Nothing Shows Up?:
- Ensure the app uses Vulkan/OpenGL (Superposition does).
- Run
mangohud --dlsym to test the overlay.
- Check for errors:
MANGOHUD_CONFIG=full mangohud --dlsym glxgears.
- Performance Impact: Full mode adds slight overhead—disable extras like
histogram if it's an issue.
- Hardware Support: Not all GPUs/CPUs report temp/power (e.g., older AMD/Intel). Install tools like
lm-sensors for better sensor access.
- Errors with sudo: Environment variables like
MANGOHUD_CONFIG might not pass through sudo. Use sudo -E to preserve them: sudo -E MANGOHUD_CONFIG=full mangohud ./Superposition.
- More Help: Check the official docs (
man mangohud or GitHub: flightlessmango/MangoHud). If this doesn't work, provide your OS, GPU, and any error messages.
This should give you the complete MangoHud experience! If you meant something else by "all that mangohud has to offer," clarify and I'll refine.