Bug 473424 - GPU monitoring widget fails with 2 dedicated Nvidia cards
Summary: GPU monitoring widget fails with 2 dedicated Nvidia cards
Status: RESOLVED FIXED
Alias: None
Product: plasma-systemmonitor
Classification: Applications
Component: general (show other bugs)
Version: 5.27.7
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-15 16:24 UTC by Shad Young
Modified: 2023-08-24 14:21 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shad Young 2023-08-15 16:24:33 UTC
SUMMARY

Since the upgrade to 5.27.7, using any KDE Plasma based GPU monitoring applet, System Monitor page, or GPU sensor desktop widgets, now report incorrect or incomplete values when 2 dedicated nvidia GPUs are installed. GPU 1 reports wrong values, and GPU 2 reports no values.

The sensors displayed correct information prior to the upgrade to Plasma 5.27.7.

$nvidia-smi reports correct values.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Neon
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
NVidia Display Driver 525 or 535
Linux Kernel 6.2.26
AMD Ryzen 2600x, MSI X470, Kingston Hyper X 3200MT.

There was a known bug that is, as of last checking, marked as solved where this problem occurred with Nvidia driver 525 and was due to white spaces in $nvidia-smi output. It was reported as solved for 5.27.3 I think. It seems it is back.
Comment 1 Bug Janitor Service 2023-08-15 19:15:57 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/ksystemstats/-/merge_requests/64
Comment 2 Shad Young 2023-08-15 19:27:41 UTC
UPDATE: With more testing I have determined that what is happening is System Monitor GPU sensors show the nvidia-smi output from GPU2 in GPU1s sensor output. It is not showing GPU1 output at all.
Comment 3 Shad Young 2023-08-17 21:49:37 UTC
I have now tested and confirmed this on both Kubuntu 23.04, and Neon 5.27.
Comment 4 Oliver Beard 2023-08-24 14:19:41 UTC
Git commit e705ce96e16bcc311eab10ba8284d72a908fe270 by Oliver Beard.
Committed on 24/08/2023 at 13:14.
Pushed by olib into branch 'master'.

NvidiaSmiProcess: Fix missing data for GPU 2+

M  +1    -1    plugins/gpu/NvidiaSmiProcess.cpp

https://invent.kde.org/plasma/ksystemstats/-/commit/e705ce96e16bcc311eab10ba8284d72a908fe270
Comment 5 Oliver Beard 2023-08-24 14:20:25 UTC
Git commit ddce29082e9955331c4ba0e1561cc66fe54dce6c by Oliver Beard.
Committed on 24/08/2023 at 16:20.
Pushed by olib into branch 'Plasma/5.27'.

NvidiaSmiProcess: Fix missing data for GPU 2+


(cherry picked from commit e705ce96e16bcc311eab10ba8284d72a908fe270)

M  +1    -1    plugins/gpu/NvidiaSmiProcess.cpp

https://invent.kde.org/plasma/ksystemstats/-/commit/ddce29082e9955331c4ba0e1561cc66fe54dce6c