Bug 510843

Summary: ksystemstats can't collect any stats on Raspberry Pi OS
Product: [Frameworks and Libraries] ksystemstats Reporter: HankB <hbarta>
Component: GeneralAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: ahiemstra, hbarta, nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 6.3.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description HankB 2025-10-20 20:12:52 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

I have discussed this at <https://discuss.kde.org/t/kstatsviewer-no-sensors-available/40649> and did not move closer to resolution.

I do not believe this to be a bug but rather some kind of misconfiguration or missing packages. This display works as desired on Debian Trixie on a Raspberry Pi. With the Raspberry Pi OS (derived from Debian) it does not work. I suspect a misconfiguration or issue with `ksystemstats` and appreciate guidance from a dev who can help to track down and fix the issue.
***

SUMMARY

Graphical elements on `System Monitor` do not populate. Textual elements seem to be OK.

STEPS TO REPRODUCE
1. Open  `System Monitor` 

OBSERVED RESULT

Observe top two panes remain unpopulated. At the top there is a pnk banner "This page is missing some sensors and will not display correctly." Clicking "Fix" results in a popup where all fields have no option to select.

EXPECTED RESULT

Graphical elements populate with values for the running system.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Raspberry Pi OS based on Debian Trixie
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
Kernel: 6.12.47+rpt-rpi2712 (64 bit)

ADDITIONAL INFORMATION

RpiOS uses the Debian repos directly and adds its own repo for Pi specific stuff like the kernel and some tools. Since the RpiOS engineers support their own desktop, I suspect that the KDE/Plasma packages are all from the Debian repos. The same versions of KDE/Plasma work as expected on pure Debian. An Arch variant EndeavourOS experiences the same issue and under the covers, must be using the RpiOS produced kernel since the Rpi folk have not upstreamed all of the necessary fixes to run on the Pi 5. I suspect that there might be some kernel setting that has been turned off and which makes the information used by `System Monitor` not available.

I have reviewed https://bugs.kde.org/show_bug.cgi?id=442588 as symptoms are identical. I tried running `ksystemstats --replace` and it never returns. I also see:

```text
hbarta@rafiki:~ $ ps -ef|grep ksystemstats
hbarta      4789    1900 99 14:48 pts/1    00:01:08 ksystemstats --replace
hbarta      5094    5052  0 14:49 pts/3    00:00:00 grep --color=auto ksystemstats
hbarta@rafiki:~ $ 
```

But I do not know if `ksystemstats` had been running before I tried to replace it. At present it seems to be hanging and `System Monitor` still has no graphical information.
Comment 1 HankB 2025-10-20 20:49:06 UTC
Following the hint to look at `ksystemstats` I dug a little deeper and found

hbarta@rafiki:~ $ systemctl --user status plasma-ksystemstats
× plasma-ksystemstats.service - Track hardware statistics
     Loaded: loaded (/usr/lib/systemd/user/plasma-ksystemstats.service; static)
     Active: failed (Result: timeout) since Mon 2025-10-20 15:26:08 CDT; 17min ago
 Invocation: fdb73882b91e45d6b051c755ff65be77
    Process: 1881 ExecStart=/usr/bin/ksystemstats (code=killed, signal=TERM)
   Main PID: 1881 (code=killed, signal=TERM)
        CPU: 1min 29.504s

Oct 20 15:24:38 rafiki systemd[1307]: Starting plasma-ksystemstats.service - Track hardware statistics...
Oct 20 15:26:08 rafiki systemd[1307]: plasma-ksystemstats.service: start operation timed out. Terminating.
Oct 20 15:26:08 rafiki systemd[1307]: plasma-ksystemstats.service: Failed with result 'timeout'.
Oct 20 15:26:08 rafiki systemd[1307]: Failed to start plasma-ksystemstats.service - Track hardware statistics.
Oct 20 15:26:08 rafiki systemd[1307]: plasma-ksystemstats.service: Consumed 1min 29.504s CPU time.
hbarta@rafiki:~ $ 

Looking for a verbose logging option I find

hbarta@rafiki:~ $ ksystemstats --help-all
Usage: ksystemstats [options]

Options:
  --replace                Replace the running instance
  --remain                 Do not quit when last client has disconnected
  -h, --help               Displays help on commandline options.
  --help-all               Displays help, including generic Qt options.
  --qmljsdebugger <value>  Activates the QML/JS debugger with a specified port.
                           The value must be of format port:1234[,block].
                           "block" makes the application wait for a connection.
hbarta@rafiki:~ $ 

I will see what I can find WRT " QML/JS debugger" and appreciate pointers to that.