Bug 442337

Summary: CPU frequency widget shows wrong value
Product: [Frameworks and Libraries] ksystemstats Reporter: felipelorenzzon
Component: GeneralAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: ahiemstra, maxim.yegorushkin, nicolas.fella, notmart, plasma-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot showing the problem
Correct GPU frequency, CPU core frequencies are stuck with the initial values that never change.

Description felipelorenzzon 2021-09-12 12:43:34 UTC
Created attachment 141489 [details]
screenshot showing the problem

SUMMARY


STEPS TO REPRODUCE
1. add a widget to the taskbar or desktop and configure it to show CPU frequencies
2. open the terminal and run <watch "cat /proc/cpuinfo | grep MHz"> to get the current clocks

OBSERVED RESULT
The numbers are very different.

EXPECTED RESULT
They should be the same. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: kernel 5.14.0-0
(available in About System)
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
This started happening after I upgraded from 5.10 LTS kernel. I'm not sure if I reported this on the correct app, I could not find which one handled widgets. 

computer: Dell Inspiron 7580, i7 8565U, MX150.
Comment 1 Maxim Egorushkin 2023-05-09 20:07:01 UTC
Created attachment 158811 [details]
Correct GPU frequency, CPU core frequencies are stuck with the initial values that never change.

Same issue in KDE neon 5.27.

The widget shows correct real-time GPU frequency, but CPU core frequencies are stuck with the initial values that never change.

Operating System: KDE neon 5.27
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Kernel Version: 5.19.0-1023-lowlatency (64-bit)
Graphics Platform: X11
Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor
Memory: 125.7 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3090/PCIe/SSE2
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: X570 AORUS MASTER
Comment 2 Arjen Hiemstra 2025-05-21 12:58:43 UTC
Is this still an issue with Plasma 6.4? On my AMD system, it works as expected.

Note that we read `/sys/devices/system/cpu/cpuX/cpufreq/cpuinfo_cur_freq or scaling_cur_freq for the frequency, not /proc/cpuinfo.
Comment 3 felipelorenzzon 2025-05-22 13:21:53 UTC
This issue seems to be resolved. I retested the widget on idle and using `s-tui`, both yield consistent results on my version of Plasma. Marking as resolved.