https://bugs.kde.org/show_bug.cgi?id=461389
ZAN DoYe <zand...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zand...@gmail.com --- Comment #4 from ZAN DoYe <zand...@gmail.com> --- This could be the nvidia-smi problem. I'm a debian user subscribing the official nvidia repository. After the latest nvidia udpate(nvidia driver 525) All the hardware monitor values related to nvidia card are zero. As a debian stable user working with plasma 5.20, the code monitoring nvidia card is in https://invent.kde.org/plasma/ksysguard.git/ And below is my patch to fix this issue(the new version of nvidia-smi now displays value with both prefix and suffix spaces and set the value of mtemp to '-' which will cause an error when tying to convert to int number): The line number in the patch may differ with yours because I also tweaked other parts of the code to make it suitable for my need. @@ -129,11 +179,13 @@ NvidiaPlugin::NvidiaPlugin(QObject *parent, const QVariantList &args) connect(m_process, &QProcess::readyReadStandardOutput, this, [=]() { while (m_process->canReadLine()) { - const QString line = m_process->readLine(); + QString line = m_process->readLine(); if (line.startsWith(QLatin1Char('#'))) { continue; } - const QVector<QStringRef> parts = line.splitRef(QLatin1Char(' '), Qt::SkipEmptyParts); + line.replace('-', '0'); + line= line.trimmed(); + const QVector<QStringRef> parts = line.splitRef(QRegExp(" +"), Qt::SkipEmptyParts); // format at time of writing is // # gpu pwr gtemp mtemp sm mem enc dec mclk pclk -- You are receiving this mail because: You are watching all bug changes.