Skip to main content

Use Gamescope and MangoHud

Steam Headless includes Gamescope and MangoHud. Gamescope can give a game its own controlled display resolution, scaling method, and frame-rate limit. MangoHud adds an in-game overlay for frame rate, frame timing, GPU load, CPU load, memory use, and other available performance information.

Gaming Mode already runs Steam and its games inside Gamescope. The per-game Gamescope launch options below are optional, as is MangoHud. You do not need to install packages inside the running container. See streaming capture layers for how Gaming Mode changes what Steam Link captures compared with Steam Headless UI and Moonlight.

Update older containers

If gamescope or mangohud reports command not found, pull a current Steam Headless image and recreate the container while keeping the same persistent home directory. Packages installed manually with dnf are lost when the container is recreated.

Add a Steam launch option​

  1. Open Steam > Library on the Steam Headless desktop.
  2. Right-click the game and select Properties.
  3. Stay on General and find Launch Options.
  4. Enter one of the examples below. Keep %command% exactly as written because Steam replaces it with the game's normal command.
  5. Close the Properties window and start the game.

Remove the launch option to return the game to its normal launch behaviour.

Show MangoHud​

Use this launch option for a simple performance overlay:

mangohud %command%

MangoHud supports both Vulkan and OpenGL games. Press Right Shift + F12 while playing to hide or show the overlay, and press Left Shift + F4 to reload its configuration.

The global configuration is stored in your persistent home at:

~/.config/MangoHud/MangoHud.conf

For example, this compact configuration shows frame timing and common CPU, GPU, and memory statistics in the top-right corner:

~/.config/MangoHud/MangoHud.conf
fps
frametime
cpu_stats
gpu_stats
ram
vram
position=top-right

The installed example at /usr/share/doc/mangohud/MangoHud.conf.example lists the available settings. MangoHud also supports per-game files under ~/.config/MangoHud/; see the upstream MangoHud configuration guide for the filename rules and complete option reference.

Some host readings, such as CPU power or temperature sensors, may be unavailable inside a container. This does not prevent frame-rate, frame-time, GPU, CPU-load, and memory readings that the container can access from working.

Run a game through Gamescope​

For a per-game setup in Desktop Mode, Gamescope runs as a nested compositor inside the KDE Plasma Wayland desktop. It controls the selected game and its Gamescope window; it does not replace the Steam Headless desktop or change the streaming resolution by itself. These examples are separate from the session-wide Gamescope used by Gaming Mode.

Start with a fullscreen Gamescope window:

gamescope -f -- %command%

Limit a game to 60 frames per second:

gamescope -f -r 60 -- %command%

Render a game at 720p and scale it to a fullscreen 1440p window using integer scaling:

gamescope -f -h 720 -H 1440 -S integer -- %command%

The most useful options are:

  • -w and -h: resolution presented to the game;
  • -W and -H: Gamescope output-window resolution;
  • -r: frame-rate limit;
  • -f: fullscreen output window;
  • -b: borderless output window;
  • -S integer: integer scaling;
  • -F fsr: AMD FidelityFX Super Resolution 1.0 upscaling.

Run gamescope --help in Konsole for the complete option list, or refer to the upstream Gamescope examples and options.

Change one setting at a time

Begin with gamescope -f -- %command%, confirm the game starts and accepts input, then add resolution, scaling, or frame-rate options. This makes an unsupported game or driver combination much easier to identify.

Use MangoHud with Gamescope​

Gamescope uses MangoHud's integrated mangoapp overlay. Use:

gamescope -f --mangoapp -- %command%

Do not wrap Gamescope with the normal mangohud command. MangoHud upstream does not support that combination. The --mangoapp option uses the integrated overlay supplied by the MangoHud package.

Configure MangoHud with GOverlay​

GOverlay provides a graphical editor for MangoHud settings. It is optional and is not built into the Steam Headless image.

The easiest installation method is to open Discover, search for GOverlay, and install the Flathub version. You can also install it from Konsole as the desktop user:

flatpak install --user flathub io.github.benjamimgois.goverlay

Open GOverlay from the application menu, select its MangoHud settings, choose the information and layout you want, then save the global configuration. The resulting user configuration remains in the persistent home directory when the container is recreated.

GOverlay can configure other Linux gaming tools, but Flatpak limits features that need direct access to host commands or game directories. This guide only relies on its MangoHud configuration interface.

Further reading​