monitor
monitor copied to clipboard
Shows 0% utilization and vram on AMD RX480 GPU
This is the error in the syslog.
Jan 20 09:52:31 <system-name> com.github.stsd[1416]: IGPU.vala:38: Failed to open file “/sys/class/drm/card0/device/mem_info_vram_used”: No such file or directory
Jan 20 09:52:31 <system-name> com.github.stsd[1416]: IGPU.vala:38: Failed to open file “/sys/class/drm/card0/device/mem_busy_percent”: No such file or directory
Jan 20 09:52:31 <system-name> com.github.stsd[1416]: IGPU.vala:38: Failed to open file “/sys/class/drm/card0/device/gpu_busy_percent”: No such file or directory
After googling it I found this.
https://forum.manjaro.org/t/gpu-usage-returns-0-in-almost-every-application/50092
It seems those files don't exist anymore.
I'm on 5.11.0-46-generic #51~20.04.1-Ubuntu
and those files exist. These files are created by amdgpu driver and are described in the Kernel docs. I'm not sure why they called it deprecated, but maybe they're absent on newer kernels or newer amdgpu drivers.
If You will find out how to fix it, let me know! It would be helpful if You'll create a PR since I'm unable to test Monitor on such hardware configuration.
I seems that system monitor is pointing to the wrong card. I have the integrated Intel HD 2500 (card0) enabled as well as the RX480 (card1).
/sys/class/drm/card1/device/mem_info_vram_used
/sys/class/drm/card1/device/mem_busy_percent
/sys/class/drm/card1/device/gpu_busy_percent
These files work and point to the RX480. The Intel GPU seems to use a different file layout. Does monitor support Intel iGPU's as I only see the RX480 listed?
Interestingly the temperature is being correctly read from card1.
/sys/class/drm/card1/device/hwmon/hwmon0/temp1_input
Is this the file used by monitor for reading AMD GPU temperatures?
Right now Monitor is not supporting multiple graphic card configuration.
Hwmon is parsed separately, You may investigate it here: https://github.com/stsdc/monitor/blob/d949b620235c4e27674fe18f265ff5726024b6c9/src/Resources/Hwmon/HwmonPathsParser.vala#L2
Feel free to write a PR for multiple graphic card support!