Vitals icon indicating copy to clipboard operation
Vitals copied to clipboard

AMD GPU not seen in the graphic monitor

Open KIDult2226 opened this issue 10 months ago • 3 comments

Has this issue been covered in the Wiki?

  • [x] I have read the Wiki and my issue is not covered.

Is there an existing issue reported already?

  • [x] I have searched the existing issues, it does not exist.

What is the unexpected behavior?

Image AMD core graphic 780m not detected in the vitals in spite to that sysfs can read the basic info, but the same feature works fine when I plugged in my discrete graphic card NVIDIA RTX 4080 SUPER, so it won't be a plugin problem. And here is my fastfetch: Image Thank you very much for your work!

Steps to reproduce the unexpected behavior.

cat /sys/class/drm/card0/device/gpu_busy_percent

Relevant log output


What distribution and version of Linux are you using?

CachyOS Rolling

What version of Gnome are you using?

GNONE 48


Update

I can confirm that it is not just inter GPU. I attach an AMD 9070XT discrete card and it has no statics as well. So all AMD GPU are not showing any statics

KIDult2226 avatar Mar 17 '25 08:03 KIDult2226

I'm seeing stats on a 5700 XT. Unless I'm missing a nuance of what might be missing.

Image Image

GreySimphonic avatar Jul 16 '25 20:07 GreySimphonic

I noticed the same problem on my Desktop (CachyOS) but not on my Laptop (Ubuntu). After some debugging I found the problem is how the GPU is represented in the drm sysfs. On CachyOS the GPU is card0 and on Ubuntu card1. This reveals a problem how the gpu is represented in the menu data structure.

Setup code for the gpu group in extension.js

this._numGpus = 1;
...
for (let i = 1; i <= this._numGpus; i++)
    this._initializeMenuGroup('gpu#' + i, 'gpu', (this._numGpus > 1 ? ' ' + i : ''));

The AMD gpu is discovered in sensors.js with the following code

_discoverGpuDrm() {
    // use DRM only if nvidia-smi is not used
    if (this._settings.get_boolean('show-gpu') && this._nvidia_smi_process == null) {
        // try to discover up to 10 cards starting from index 0
        for(let i = 0; i < 10 ; i++){
            new FileModule.File('/sys/class/drm/card'+i+'/device/vendor').read().then(value => {
                if(!this._gpu_drm_indices){
                    this._gpu_drm_indices = [];
                    this._gpu_drm_vendors = [];
                }
                this._gpu_drm_indices.push(i);
                this._gpu_drm_vendors.push(value);
            }).catch(err => { });
        }
    } else {
        this._gpu_drm_vendors = null;
        this._gpu_drm_indices = null;
    }
}

Here the number of the card will be used later for gpu# as group. So currently it only works if the card is represented as card1.

theobisproject avatar Aug 23 '25 19:08 theobisproject

Also just ran into this issue on my 9070XT on Fedora 42. Mine says "No Data" under the graphics tab when you click on Vitals. There are records in the Temp tab for amdgpu edge, junction and mem so something is being correctly interpreted at least.

Is there any way I can help diagnose the issue?

Image

shuttah627 avatar Aug 25 '25 10:08 shuttah627