Bug 453784 - Add support for Nvidia GPU temps monitoring through nvidia-smi
Summary: Add support for Nvidia GPU temps monitoring through nvidia-smi
Status: RESOLVED NOT A BUG
Alias: None
Product: plasma-systemmonitor
Classification: Applications
Component: general (show other bugs)
Version: 5.24.4
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-14 14:32 UTC by Lastique
Modified: 2022-05-15 23:24 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lastique 2022-05-14 14:32:05 UTC
SUMMARY

Please, add support for monitoring Nvidia GPU temperatures through nvidia-smi utility. The utility provides a lot of useful information about the GPU state, temps would be one example of data to extract.

Example output:

$ nvidia-smi
Sat May 14 17:26:38 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.43.04    Driver Version: 515.43.04    CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0  On |                  N/A |
| 31%   40C    P0    49W / 275W |   1660MiB / 11264MiB |      2%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1484      G   /usr/lib/xorg/Xorg               1057MiB |
|    0   N/A  N/A      1837      G   kwin_x11                           64MiB |
|    0   N/A  N/A      1864      G   /usr/bin/plasmashell              130MiB |
|    0   N/A  N/A      1957      G   ktorrent                            3MiB |
|    0   N/A  N/A      6399      G   /usr/bin/firefox                  226MiB |
|    0   N/A  N/A     14663      G   /usr/bin/kinfocenter               30MiB |
|    0   N/A  N/A     20821      G   ...b/thunderbird/thunderbird      139MiB |
+-----------------------------------------------------------------------------+

$ nvidia-smi dmon -s p
# gpu   pwr gtemp mtemp
# Idx     W     C     C
    0    47    40     -
    0    47    40     -
    0    47    40     -
    0    47    40     -
    0    48    40     -
    0    47    40     -

$ nvidia-smi dmon -s puc
# gpu   pwr gtemp mtemp    sm   mem   enc   dec  mclk  pclk
# Idx     W     C     C     %     %     %     %   MHz   MHz
    0    47    40     -     2     1     0     0  7250  1350
    0    47    40     -     3     1     0     0  7250  1350
    0    47    40     -     3     1     0     0  7250  1350
    0    48    40     -     2     1     0     0  7250  1350
    0    48    40     -     2     1     0     0  7250  1350

SOFTWARE/OS VERSIONS

Operating System: Kubuntu 22.04
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.15.0-30-lowlatency (64-bit)
Graphics Platform: X11
Processors: 16 × 12th Gen Intel® Core™ i7-12700K
Memory: 31.1 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2
Comment 1 Jack R 2022-05-15 14:49:06 UTC
This support appears to already exist in System Monitor.

Steps to utilize:
1.) Open Plasma System Monitor
2.) "Edit Page" (top right)
3.) "Add row" or click blue area  --> "Add Column" --> Click blue area to add a widget
4.) Click "Total Sensors" or "Sensors"
5.) Click nvidia gpu (probably GPU 0 or 1)
6.) Choose "Temperature" or other desired sensor/stat

Please let me know if this isn't working for you 

KDE Plasma 5.24.5 Frameworks 5.94
Comment 2 Lastique 2022-05-15 23:17:19 UTC
(In reply to Jack R from comment #1)
> This support appears to already exist in System Monitor.
> 
> Steps to utilize:
> 1.) Open Plasma System Monitor
> 2.) "Edit Page" (top right)
> 3.) "Add row" or click blue area  --> "Add Column" --> Click blue area to
> add a widget
> 4.) Click "Total Sensors" or "Sensors"
> 5.) Click nvidia gpu (probably GPU 0 or 1)
> 6.) Choose "Temperature" or other desired sensor/stat
> 
> Please let me know if this isn't working for you 
> 
> KDE Plasma 5.24.5 Frameworks 5.94

Thank you, I found it.

Though it is located in an unexpected place - all other sensors are in the Hardware Sensors category, which is where I was looking. Is it possible to move the sensors in one place?
Comment 3 Jack R 2022-05-15 23:24:14 UTC
(In reply to Lastique from comment #2)
> (In reply to Jack R from comment #1)
> > This support appears to already exist in System Monitor.
> > 
> > Steps to utilize:
> > 1.) Open Plasma System Monitor
> > 2.) "Edit Page" (top right)
> > 3.) "Add row" or click blue area  --> "Add Column" --> Click blue area to
> > add a widget
> > 4.) Click "Total Sensors" or "Sensors"
> > 5.) Click nvidia gpu (probably GPU 0 or 1)
> > 6.) Choose "Temperature" or other desired sensor/stat
> > 
> > Please let me know if this isn't working for you 
> > 
> > KDE Plasma 5.24.5 Frameworks 5.94
> 
> Thank you, I found it.
> 
> Though it is located in an unexpected place - all other sensors are in the
> Hardware Sensors category, which is where I was looking. Is it possible to
> move the sensors in one place?

I see what you mean.  "Hardware Sensors" is really like the "other" section.  That could be a possible feature change, as it is a little confusing.