Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPU usage (%) not shown until I save config file #1301

Open
mattia-b89 opened this issue Apr 21, 2024 · 11 comments
Open

GPU usage (%) not shown until I save config file #1301

mattia-b89 opened this issue Apr 21, 2024 · 11 comments

Comments

@mattia-b89
Copy link

Describe the bug
I noticed GPU usage percentage is not shown until I save the configuration file;
NB: I save it but without any edit!

List relevant hardware/software information

  • Arch Linux
$ mangohud --version
v0.7.1
  • integrated Intel Broadwell (i5-5200U)

To Reproduce
Steps to reproduce the behavior:
(see screencast attached!)

  1. launch MangoHud
  2. save MangoHud.conf

Expected behavior
GPU stat should be shown as soon as I start MangoHud

Screenshots
I attach a screencast

Screencast.from.2024-04-21.10-34-39-RESIZED.mp4
@fallenexistence0
Copy link

Have you modifed the config file? If so, rename your config file to MangoHud.cong.example, download the default config file from the github repository and place it where your old config file was, I think gpu percentage is enabled by default, if not uncomment the line that shows the gpu percentage. Hopefully that works, cuz this is such a weird error lol.

@mattia-b89
Copy link
Author

Have you modifed the config file? If so, rename your config file to MangoHud.cong.example, download the default config file from the github repository and place it where your old config file was, I think gpu percentage is enabled by default, if not uncomment the line that shows the gpu percentage. Hopefully that works, cuz this is such a weird error lol.

No changes with upstream .conf file: I get the same issue with default settings too!

@fallenexistence0
Copy link

And does this error persist with other text editors? Try using vim or nano.

@mattia-b89
Copy link
Author

And does this error persist with other text editors? Try using vim or nano.

I have just tested with nano and I got the same:

  • nano .config/MangoHud/MangoHud.conf
  • add a 'space', remove the 'space', then save with CTRL-x
  • same result!

@fallenexistence0
Copy link

lmao, I'm out of ideas, at least it doesn't seem to be anything major.

@mattia-b89
Copy link
Author

mattia-b89 commented Apr 25, 2024 via email

@Tonic0
Copy link

Tonic0 commented May 5, 2024

Having the exact same problem here. Fedora 40 KDE Plasma under Wayland / Intel Iris Xe. Running both Steam and MangoHud as flatpaks. Not being able to get anything out of intel_gpu_top either, despite running setcap for it.

@flightlessmango
Copy link
Owner

flightlessmango commented May 12, 2024

A full log could be useful PROTON_LOG=1 MANGOHUD_LOG_LEVEL=DEBUG mangohud %command%

@mattia-b89
Copy link
Author

A full log could be useful PROTON_LOG=1 MANGOHUD_LOG_LEVEL=DEBUG mangohud %command%

sure!
full output:

$ PROTON_LOG=1 MANGOHUD_LOG_LEVEL=DEBUG mangohud mpv Downloads/R.A/s01/Resident.Alien.S01E01.Pilot.ITA.ENG.1080p.AMZN.WEB-DLMux.H.264-MeM.mkv 
 (+) Video --vid=1 (*) (h264 1920x1080 25.000fps)
 (+) Audio --aid=1 --alang=it (*) 'ITA' (ac3 2ch 48000Hz)
     Audio --aid=2 --alang=en 'ENG' (ac3 6ch 48000Hz)
 (+) Subs  --sid=1 --slang=it (*) 'Forced' (subrip)
     Subs  --sid=2 --slang=it (subrip)
     Subs  --sid=3 --slang=en (subrip)
     Subs  --sid=4 --slang=en 'SDH' (subrip)
