#Mangohud and OpenGL

17 messages · Page 1 of 1 (latest)

sly swallow
#

to summarize, i do not have Vulkan support, so i need to use OpenGL and Mangohud doesn't like running with it, giving the error ERROR: ld.so: object '/usr/$LIB/mangohud/libMangoHud.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
I checked online for a solution, which was to add export LD_PRELOAD=/usr/lib/mangohud/libMangoHud.so:/usr/lib32/mangohud/libMangoHud.so to ~.bash_profile and i also added it directly to /etc/profile since it had priority.
After logging out and back in, EVERYTHING has a mangohud instance running, and that causes KDE's taskbar and desktop to crash, but other functions somehow work.
Now of course i can remove the commad from /etc/profile and ~/.bash_profile but i also want Mangohud to work when i call for it in the terminal.
Can anybody give a better solution? I turned off Global Enable for Mangohud through GOverlay, but nothing.
Running Arch Linux 6.2 on linux-zen kernel, KDE Plasma 5.27 on Wayland
GPU is Intel HD Graphics 4000

wooden tangle
#

What happens if you put mangohud in your DE?

#
[Desktop Entry]
Name=Sway
#Comment=An i3-compatible Wayland compositor
Exec=env __GL_GSYNC_ALLOWED=0 __GL_VRR_ALLOWED=0 WLR_DRM_NO_ATOMIC=1 QT_AUTO_SCREEN_SCALE_FACTOR=1 QT_QPA_PLATFORM=wayland QT_WAYLAND_DISABLE_WINDOWDECORATION=1 GDK_BACKEND="wayland,X11" XDG_CURRENT_DESKTOP=sway GBM_BACKEND=nvidia-drm __GLX_VENDOR_LIBRARY_NAME=nvidia MOZ_ENABLE_WAYLAND=1 WLR_NO_HARDWARE_CURSORS=1 XWAYLAND_NO_GLAMOR=0 
MANGOHUD=1 sway --unsupported-gpu
#Type=Application
#

In mine, I put mangohud right near the end, and it applies to all steam games, even ones I don't specicifically tell to use it.

#

@sly swallow

sly swallow
#

everyhting related to the DE (desktop environment) has its own Mangohud window

#

the taskbar, desktop, system settings app, most other system apps too

#

funny thing is, i tried NFS:MW (2005) and mangohud didn't work there

wooden tangle
#

that's in my /usr/share/wayland-sessions/sway

#

So you may have to add env MANGODUN=1 into it

#

assuming you don't have env vars already set

sly swallow
#

still nothing

#

it did not work, remember this is OpenGL we talking about

#

not Vulkan

#

the ironic thing is, if i add the command to ~/.bash_profile mangohud works in everything EXCEPT FOR WINE APPS

#

which means literally nothing has been achived