Mangohud shows 0% GPU utilization

Basically what the titles says.

I did some googling and found this issue going as far back as 2021. Some suggest installing libxnvctrl but on my end it’s already installed. Others suggested installing linux-headers but that’s also already installed.

Oddly enough, I’ve never had this issue before, I first noticed it a few days ago.

Any ideas?

System:
  Kernel: 6.13.3-arch1-1 arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
  Desktop: GNOME v: 47.4 Distro: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 82JM v: Legion 5 17ITH6H
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: <superuser required>
    UEFI: LENOVO v: H1CN58WW date: 04/11/2024
Battery:
  ID-1: BAT0 charge: 72.8 Wh (91.0%) condition: 80.0/80.0 Wh (100.0%)
    volts: 16.0 min: 15.4 model: Celxpert L20C4PC2 status: not charging
CPU:
  Info: 8-core model: 11th Gen Intel Core i7-11800H bits: 64 type: MT MCP
    arch: Tiger Lake rev: 1 cache: L1: 640 KiB L2: 10 MiB L3: 24 MiB
  Speed (MHz): avg: 800 min/max: 800/2300 cores: 1: 800 2: 800 3: 800 4: 800
    5: 800 6: 800 7: 800 8: 800 9: 800 10: 800 11: 800 12: 800 13: 800 14: 800
    15: 800 16: 800 bogomips: 73728
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel TigerLake-H GT1 [UHD Graphics] vendor: Lenovo driver: i915
    v: kernel arch: Xe bus-ID: 00:02.0
  Device-2: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: Lenovo
    driver: nvidia v: 570.86.16 arch: Ampere bus-ID: 01:00.0
  Device-3: Syntek Integrated Camera driver: uvcvideo type: USB
    bus-ID: 3-6:2
  Display: wayland server: X.org v: 1.21.1.15 with: Xwayland v: 24.1.5
    compositor: gnome-shell driver: gpu: i915 resolution: 1920x1080~144Hz
  API: EGL v: 1.5 drivers: iris,nvidia platforms:
    active: gbm,wayland,x11,surfaceless,device inactive: N/A
  API: OpenGL v: 4.6.0 compat-v: 4.6 vendor: intel mesa v: 24.3.4-arch1.1
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics (TGL GT1)
  API: Vulkan v: 1.4.303 drivers: N/A surfaces: xcb,xlib,wayland devices: 1
  Info: Tools: api: eglinfo, glxinfo, vulkaninfo gpu: nvidia-smi
    x11: xprop,xrandr
Audio:
  Device-1: Intel Tiger Lake-H HD Audio vendor: Lenovo driver: snd_hda_intel
    v: kernel bus-ID: 00:1f.3
  Device-2: NVIDIA GA106 High Definition Audio driver: snd_hda_intel
    v: kernel bus-ID: 01:00.1
  Device-3: Texas Instruments PCM2900C Audio CODEC
    driver: hid-generic,snd-usb-audio,usbhid type: USB bus-ID: 3-11:5
  API: ALSA v: k6.13.3-arch1-1 status: kernel-api
  Server-1: PipeWire v: 1.2.7 status: active
Network:
  Device-1: Intel Tiger Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3
  IF: wlan0 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel port: 3000 bus-ID: 58:00.0
  IF: enp88s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth driver: btusb v: 0.8 type: USB
    bus-ID: 3-14:6
  Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: disabled
    rfk-block: hardware: no software: yes address: see --recommends
Drives:
  Local Storage: total: 2.75 TiB used: 1.12 TiB (40.8%)
  ID-1: /dev/nvme0n1 vendor: SK Hynix model: HFS001TDE9X084N
    size: 953.87 GiB temp: 44.9 C
  ID-2: /dev/nvme1n1 vendor: Kingston model: SNV2S2000G size: 1.82 TiB
    temp: 33.9 C
Partition:
  ID-1: / size: 936.84 GiB used: 312.17 GiB (33.3%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-2: /boot size: 1022 MiB used: 524.7 MiB (51.3%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: zram size: 4 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 38.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 64 GiB note: est. available: 62.58 GiB used: 4.39 GiB (7.0%)
  Processes: 369 Uptime: 15m Init: systemd
  Packages: 1198 Compilers: clang: 19.1.7 gcc: 14.2.1 Shell: Bash v: 5.2.37
    inxi: 3.3.37

I don’t use mangohud (never had a use for it) but have you tried it with the 32bit package installed also?
Have you checked the wiki?
https://wiki.archlinux.org/title/MangoHud

Nope, that did nothing to solve my issue.

Cool, btw what DE are you using? Are you running under wayland or x11 (sorry if you already mentioned)

This is in the inxi output.

Gnome and Wayland.

i have a doubt that wayland can offers details infos ( plugin) for your gpu

thinking similar, would try under an x11 session or install a simple window manger like i3 or openbox and see if issue still occurs

Same issue under X, and I’ve been using mangohud just fine with Wayland for months. This is not specific to any display server.

Occasionally when I reboot, my GPU will change its identifier and I have to set up my GPU widget again. Could this have happened here?

What do you meanb by “GPU widget”?

This thing

Apparently the last update added the ability for MangoHUD to display usage for multiple GPUs so now you have to specify which GPU you want information on.

So I added gpu_list=0 to the config file and that did it.