KDE system monitor for GPU broke after nvidia 535  [Solved]

Help with the version of MX KDE officially released by the Development Team.
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
dove
Posts: 44
Joined: Sat May 04, 2019 1:56 pm

KDE system monitor for GPU broke after nvidia 535  [Solved]

#1 Post by dove »

I use system monitor in panel while using blender to keep track of vram usage. Nvidia 535 broke this. After researching this I found this https://www.reddit.com/r/kde/comments/1 ... _kde_once/. My question is the fix was on Ubuntu and will it be OK on MX or/and will the it just be fixed if I wait which seems to be suggested in this link?

Code: Select all

Snapshot created on: 20240513_1504
System:
  Kernel: 6.9.7-1-liquorix-amd64 [6.9-6~mx23ahs] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0 parameters: audit=0
    intel_pstate=disable BOOT_IMAGE=/boot/vmlinuz-6.9.7-1-liquorix-amd64 root=UUID=<filter> ro
    quiet splash
  Desktop: KDE Plasma v: 5.27.5 info: cairo-dock wm: kwin_x11 vt: 7 dm: SDDM
    Distro: MX-23.3_KDE_x64 Libretto October 15 2023 base: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Desktop Mobo: ASUSTeK model: ROG STRIX X470-F GAMING v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 6223 date: 03/22/2024