Using hardware decoding (vaapi).
AO: [pipewire] 48000Hz stereo 2ch floatp
VO: [gpu] 1920x1080 vaapi[nv12]
[2024-05-13 17:53:50.766] [MANGOHUD] [debug] [config.cpp:119] skipping config: '/usr/bin/MangoHud.conf' [ not found ]
[2024-05-13 17:53:50.766] [MANGOHUD] [debug] [config.cpp:119] skipping config: '/home/mattia/.config/MangoHud/mpv.conf' [ not found ]
[2024-05-13 17:53:50.766] [MANGOHUD] [debug] [config.cpp:119] skipping config: '/etc/MangoHud.conf' [ not found ]
[2024-05-13 17:53:50.766] [MANGOHUD] [debug] [config.cpp:124] parsing config: '/home/mattia/.config/MangoHud/MangoHud.conf'
[2024-05-13 17:53:50.766] [MANGOHUD] [error] [overlay_params.cpp:1003] Failed to read presets file: '/home/mattia/.config/MangoHud/presets.conf'
[2024-05-13 17:53:50.766] [MANGOHUD] [debug] [overlay_params.cpp:956] Param: 'gpu_stats' = '1'
[2024-05-13 17:53:50.767] [MANGOHUD] [debug] [overlay_params.cpp:956] Param: 'cpu_stats' = '1'
[2024-05-13 17:53:50.767] [MANGOHUD] [debug] [overlay_params.cpp:956] Param: 'fps' = '1'
[2024-05-13 17:53:50.767] [MANGOHUD] [debug] [overlay_params.cpp:956] Param: 'frametime' = '1'
[2024-05-13 17:53:50.767] [MANGOHUD] [debug] [overlay_params.cpp:956] Param: 'throttling_status' = '1'
[2024-05-13 17:53:50.767] [MANGOHUD] [debug] [overlay_params.cpp:956] Param: 'throttling_status_graph' = '1'
[2024-05-13 17:53:50.767] [MANGOHUD] [debug] [overlay_params.cpp:956] Param: 'frame_timing' = '1'
[2024-05-13 17:53:50.767] [MANGOHUD] [debug] [overlay_params.cpp:956] Param: 'graphs' = 'gpu_load,cpu_load'
[2024-05-13 17:53:50.767] [MANGOHUD] [debug] [overlay_params.cpp:956] Param: 'text_outline' = '1'
[2024-05-13 17:53:50.767] [MANGOHUD] [debug] [logging.cpp:178] Logger constructed!
[2024-05-13 17:53:50.803] [MANGOHUD] [debug] [overlay.cpp:1058] Ram:8034644
[2024-05-13 17:53:50.803] [MANGOHUD] [debug] [overlay.cpp:1059] Cpu:Intel Core i5-5200U CPU @ 2.20GHz
[2024-05-13 17:53:50.803] [MANGOHUD] [debug] [overlay.cpp:1060] Kernel:6.8.9-zen1-2-zen
[2024-05-13 17:53:50.803] [MANGOHUD] [debug] [overlay.cpp:1061] Os:Arch Linux
[2024-05-13 17:53:50.803] [MANGOHUD] [debug] [overlay.cpp:1062] Driver:
[2024-05-13 17:53:50.803] [MANGOHUD] [debug] [overlay.cpp:1063] CPU Scheduler:schedutil
[2024-05-13 17:53:50.804] [MANGOHUD] [debug] [cpu.cpp:506] hwmon: sensor name: dell_smm
[2024-05-13 17:53:50.804] [MANGOHUD] [debug] [cpu.cpp:506] hwmon: sensor name: BAT0
[2024-05-13 17:53:50.804] [MANGOHUD] [debug] [cpu.cpp:506] hwmon: sensor name: AC
[2024-05-13 17:53:50.804] [MANGOHUD] [debug] [cpu.cpp:506] hwmon: sensor name: coretemp
[2024-05-13 17:53:50.804] [MANGOHUD] [debug] [cpu.cpp:538] hwmon: using input: /sys/class/hwmon/hwmon5/temp1_input
[2024-05-13 17:53:50.804] [MANGOHUD] [debug] [cpu.cpp:631] hwmon: sensor name: dell_smm
[2024-05-13 17:53:50.804] [MANGOHUD] [debug] [cpu.cpp:631] hwmon: sensor name: BAT0
[2024-05-13 17:53:50.804] [MANGOHUD] [debug] [cpu.cpp:631] hwmon: sensor name: AC
[2024-05-13 17:53:50.804] [MANGOHUD] [debug] [cpu.cpp:631] hwmon: sensor name: coretemp
[2024-05-13 17:53:50.804] [MANGOHUD] [debug] [cpu.cpp:631] hwmon: sensor name: pch_wildcat_point
[2024-05-13 17:53:50.804] [MANGOHUD] [debug] [cpu.cpp:631] hwmon: sensor name: acpitz
[2024-05-13 17:53:50.804] [MANGOHUD] [debug] [cpu.cpp:652] powercap: name: dram
[2024-05-13 17:53:50.804] [MANGOHUD] [debug] [cpu.cpp:652] powercap: name: core
[2024-05-13 17:53:50.804] [MANGOHUD] [debug] [cpu.cpp:652] powercap: name: 
[2024-05-13 17:53:50.804] [MANGOHUD] [debug] [cpu.cpp:652] powercap: name: package-0
[2024-05-13 17:53:50.807] [MANGOHUD] [debug] [gl_hud.cpp:132] vendor: Intel, deviceName: Mesa Intel(R) HD Graphics 5500 (BDW GT2)
[2024-05-13 17:53:50.807] [MANGOHUD] [debug] [gl_hud.cpp:154] GL device id: 0000
[2024-05-13 17:53:50.807] [MANGOHUD] [debug] [overlay.cpp:834] Intel: using drm device card1
[2024-05-13 17:53:50.808] [MANGOHUD] [debug] [overlay.cpp:965] Uploading is disabled (permit_upload = 0)
[2024-05-13 17:53:50.808] [MANGOHUD] [debug] [gl_hud.cpp:157] gpu: Mesa Intel HD Graphics 5500 
[2024-05-13 17:53:50.808] [MANGOHUD] [info] [gl_renderer.cpp:422] GL version: 4.6 
Failed to initialize PMU! (Permission denied)

