elvetemedve / gnome-shell-extension-system-monitor

Gnome Shell extension for displaying resource usage
GNU General Public License v3.0
87 stars 14 forks source link

Gpu indicator #94

Open kriap139 opened 1 year ago

kriap139 commented 1 year ago

Added a GPU indicator with support for AMD and Nvidia GPUs, inspired from System-monitoring-center (https://github.com/hakandundar34coding/system-monitoring-center).

It has been tested both dicrete AMD and Nvidia GPUs on wayland + X11. However, integrated graphics has not been tested.

elvetemedve commented 1 year ago

Nice job! :+1:

I've tested this with Intel integrated graphics (Intel UHD 620), but the file /sys/class/drm/card0/modalias does not exist, so all measured metrics displayed as 0.

kriap139 commented 1 year ago

Hm, the missing modalias file is wierd, it is present on my laptop that have UHD Graphics 630 (Coffe Lake). However Intel GPUs is not supported yet as they dosen't seem to support the hwmon interface. It seems that work is in progress on that front (https://www.phoronix.com/news/Linux-i915-HWMON-Linux), but i dont know if its only for their ARC line of GPUs or if it will be backported to older integrated graphics aswell. I haven't had time to see if there are any other means of doing this for Intel GPUs, it might be. If a discrete AMD or Nvidia gpu is precent, it should atomatically switch to that.

I am a little busy this week, but might have some time to look into it in the weekend.