Nvidia GPU name changed after update. GPU sensors missing

I have a laptop with hybrid Intel+Nvidia graphics.
After update of Plasma from 5.25.5-4 to 5.26.2-1 I got Nvidia GPU sensors missing for the widgets and in the System Monitor.
Eventually I found out that all the sensors are there, but the Nvidia GPU name changed from gpu0 to gpu1. Therefore the sensors can’t be found by the old name, e.g gpu/gpu0/usage (see the screenshot). I believe it happened because before the update I have switched from Nvidia to Intel graphics.

Is there a way to change the Nvidia GPU name back to gpu0 so that the widgets and System Monitor can pick the sensors? Otherwise I have to manually change all the missing sensors.

Related KDE bug report

Thanks.

Missing GPU sensors in the System Monitor and in widget


Screenshot_20221103_232245

same here. I renamed the sensor in my widgets …

Unfortunately after manually changing the sensors I found out that they all show 0 values. So there is more to this problem than I thought…

GPU sensors showing 0 values

same here. How to fix it?

Hello,
Thanks for creating this thread, I also have the same problem.
Is there a way to go back to the previous version or to fix this problem?
I don’t even know what the problem is

Hi Everybody,

the solution is pretty simple. You have to ensure, that the nvidia drivers are loaded as early as possible. This also helps with some other problems, the nvidia card may cause. Like with DisplayLink or hibernation for example.

Edit /etc/mkinitcpio.conf

Find the MODULES section and add there inside the quotes or brackets nvidia nvidia_modeset nvidia_uvm nvidia_drm

Save out and rebuild the initramfs with sudo mkinitcpio -P

More about this and how to prevent forgetting to rebuild the initramfs after a Nvidia driver update see:
https://wiki.archlinux.org/title/NVIDIA#Early_loading

I hope I was helping.

1 Like

Thanks for the idea!

I’ve tried editing /etc/mkinitcpio.conf as you suggested. Unfortunately GPU sensors still show zero values.