CPU:
  Info: model: AMD Ryzen 9 5900X bits: 64 type: MCP arch: Zen 3+ gen: 4 level: v3 note: check
    built: 2022 process: TSMC n6 (7nm) family: 0x19 (25) model-id: 0x21 (33) stepping: 2
    microcode: 0xA20120E
  Topology: cpus: 1x cores: 12 smt: <unsupported> cache: L1: 768 KiB desc: d-12x32 KiB; i-12x32
    KiB L2: 6 MiB desc: 12x512 KiB L3: 64 MiB desc: 2x32 MiB
  Speed (MHz): avg: 2415 high: 3700 min/max: 2200/4950 boost: enabled scaling:
    driver: acpi-cpufreq governor: ondemand cores: 1: 2879 2: 2200 3: 2200 4: 2200 5: 2200 6: 3700
    7: 2196 8: 2198 9: 2200 10: 2607 11: 2200 12: 2200 bogomips: 88800
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow mitigation: Safe RET
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; IBRS_FW; STIBP: disabled; RSB
    filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Blackmagic Design Intensity Pro 4K driver: blackmagic-io v: 12.9a3
    alternate: blackmagic_io pcie: gen: 1 speed: 2.5 GT/s lanes: 4 bus-ID: 04:00.0 chip-ID: bdbd:a139
    class-ID: 0400
  Device-2: NVIDIA GA102 [GeForce RTX 3090] vendor: eVga.com. driver: nvidia v: 535.183.01
    non-free: 530.xx+ status: current (as of 2023-03) arch: Ampere code: GAxxx process: TSMC n7 (7nm)
    built: 2020-22 pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s
    bus-ID: 09:00.0 chip-ID: 10de:2204 class-ID: 0300
  Device-3: Logitech QuickCam Pro 9000 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 5-2:2
    chip-ID: 046d:0990 class-ID: 0102 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 22.1.9 compositor: kwin_x11 driver: X:
    loaded: nvidia unloaded: fbdev,modesetting,nouveau,vesa alternate: nv gpu: blackmagic-io,nvidia
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x2160 s-dpi: 162 s-size: 602x341mm (23.70x13.43") s-diag: 692mm (27.24")
  Monitor-1: DP-4 res: 3840x2160 hz: 60 dpi: 163 size: 600x340mm (23.62x13.39")
    diag: 690mm (27.15") modes: N/A
  API: OpenGL v: 4.6.0 NVIDIA 535.183.01 renderer: NVIDIA GeForce RTX 3090/PCIe/SSE2
    direct-render: Yes
Audio:
  Device-1: Blackmagic Design Intensity Pro 4K driver: blackmagic-io v: 12.9a3 bus-ID: 3-2:3
    alternate: blackmagic_io pcie: chip-ID: 08bb:2707 class-ID: 0300 gen: 1 speed: 2.5 GT/s lanes: 4
    bus-ID: 04:00.0 chip-ID: bdbd:a139 class-ID: 0400
  Device-2: NVIDIA GA102 High Definition Audio vendor: eVga.com. driver: snd_hda_intel v: kernel
    pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 09:00.1
    chip-ID: 10de:1aef class-ID: 0403
  Device-3: AMD Starship/Matisse HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie:
    gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 0b:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-4: Texas Instruments PCM2707 stereo audio DAC type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  Device-5: Logitech QuickCam Pro 9000 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 5-2:2
    chip-ID: 046d:0990 class-ID: 0102 serial: <filter>
  API: ALSA v: k6.9.7-1-liquorix-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.3 status: off with: 1: pipewire-pulse status: off 2: wireplumber
    status: off 3: pw-jack type: plugin tools: pw-cat,pw-cli,wpctl
  Server-2: PulseAudio v: 16.1 status: active tools: pacat,pactl,pavucontrol
Network:
  Device-1: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 07:00.0 chip-ID: 8086:1539 class-ID: 0200
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: tun0 state: unknown speed: 10000 Mbps duplex: full mac: N/A
Drives:
  Local Storage: total: 3.64 TiB used: 2.19 TiB (60.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 970 EVO Plus 1TB size: 931.51 GiB
    block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 4B2QEXM7 temp: 39.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:2 vendor: Samsung model: SSD 970 EVO Plus 2TB size: 1.82 TiB
    block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 2B2QEXM7 temp: 56.9 C scheme: GPT
  ID-3: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 EVO 1TB size: 931.51 GiB block-size:
    physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 3B6Q scheme: MBR
Partition:
  ID-1: / raw-size: 50.9 GiB size: 49.92 GiB (98.09%) used: 26.57 GiB (53.2%) fs: ext4
    dev: /dev/nvme1n1p2 maj-min: 259:4
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%) used: 288 KiB (0.1%) fs: vfat
    dev: /dev/nvme1n1p1 maj-min: 259:3
  ID-3: /home raw-size: 1.77 TiB size: 1.74 TiB (98.37%) used: 931.62 GiB (52.3%) fs: ext4
    dev: /dev/nvme1n1p4 maj-min: 259:5
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 63.0 C mobo: 40.0 C gpu: nvidia temp: 60 C
  Fan Speeds (RPM): cpu: 1683 case-1: 1650 case-2: 1194 case-3: 0 gpu: nvidia fan: 44%
  Power: 12v: 11.97 5v: N/A 3.3v: N/A vbat: N/A
Repos:
  Packages: 5657 pm: dpkg pkgs: 2822 libs: 1509 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: N/A note: see --rpm tools: dnf pm: flatpak pkgs: 13
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://la.mxrepo.com/mx/repo/ bookworm main non-free
    2: deb http://la.mxrepo.com/mx/repo/ bookworm ahs
  Active apt repos in: /etc/apt/sources.list.d/nordvpn.list
    1: deb https://repo.nordvpn.com/deb/nordvpn/debian stable main
  No active dnf repos in: /etc/dnf/dnf.conf
Info:
  Processes: 404 Uptime: 6h 1m wakeups: 1 Memory: 125.71 GiB used: 13.46 GiB (10.7%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI
Last edited by dove on Sat Jul 06, 2024 5:30 pm, edited 3 times in total.

User avatar
dolphin_oracle
Developer
Posts: 22685
Joined: Sun Dec 16, 2007 12:17 pm

Re: KDE system monitor for GPU broke after nvidia 535

#2 Post by dolphin_oracle »

looks ok to me. its easy enough to try, and if it doesn't work delete the file.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

dove
Posts: 44
Joined: Sat May 04, 2019 1:56 pm

Re: KDE system monitor for GPU broke after nvidia 535(solved)

#3 Post by dove »

It worked like a charm. Looks to be safe on MX KDE

User avatar
Stevo
Developer
Posts: 14848
Joined: Fri Dec 15, 2006 7:07 pm

Re: KDE system monitor for GPU broke after nvidia 535(solved)

#4 Post by Stevo »

Is that widget from the Debian repos, or manually installed via KDE's "get new stuff"?
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

dove
Posts: 44
Joined: Sat May 04, 2019 1:56 pm

Re: KDE system monitor for GPU broke after nvidia 535(solved)

#5 Post by dove »

This seems to be known KDE problem with nvidia drivers

dove
Posts: 44
Joined: Sat May 04, 2019 1:56 pm

Re: KDE system monitor for GPU broke after nvidia 535(solved)

#6 Post by dove »

Also it was from "get stuff"

User avatar
Eadwine Rose
Administrator
Posts: 15217
Joined: Wed Jul 12, 2006 2:10 am

Re: KDE system monitor for GPU broke after nvidia 535(solved)

#7 Post by Eadwine Rose »

Please click the checkmark in the top right of the post (to the left of the username) that holds the solution to mark the topic solved, thanks :)
MX-23.6_x64 July 31 2023 * 6.1.0-38amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

dove
Posts: 44
Joined: Sat May 04, 2019 1:56 pm

Re: KDE system monitor for GPU broke after nvidia 535(solved)

#8 Post by dove »

Stevo read the top part of the nvidia-smi in the fix to see what the problem is.

Code: Select all

 
#!/usr/bin/env bash

# MIT license (c) 2022-2024 https://github.com/slowpeek
# Homepage: https://gist.github.com/slowpeek/006680bb06e671bc489d4a3274ff3d19

: <<'README'

Applicable nvidia driver versions: 525, 530, 535, 545, 550

ABOUT --

  Since nvidia driver 525, field parsing in KDE system monitor stumbled twice:

  - 525: `nvidia-smi dmon` appends a tailing space on each line printed.
    Fixed in plasma 5.27 [1]

  - 535: There are extra columns in `nvidia-smi dmon -s pucm` output.
    Fixed in plasma 5.27.7 [2]

  Some systems won't receive the fixes like ubuntu 22.04 running plasma
  5.24. This tool can be used instead to normalize `nvidia-smi dmon` output
  before passing it to the parser.

  The tool only changes anything either when called by ksystemstats or when
  there is NVIDIA_SMI_ADAPTER=y env var. Otherwise, it just runs the nvidia-smi
  binary as-is.

  [1] https://invent.kde.org/plasma/ksystemstats/-/commit/d42ab99437
  [2] https://invent.kde.org/plasma/ksystemstats/-/commit/7f9ead6bdd

INSTALLATION --

  Save the script as 'nvidia-smi' under /usr/local/bin/, make it executable and
  reboot or relog.

TECHNICAL DETAILS --

  `dmon -s pucm` cols expected by KDE system monitor: gpu pwr gtemp mtemp sm mem
  enc dec mclk pclk fb bar1

  Since 535:
  - extra cols in `dmon -s u`: jpg, ofa

  Since 535 (excluding some 535.x.y and 545):
  - extra cols in `dmon -s m`: ccpm

README

set -eu

is_comment () {
    [[ $1 == '#'* ]]
}

puts () {
    printf -- '%s\n' "$1"
}

# Option: set custom nvidia-smi binary with NVIDIA_SMI env var
nvidia_smi=${NVIDIA_SMI:-/usr/bin/nvidia-smi}

# Option: force the adapter, even if not called by ksystemstats, with
# NVIDIA_SMI_ADAPTER=y env var
force_adapter=${NVIDIA_SMI_ADAPTER:-n}

pass=y
# Only do something in 'dmon' mode
if [[ ${1-} == dmon ]]; then
    # Only do something if called by ksystemstats OR forced
    # shellcheck disable=SC2046
    if [[ $(ps -o comm= $(ps -o ppid= $$)) == ksystemstats || $force_adapter == y ]]; then
        pass=n
    fi
fi

[[ $pass == n ]] || exec "$nvidia_smi" "$@"

adapter () {
    read -r h1 || return

    if ! is_comment "$h1" || ! read -r h2; then
        puts "$h1"
        return
    fi

    if ! is_comment "$h2"; then
        puts "$h1"
        puts "$h2"
        return
    fi

    read -ra h1_list <<< "${h1:1}"

    # Figure out indices for cols added in 535 and collect $header out of the
    # rest
    header=() del=() col=0
    for el in "${h1_list[@]}"; do
        if [[ $el == @(jpg|ofa|ccpm) ]]; then
            del+=("$col")
        else
            header+=("$el")
        fi

        (( ++col ))
    done

    # Header with 535 cols removed
    puts "# ${header[*]}"

    while read -r line; do
        ! is_comment "$line" || continue

        read -ra row <<< "$line"

        # Remove 535 cols from $row
        for col in "${del[@]}"; do
            unset -v 'row[col]'
        done

        puts "${row[*]}"
    done
}

"$nvidia_smi" "$@" | {
    adapter
    tee
}

exit "${PIPESTATUS[0]}"

User avatar
Stevo
Developer
Posts: 14848
Joined: Fri Dec 15, 2006 7:07 pm

Re: KDE system monitor for GPU broke after nvidia 535

#9 Post by Stevo »

Maybe the developer putting it in the KDE stuff repository can fix it? (Steve waving arms)
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

Post Reply

Return to “MX KDE Official Release”