flightlessmango / MangoHud

A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more. Discord: https://discordapp.com/invite/Gj5YmBb
MIT License
6.52k stars 287 forks source link

GPU usage is always 0% #1482

Open nghialm269 opened 3 hours ago

nghialm269 commented 3 hours ago

Do not report issue for old MangoHud versions

Describe the bug GPU usage is always 0%.

List relevant hardware/software information

To Reproduce Steps to reproduce the behavior:

MANGOHUD_LOG_LEVEL=debug mangohud vkcube

Expected behavior GPU usage should show up correctly.

Screenshots image

Additional context Config:

################### File Generated by Goverlay ###################
legacy_layout=false

background_alpha=0.1
round_corners=0
background_alpha=0.1
background_color=000000

font_size=30
text_color=FFFFFF
position=top-left

hud_compact
pci_dev=0:01:00.0
table_columns=3
gpu_text=GPU
gpu_stats
gpu_core_clock
gpu_mem_clock
gpu_temp
gpu_power
gpu_color=2E9762
cpu_text=CPU
cpu_stats

cpu_mhz
cpu_temp
cpu_power
cpu_color=2E97CB
vram
vram_color=AD64C1
ram
ram_color=C26693
battery
battery_color=00FF00
fps
frame_timing
frametime_color=00FF00
fps_limit_method=late
toggle_fps_limit=Shift_L+F1

fps_limit=0
resolution
#offset=0

output_folder=/home/nghialm
log_duration=30
autostart_log=0
log_interval=100
toggle_logging=Shift_L+F2

Logs:

[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:778] Version: v0.7.2-87-g258491e
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/usr/bin/MangoHud.conf' [ not found ]
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/home/nghialm/.config/MangoHud/vkcube.conf' [ not found ]
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/etc/MangoHud.conf' [ not found ]
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [config.cpp:122] parsing config: '/home/nghialm/.config/MangoHud/MangoHud.conf'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:1019] Failed to read presets file: '/home/nghialm/.config/MangoHud/presets.conf'.  Falling back to default presets
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/usr/bin/MangoHud.conf' [ not found ]
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/home/nghialm/.config/MangoHud/vkcube.conf' [ not found ]
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/etc/MangoHud.conf' [ not found ]
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [config.cpp:122] parsing config: '/home/nghialm/.config/MangoHud/MangoHud.conf'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'legacy_layout' = 'false'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'background_alpha' = '0.1'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'round_corners' = '0'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'background_alpha' = '0.1'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'background_color' = '000000'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'font_size' = '30'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'text_color' = 'FFFFFF'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'position' = 'top-left'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'hud_compact' = '1'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'pci_dev' = '0:01:00.0'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'table_columns' = '3'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'gpu_text' = 'GPU'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'gpu_stats' = '1'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'gpu_core_clock' = '1'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'gpu_mem_clock' = '1'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'gpu_temp' = '1'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'gpu_power' = '1'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'gpu_color' = '2E9762'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'cpu_text' = 'CPU'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'cpu_stats' = '1'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'cpu_mhz' = '1'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'cpu_temp' = '1'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'cpu_power' = '1'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'cpu_color' = '2E97CB'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'vram' = '1'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'vram_color' = 'AD64C1'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'ram' = '1'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'ram_color' = 'C26693'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'battery' = '1'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'battery_color' = '00FF00'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'fps' = '1'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'frame_timing' = '1'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'frametime_color' = '00FF00'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'fps_limit_method' = 'late'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'toggle_fps_limit' = 'Shift_L+F1'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'fps_limit' = '0'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'resolution' = '1'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'output_folder' = '/home/nghialm'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'log_duration' = '30'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'autostart_log' = '0'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'log_interval' = '100'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [overlay_params.cpp:963] Param: 'toggle_logging' = 'Shift_L+F2'
[2024-11-16 19:08:56.887] [MANGOHUD] [debug] [logging.cpp:244] Logger constructed!
[2024-11-16 19:08:56.899] [MANGOHUD] [debug] [overlay.cpp:846] Ram:31977004
[2024-11-16 19:08:56.899] [MANGOHUD] [debug] [overlay.cpp:847] Cpu:AMD Ryzen 7 7800X3D 8-Core Processor
[2024-11-16 19:08:56.899] [MANGOHUD] [debug] [overlay.cpp:848] Kernel:6.11.7-arch1-1
[2024-11-16 19:08:56.899] [MANGOHUD] [debug] [overlay.cpp:849] Os:Arch Linux
[2024-11-16 19:08:56.899] [MANGOHUD] [debug] [overlay.cpp:850] Driver:
[2024-11-16 19:08:56.899] [MANGOHUD] [debug] [overlay.cpp:851] CPU Scheduler:powersave
[2024-11-16 19:08:56.900] [MANGOHUD] [debug] [cpu.cpp:515] hwmon: sensor name: spd5118
[2024-11-16 19:08:56.900] [MANGOHUD] [debug] [cpu.cpp:515] hwmon: sensor name: asus
[2024-11-16 19:08:56.900] [MANGOHUD] [debug] [cpu.cpp:515] hwmon: sensor name: k10temp
[2024-11-16 19:08:56.900] [MANGOHUD] [debug] [cpu.cpp:548] hwmon: using input: /sys/class/hwmon/hwmon2/temp1_input
[2024-11-16 19:08:56.900] [MANGOHUD] [debug] [cpu.cpp:641] hwmon: sensor name: spd5118
[2024-11-16 19:08:56.900] [MANGOHUD] [debug] [cpu.cpp:641] hwmon: sensor name: asus
[2024-11-16 19:08:56.900] [MANGOHUD] [debug] [cpu.cpp:641] hwmon: sensor name: k10temp
[2024-11-16 19:08:56.900] [MANGOHUD] [debug] [cpu.cpp:641] hwmon: sensor name: nvme
[2024-11-16 19:08:56.900] [MANGOHUD] [debug] [cpu.cpp:641] hwmon: sensor name: zenergy
[2024-11-16 19:08:56.900] [MANGOHUD] [debug] [cpu.cpp:610] hwmon: using input: /sys/class/hwmon/hwmon7/energy9_input
[2024-11-16 19:08:57.005] [MANGOHUD] [debug] [vulkan.cpp:1860] gpu: NVIDIA GeForce RTX 4060
[2024-11-16 19:08:57.005] [MANGOHUD] [debug] [vulkan.cpp:1546] Present mode: FIFO
[2024-11-16 19:08:57.051] [MANGOHUD] [debug] [vulkan.cpp:720] Recreating font image
[2024-11-16 19:08:57.068] [MANGOHUD] [debug] [vulkan.cpp:739] Default font tex size: 2048x2048px
[2024-11-16 19:08:57.083] [MANGOHUD] [debug] [vulkan.cpp:720] Recreating font image
[2024-11-16 19:08:57.101] [MANGOHUD] [debug] [vulkan.cpp:739] Default font tex size: 2048x2048px
[2024-11-16 19:08:57.115] [MANGOHUD] [debug] [vulkan.cpp:720] Recreating font image
[2024-11-16 19:08:57.132] [MANGOHUD] [debug] [vulkan.cpp:739] Default font tex size: 2048x2048px
[2024-11-16 19:08:57.135] [MANGOHUD] [error] [battery.cpp:29] No battery found
[2024-11-16 19:08:57.136] [MANGOHUD] [debug] [gpu.cpp:69] GPU Found: node_name: renderD128, vendor_id: 1002 device_id: 164e pci_dev: 0000:0c:00.0
[2024-11-16 19:08:57.147] [MANGOHUD] [debug] [nvidia.cpp:58] XNVCtrl didn't find the correct display
[2024-11-16 19:08:57.147] [MANGOHUD] [debug] [gpu.cpp:69] GPU Found: node_name: renderD129, vendor_id: 10de device_id: 2882 pci_dev: 0000:01:00.0
[2024-11-16 19:08:57.150] [MANGOHUD] [debug] [gpu.cpp:156] Active GPU Found: node_name: renderD129, pci_dev: 0000:01:00.0
[2024-11-16 19:08:57.174] [MANGOHUD] [debug] [vulkan.cpp:720] Recreating font image
[2024-11-16 19:08:57.192] [MANGOHUD] [debug] [vulkan.cpp:739] Default font tex size: 2048x2048px
flightlessmango commented 3 hours ago

I'm not certain 60fps in vkcube on a 4060 would cause more than 0% utilization

nghialm269 commented 3 hours ago

it doesn't show up in game either. I only noticed just now but VRAM is always 0 as well.

image

flightlessmango commented 3 hours ago

can you take a screenshot of nvidia-smi?

nghialm269 commented 3 hours ago

Latest stable version in archlinux, GPU usage and VRAM shows up, but GPU power doesn't: image

nvidia-smi: image