When running as a normal user CAP_PERFMON is required to access performance
monitoring. See "man 7 capabilities", "man 8 setcap", or contact your
distribution vendor for assistance.

More information can be found at 'Perf events and tool security' document:
https://www.kernel.org/doc/html/latest/admin-guide/perf-security.html
[2024-05-13 17:53:50.818] [MANGOHUD] [info] [intel.cpp:63] Missing permissions for 'intel_gpu_top'
[2024-05-13 17:53:50.818] [MANGOHUD] [info] [intel.cpp:65] Disabling gpu_stats
[*** LOG ERROR #0001 ***] [2024-05-13 17:53:50] [MANGOHUD] string pointer is null [../MangoHud-v0.7.1/src/shared_x11.cpp(39)]
[2024-05-13 17:53:50.845] [MANGOHUD] [debug] [gl_renderer.cpp:296] glsl_version: 410
AV: 00:00:12 / 00:44:28 (0%) A-V:  0.000[2024-05-13 17:54:03.699] [MANGOHUD] [debug] [config.cpp:119] skipping config: '/usr/bin/MangoHud.conf' [ not found ]
[2024-05-13 17:54:03.699] [MANGOHUD] [debug] [config.cpp:119] skipping config: '/home/mattia/.config/MangoHud/mpv.conf' [ not found ]
[2024-05-13 17:54:03.699] [MANGOHUD] [debug] [config.cpp:119] skipping config: '/etc/MangoHud.conf' [ not found ]
[2024-05-13 17:54:03.699] [MANGOHUD] [debug] [config.cpp:124] parsing config: '/home/mattia/.config/MangoHud/MangoHud.conf'
[2024-05-13 17:54:03.699] [MANGOHUD] [error] [overlay_params.cpp:1003] Failed to read presets file: '/home/mattia/.config/MangoHud/presets.conf'
[2024-05-13 17:54:03.699] [MANGOHUD] [debug] [overlay_params.cpp:956] Param: 'gpu_stats' = '1'
[2024-05-13 17:54:03.699] [MANGOHUD] [debug] [overlay_params.cpp:956] Param: 'cpu_stats' = '1'
[2024-05-13 17:54:03.699] [MANGOHUD] [debug] [overlay_params.cpp:956] Param: 'fps' = '1'
[2024-05-13 17:54:03.699] [MANGOHUD] [debug] [overlay_params.cpp:956] Param: 'frametime' = '1'
[2024-05-13 17:54:03.699] [MANGOHUD] [debug] [overlay_params.cpp:956] Param: 'throttling_status' = '1'
[2024-05-13 17:54:03.699] [MANGOHUD] [debug] [overlay_params.cpp:956] Param: 'throttling_status_graph' = '1'
[2024-05-13 17:54:03.699] [MANGOHUD] [debug] [overlay_params.cpp:956] Param: 'frame_timing' = '1'
[2024-05-13 17:54:03.699] [MANGOHUD] [debug] [overlay_params.cpp:956] Param: 'graphs' = 'gpu_load,cpu_load'
[2024-05-13 17:54:03.699] [MANGOHUD] [debug] [overlay_params.cpp:956] Param: 'text_outline' = '1'
[2024-05-13 17:54:03.699] [MANGOHUD] [debug] [logging.cpp:178] Logger constructed!
[2024-05-13 17:54:03.699] [MANGOHUD] [debug] [notify.cpp:30] Watching config file: /home/mattia/.config/MangoHud/MangoHud.conf
AV: 00:00:14 / 00:44:28 (1%) A-V:  0.000
Exiting... (Quit)

but I think important output (since I press CTRL-S to save the .conf) starts with line
[2024-05-13 17:54:03.699] [MANGOHUD] [debug] [config.cpp:119] skipping config: '/usr/bin/MangoHud.conf' [ not found ]

@flightlessmango
Copy link
Owner

This appears to be the same issue as #1314 and I've tried to fix it in this commit a0a31b4

@flightlessmango
Copy link
Owner

I was wrong, it was not that issue.
I believe this 0caded8 commit should fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants