Games won't launch with Mangohud enabled

Hi there,

On my previous Ubuntu installation I had Steam and Mangohud working no problem, but on Fedora 40 is somehow doesn’t want to work.

I installed Mangohud in terminal using:

sudo dnf install mangohud

But when I add the following command to the launch options in Steam the game won’t launch.

mangohud %command%

Remove the launch option and the game starts and runs fine.
What is going on here??

My system:

System:
  Kernel: 6.9.5-200.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-37.fc40
  Desktop: Cinnamon v: 6.0.4 tk: GTK v: 3.24.42 wm: Muffin dm: LightDM
    Distro: Fedora Linux 40 (Cinnamon)
Machine:
  Type: Desktop Mobo: Gigabyte model: X399 AORUS Gaming 7
    serial: <superuser required> UEFI: American Megatrends v: F13a
    date: 11/30/2021
CPU:
  Info: 16-core model: AMD Ryzen Threadripper 2950X bits: 64 type: MT MCP
    arch: Zen+ rev: 2 cache: L1: 1.5 MiB L2: 8 MiB L3: 32 MiB
  Speed (MHz): avg: 3443 high: 3956 min/max: 2200/3500 boost: enabled cores:
    1: 3500 2: 3500 3: 3500 4: 3500 5: 2994 6: 3500 7: 3500 8: 3500 9: 3500
    10: 3500 11: 3500 12: 3314 13: 3956 14: 3500 15: 3500 16: 3500 17: 3500
    18: 3500 19: 3500 20: 3500 21: 3500 22: 3500 23: 3500 24: 3500 25: 2843
    26: 3500 27: 2594 28: 3500 29: 3500 30: 3500 31: 3500 32: 3500
    bogomips: 223558
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Navi 21 [Radeon RX 6950 XT] vendor: XFX driver: amdgpu
    v: kernel arch: RDNA-2 pcie: speed: 16 GT/s lanes: 16 ports: active: DP-3
    empty: DP-1, DP-2, HDMI-A-1, Writeback-1 bus-ID: 45:00.0
    chip-ID: 1002:73a5
  Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 24.1.0 driver: X:
    loaded: amdgpu unloaded: fbdev,modesetting,radeon,vesa dri: radeonsi
    gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96
  Monitor-1: DP-3 mapped: DisplayPort-2 model: Idek Iiyama PL3270Q
    res: 2560x1440 dpi: 93 diag: 801mm (31.5")
  API: OpenGL v: 4.6 vendor: amd mesa v: 24.1.2 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: AMD Radeon RX 6950 XT (radeonsi navi21 LLVM
    18.1.6 DRM 3.57 6.9.5-200.fc40.x86_64) device-ID: 1002:73a5
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
    speed: 16 GT/s lanes: 16 bus-ID: 45:00.1 chip-ID: 1002:ab28
  Device-2: Thesycon System & Consulting GmbH D30 Pro driver: snd-usb-audio
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 7-2:2 chip-ID: 152a:8750
  API: ALSA v: k6.9.5-200.fc40.x86_64 status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 1.0.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel pcie:
    speed: 2.5 GT/s lanes: 1 bus-ID: 04:00.0 chip-ID: 8086:24fd
  IF: wlo2 state: down mac: <filter>
  Device-2: Qualcomm Atheros Killer E2500 Gigabit Ethernet vendor: Gigabyte
    driver: alx v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: 1000
    bus-ID: 05:00.0 chip-ID: 1969:e0b1
  IF: enp5s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-3: Microsoft Xbox 360 Wireless Adapter driver: xpad type: USB
    rev: 2.0 speed: 12 Mb/s lanes: 1 bus-ID: 5-2:2 chip-ID: 045e:0719
Bluetooth:
  Device-1: Intel Bluetooth wireless interface driver: btusb v: 0.8 type: USB
    rev: 2.0 speed: 12 Mb/s lanes: 1 bus-ID: 1-7:2 chip-ID: 8087:0a2b
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 4.2
    lmp-v: 8
Drives:
  Local Storage: total: 2.27 TiB used: 363.78 GiB (15.6%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 960 EVO 1TB size: 931.51 GiB
    speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 34.9 C
  ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 980 PRO 500GB
    size: 465.76 GiB speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 35.9 C
  ID-3: /dev/nvme2n1 vendor: Samsung model: SSD 960 EVO 1TB size: 931.51 GiB
    speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 30.9 C
Partition:
  ID-1: / size: 464.17 GiB used: 8.36 GiB (1.8%) fs: btrfs dev: /dev/nvme1n1p3
  ID-2: /boot size: 973.4 MiB used: 322.9 MiB (33.2%) fs: ext4
    dev: /dev/nvme1n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 19 MiB (3.2%) fs: vfat
    dev: /dev/nvme1n1p1
  ID-4: /home size: 464.17 GiB used: 8.36 GiB (1.8%) fs: btrfs
    dev: /dev/nvme1n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 38.4 C mobo: N/A gpu: amdgpu temp: 34.0 C
    mem: 34.0 C
  Fan Speeds (rpm): N/A gpu: amdgpu fan: 0
Info:
  Memory: total: 32 GiB available: 31.21 GiB used: 5.36 GiB (17.2%)
  Processes: 644 Power: uptime: 59m wakeups: 0 Init: systemd v: 255
    target: graphical (5) default: graphical
  Packages: pm: flatpak pkgs: 7 Compilers: N/A Shell: Bash v: 5.2.26
    running-in: gnome-terminal inxi: 3.3.34
1 Like

mangohud %command% That’s pretty much it from my experience. I even have videos of me using it to test games, if I recall correctly that was it.

Start the game from the Terminal, see if mangohud throws any errors? You’ll need the steam id of the game.

For Steam games, you can add this as a launch option:

mangohud %command%

Or alternatively, add

MANGOHUD=1

to your shell profile (Vulkan only).

How do you start the game from terminal?
Mangohud and then steam game id number?

try steam mangohud app_id

Ok will try that tomorrow. I’m out now and don’t have access to my computer.

1 Like
stefan@fedora:~$ steam mangohud 212500
steam.sh[11845]: Running Steam on fedora 40 64-bit
steam.sh[11845]: STEAM_RUNTIME is enabled automatically
setup.sh[11918]: Steam runtime environment up-to-date!
steam.sh[11845]: Steam client's requirements are satisfied
[2024-06-23 10:20:04] Startup - updater built Jun 20 2024 17:13:49
[2024-06-23 10:20:04] Startup - Steam Client launched with: '/home/stefan/.local/share/Steam/ubuntu12_32/steam' '-srt-logger-opened' 'mangohud' '212500'
06/23 10:20:04 minidumps folder is set to /tmp/dumps
06/23 10:20:04 Init: Installing breakpad exception handler for appid(steam)/version(1718904662)/tid(11972)
[2024-06-23 10:20:04] Loading cached metrics from disk (/home/stefan/.local/share/Steam/package/steam_client_metrics.bin)
[2024-06-23 10:20:04] Using the following download hosts for Public, Realm steamglobal
[2024-06-23 10:20:04] 1. https://client-update.akamai.steamstatic.com, /, Realm 'steamglobal', weight was 1000, source = 'update_hosts_cached.vdf'
[2024-06-23 10:20:04] 2. https://cdn.cloudflare.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'update_hosts_cached.vdf'
[2024-06-23 10:20:04] 3. https://cdn.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2024-06-23 10:20:04] Verifying installation...
[2024-06-23 10:20:04] Verification complete
UpdateUI: skip show logo
Steam logging initialized: directory: /home/stefan/.local/share/Steam/logs

/usr/share/themes/Mint-Y-Aqua/gtk-2.0/main.rc:1053: error: unexpected identifier 'direction', expected character '}'
XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xebf0ee90
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xebf0d5f0
CAppInfoCacheReadFromDiskThread took 110 milliseconds to initialize
Steam Runtime Launch Service: starting steam-runtime-launcher-service
Steam Runtime Launch Service: steam-runtime-launcher-service is running pid 12163
bus_name=com.steampowered.PressureVessel.LaunchAlongsideSteam
BRefreshApplicationsInLibrary 1: 164ms
BuildCompleteAppOverviewChange: 352 apps
RegisterForAppOverview 1: 27ms
RegisterForAppOverview 2: 28ms
chdir "/mnt/Games/SteamLibrary/steamapps/common/Lord of the Rings Online"
ERROR: ld.so: object '/home/stefan/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/stefan/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
pid 12587 != 12586, skipping destruction (fork without exec?)
ERROR: ld.so: object '/home/stefan/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Adding process 12586 for gameID 212500
ERROR: ld.so: object '/home/stefan/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/stefan/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/stefan/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Adding process 12588 for gameID 212500
WARNING: discarding _NET_WM_PID 2 as invalid for X11 window - use specialized XCB_X11_TO_PID function!
WARNING: discarding _NET_WM_PID 2 as invalid for X11 window - use specialized XCB_X11_TO_PID function!
ERROR: ld.so: object '/home/stefan/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
gamemodeauto: 
ERROR: ld.so: object '/home/stefan/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/stefan/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
gamemodeauto: 
ERROR: ld.so: object '/home/stefan/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Adding process 12599 for gameID 212500
Adding process 12600 for gameID 212500
pressure-vessel-wrap[12599]: N: Not replacing "/etc/vulkan/explicit_layer.d" with tmpfs: Path "/etc" is reserved by the container framework
pressure-vessel-wrap[12599]: N: Not replacing "/etc/vulkan/implicit_layer.d" with tmpfs: Path "/etc" is reserved by the container framework
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Adding process 12720 for gameID 212500
Uploaded AppInterfaceStats to Steam
Removing process 12720 for gameID 212500
Removing process 12600 for gameID 212500
Removing process 12599 for gameID 212500
Removing process 12588 for gameID 212500
Removing process 12586 for gameID 212500
[2024-06-23 10:21:21] Shutdown
stefan@fedora:~$

For some unrelated reasons I did a complete fresh installation of Fedora.
Now it gets more interesting…

Mangohud does run fine when i launch LOTRO with proton >9.
But the only version that LOTRO runs good with (mouse look) is proton 6.3-8 which will cause a python3.7 crash when i try to launch LOTRO with mangohud enabled.
Which is still odd as I had no problems running LOTRO using proton 6.3-8 AND mangohud on debian based distro.

Also… where does mangohud stores the configuration files on Fedora???
On debian based distro it was just a config file in the .config folder. But that folder is not created during installation and manually creating it and put a config file there causes mangohud not to run at all. >_<

1 Like