MangoHud icon indicating copy to clipboard operation
MangoHud copied to clipboard

RTX 4060 Mobile GPU Power 0%

Open Slo2018 opened this issue 1 year ago • 52 comments

I have gaming laptop with RTX 4060 Mobile. I'm using Linux Mint. GPU Power always show 0% like on PC with RTX 4080. I compiled MangoHud from GitHub.

Slo2018 avatar Jan 01 '25 05:01 Slo2018

Do you mean mangohud shows 0 watts of gpu power usage for both your laptop and pc?

Does nvidia-smi show correct power usage?

17314642 avatar Jan 01 '25 06:01 17314642

Do you mean mangohud shows 0 watts of gpu power usage for both your laptop and pc?

Yes,

Slo2018 avatar Jan 01 '25 06:01 Slo2018

Does nvidia-smi show correct power usage?

17314642 avatar Jan 01 '25 13:01 17314642

image i have same problem with my rtx 4060 laptop, mandohud not show me any info about gpu like %, Mhz, vram or power. Maybe make new release? latest is from May 2024

KousekCZ avatar Jan 03 '25 01:01 KousekCZ

Having a similar bug. Just uptated to Nobara 41 ( Fedora core 41) And suddenly I'm getting all the sensors empty in MangoHud/Goverlay.

NvidiaSMI and other tools do show full stats with no issue.

What is interested is, this shows in the error log:

Selected WSI platform: xcb
[2025-01-03 14:49:09.575] [MANGOHUD] [**error**] [overlay_params.cpp:633] Unknown option **'io_stats'**
Selected GPU 0: NVIDIA GeForce RTX 4090, type: DiscreteGpu

Tamalero avatar Jan 04 '25 07:01 Tamalero

@Tamalero @KousekCZ launch mangohud with this environment variable MANGOHUD_LOG_LEVEL=debug

And send logs here

17314642 avatar Jan 04 '25 07:01 17314642

@Tamalero @KousekCZ launch mangohud with this environment variable MANGOHUD_LOG_LEVEL=debug

And send logs here

Here you go:

https://pastebin.com/m9FSQ3Le

Prior test with the help of the Nobara team:

https://pastebin.com/M2Y1igM5

Tamalero avatar Jan 04 '25 16:01 Tamalero

However, the bug that mangohud doesn't show me GPU information only happens in steam games. When I launch the game in heroic games launcher (installed via flatpak), the display works there without any problems

KousekCZ avatar Jan 04 '25 16:01 KousekCZ

However, the bug that mangohud doesn't show me GPU information only happens in steam games. When I launch the game in heroic games launcher (installed via flatpak), the display works there without any problems

This is different from me. In my case.. all launchers and even wine are the same. No data on the overlay for the gpu only.

Tamalero avatar Jan 04 '25 17:01 Tamalero

@KousekCZ can you try building flatpak mangohud-git?

https://github.com/17314642/org.freedesktop.Platform.VulkanLayer.MangoHud

I edited the manifest to download latest mangohud instead of 0.7.2. To build it you need to install flatpak-builder and appstream.

To build it do: flatpak-builder --install --user --force-clean build_dir org.freedesktop.Platform.VulkanLayer.MangoHud.yml

17314642 avatar Jan 04 '25 18:01 17314642

@Tamalero can you try building latest mangohud from repository and see if it works?

17314642 avatar Jan 04 '25 18:01 17314642

@Tamalero io_stats was deleted in 2023 in commit 95b7b4

use io_read and io_write

17314642 avatar Jan 04 '25 18:01 17314642

@Tamalero judging by the line "GPU Found" in logs, you are not using 0.7.2 release, but something newer between september 22 and december 16.

Can you try gpu_list=0,1 and see if it helps?

17314642 avatar Jan 04 '25 18:01 17314642

@KousekCZ can you try building flatpak mangohud-git?

https://github.com/17314642/org.freedesktop.Platform.VulkanLayer.MangoHud

I edited the manifest to download latest mangohud instead of 0.7.2. To build it you need to install flatpak-builder and appstream.

To build it do: flatpak-builder --install --user --force-clean build_dir org.freedesktop.Platform.VulkanLayer.MangoHud.yml

I've successfully built a repository and what do I do now? I've run the game on steam and still the gpu still doesn't work.

KousekCZ avatar Jan 04 '25 19:01 KousekCZ

@Tamalero judging by the line "GPU Found" in logs, you are not using 0.7.2 release, but something newer between september 22 and december 16.

Can you try gpu_list=0,1 and see if it helps?

using mangohud --version the output is:

v0.7.2

Also, can you tell me where do I use the gpu_list=-0,1 command?

Tamalero avatar Jan 04 '25 19:01 Tamalero

Also, can you tell me where do I use the gpu_list=-0,1 command?

It's a mangohud option that you add to config file or MANGOHUD_CONFIG env

flightlessmango avatar Jan 04 '25 22:01 flightlessmango

@KousekCZ

Do: flatpak list --columns=application,runtime,version,branch | grep -E "com.valvesoftware|MangoHud|heroic"

17314642 avatar Jan 05 '25 00:01 17314642

@Tamalero

send logs of command below

MANGOHUD_LOG_LEVEL=debug MANGOHUD_CONFIG="read_cfg=0,version,cpu_stats=0,frametime=0,frame_timing=0,gpu_list=0\,1,gpu_power,gpu_temp,gpu_voltage" mangohud vkcube --present_mode 0

17314642 avatar Jan 05 '25 00:01 17314642

@Tamalero

send logs of command below

MANGOHUD_LOG_LEVEL=debug MANGOHUD_CONFIG="read_cfg=0,version,cpu_stats=0,frametime=0,frame_timing=0,gpu_list=0\,1,gpu_power,gpu_temp,gpu_voltage" mangohud vkcube --present_mode 0

I actually disabled my CPU's integrated graphics and that fixed it.

But here is the output:

Selected WSI platform: xcb
parsing gpu list num: 0
parsing gpu list num: 1
Selected GPU 0: NVIDIA GeForce RTX 4090, type: DiscreteGpu

Tamalero avatar Jan 05 '25 06:01 Tamalero

@Tamalero in this case its not issue with nvidia, but with user interface showing wrong gpu and gpu_list=1 would fix your issue.

Try building master branch and launch vkcube with enabled integrated graphics. It should work fine, because I believe I fixed it already.

17314642 avatar Jan 05 '25 07:01 17314642

@KousekCZ

Do: flatpak list --columns=application,runtime,version,branch | grep -E "com.valvesoftware|MangoHud|heroic"

kousek@Asus-Kousek:~$ flatpak list --columns=application,runtime,version,branch | grep -E "com.valvesoftware|MangoHud|heroic" com.heroicgameslauncher.hgl org.freedesktop.Platform/x86_64/23.08 v2.15.2 stable org.freedesktop.Platform.VulkanLayer.MangoHud 0.7.0 22.08 org.freedesktop.Platform.VulkanLayer.MangoHud 0.7.2 23.08 org.freedesktop.Platform.VulkanLayer.MangoHud 0.7.2 24.08 org.freedesktop.Platform.VulkanLayer.MangoHud 0.7.2-ge8f84065 24.08

KousekCZ avatar Jan 05 '25 10:01 KousekCZ

@KousekCZ you don't have steam flatpak installed, are you testing flatpak mangohud with native steam?

17314642 avatar Jan 05 '25 16:01 17314642

Yes, you're right, I have steam installed from the normal packages. Should I reinstall it on flatpak?

KousekCZ avatar Jan 05 '25 18:01 KousekCZ

@KousekCZ flatpak mangohud is only for other flatpak apps, thats why it worked for your heroic launcher.

So you decide whether you want to use native steam or flatpak steam and install mangohud accordingly

17314642 avatar Jan 05 '25 19:01 17314642

ok and if I want to use steam from native packages outside of flatpak, how do I install mangohud to access it? and work properly? As long as i had nobara 40 it worked without any problem, but with the upgrade it stopped working.

KousekCZ avatar Jan 05 '25 20:01 KousekCZ

you install native version of mangohud for all native apps and flatpak mangohud for all flatpak apps

17314642 avatar Jan 05 '25 20:01 17314642

in that case it doesn't help, because I have mangohud installed via dnf packages, but it doesn't work in steam anyway and goverlay doesn't show the gpu app either. The only place it works is heroic. Native steam and flatpak doesn't work with gpu display

KousekCZ avatar Jan 05 '25 21:01 KousekCZ

Does mangohud vkcube work? (to install vkcube do dnf install vulkan-tools)

17314642 avatar Jan 06 '25 01:01 17314642

kousek@Asus-Kousek:~$ mangohud vkcube Selected WSI platform: xcb [2025-01-06 11:25:13.438] [MANGOHUD] [error] [overlay_params.cpp:633] Unknown option 'nis_steam_sharpness' Selected GPU 1: NVIDIA GeForce RTX 4060 Laptop GPU, type: DiscreteGpu

image

KousekCZ avatar Jan 06 '25 10:01 KousekCZ

sorry, should've said it in the first place: use MANGOHUD_LOG_LEVEL=debug, so command becomes like this:

MANGOHUD_LOG_LEVEL=debug mangohud vkcube

17314642 avatar Jan 06 '25 12:01 17314642