MangoHud
MangoHud copied to clipboard
[nvctrl.cpp:53] XNVCtrl didn't find the correct display
I am aware of this error when running Mangohud with any game, I think this causes me to make the GPU information disappear, the libXNVCtrl.so library is on my computer so I don't see the problem.
$vkcube
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0
[2022-07-16 20:19:25.661] [MANGOHUD] [info] [config.cpp:112] skipping config: '/usr/bin/MangoHud.conf' [ not found ]
[2022-07-16 20:19:25.661] [MANGOHUD] [info] [config.cpp:112] skipping config: '/home/metallica/.config/MangoHud/vkcube.conf' [ not found ]
[2022-07-16 20:19:25.661] [MANGOHUD] [info] [config.cpp:117] parsing config: '/home/metallica/.config/MangoHud/MangoHud.conf'
Selected GPU 0: Intel(R) Iris(R) Plus Graphics (ICL GT2), type: 1
[2022-07-16 20:19:25.749] [MANGOHUD] [error] [nvctrl.cpp:53] XNVCtrl didn't find the correct display
[2022-07-16 20:19:25.749] [MANGOHUD] [info] [overlay.cpp:716] Uploading is disabled (permit_upload = 0)
Information of Graphics Card
$ inxi -G
Graphics:
Device-1: Intel Iris Plus Graphics G7 driver: i915 v: kernel
Device-2: AMD Topaz XT [Radeon R7 M260/M265 / M340/M360 M440/M445 530/535
620/625 Mobile]
driver: amdgpu v: kernel
Device-3: Cheng Uei Precision Industry (Foxlink) HP TrueVision HD Camera
type: USB driver: uvcvideo
Display: x11 server: X.Org v: 1.21.1.3 with: Xwayland v: 22.1.0 driver:
X: loaded: modesetting unloaded: fbdev,vesa gpu: i915 resolution:
1: 1920x1080~60Hz 2: 1366x768~60Hz
OpenGL: renderer: Mesa Intel Iris Plus Graphics (ICL GT2)
v: 4.6 Mesa 22.0.4
SO:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Kali
Description: Kali GNU/Linux Rolling
Release: 2022.1
Codename: kali-rolling
libXNVCtrl.so
$ find . -iname "*libXNVC*"
./libXNVCtrl.so.0.0.0
./libXNVCtrl.a
./libXNVCtrl.so.0
./libXNVCtrl.so
version MangoHud
$ sudo apt show mangohud
Package: mangohud
Version: 0.6.7-2
Priority: optional
Section: misc
Maintainer: Debian Games Team <[email protected]>
Installed-Size: 1.829 kB
Depends: libc6 (>= 2.33), libfmt8 (>= 8.1.1+ds1), libgcc-s1 (>= 3.0), libspdlog1-fmt8, libstdc++6 (>= 12)
Recommends: mangoctl
Suggests: libxnvctrl0, goverlay
Homepage: https://github.com/flightlessmango/MangoHud
Download-Size: 716 kB
APT-Manual-Installed: yes
APT-Sources: http://http.kali.org/kali kali-rolling/main amd64 Packages
Description: Vulkan/OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more
MangoHud is a highly customizable overlay for Vulkan and OpenGL application to
monitoring FPS, temperatures, CPU/GPU load and more.
.
This package includes the libraries for MangoHud and includes a script called
mangohud to start it on any OpenGL or Vulkan application.
To get data for Nvidia GPUs, you need to install libxnvctrl0.
That's nvidia stuff so of course it doesn't work. vkcube is running on intel gpu so not supported. try DRI_PRIME=1 and/or pci_dev
option to force MangoHud to show AMD gpu stats. Otherwise try multi-gpu
branch and show_all_gpus
(iirc) option.
That's nvidia stuff so of course it doesn't work. vkcube is running on intel gpu so not supported. try DRI_PRIME=1 and/or
pci_dev
option to force MangoHud to show AMD gpu stats. Otherwise trymulti-gpu
branch andshow_all_gpus
(iirc) option.
and how do I get the pci_dev
from my card?
Get from lspci
for example, just add extra 0:
in front of it.
0b:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Vega 10 XL/XT ...
Set in config file:
### Set to 'domain:bus:slot.function'
pci_dev=0:0b:0.0
Current git master
might have a bug oops, v0.6.7-1 seems to work still.