resources icon indicating copy to clipboard operation
resources copied to clipboard

Resources shows all CPU cores landlocked at 400MHz

Open TotiTolvukall opened this issue 1 month ago • 2 comments

Is there an existing issue for this?

  • [x] I searched the existing issues and did not find anything similar.

Current Behavior

Resources shows all processor CPUs locked at 400MHz

Image

Resources is incorrectly using : cpu.rs:249: "/sys/devices/system/cpu/cpu{core}/cpufreq/scaling_cur_freq"

Where it should be using cpu.rs:249: "/sys/devices/system/cpu/cpu{core}/cpufreq/cpuinfo_avg_freq"

scaling_cur_freq does not update on all CPUs and is landlocked at scaling_min_freq.

This behavior has been verified on Lenovo Thinkpad T5xx, Lenovo Thinkpad P53s and DELL Precision T5820 with Intel W-2175 CPU.

This error causes affected users to go on a wild goose chase trying to find a CPU issue that isn't there, thus, a fix is recommended.

Expected Behavior

No response

Steps to Reproduce

No response

Debug Logs

Expand logs
REPLACE THIS SENTENCE WITH THE TERMINAL OUTPUT OF THE AFOREMENTIONED COMMAND.

Environment


Anything Else?

No response

TotiTolvukall avatar Nov 17 '25 13:11 TotiTolvukall

A binary patched to read the proper device file:

Image ~/tmp> diff original_binary.txt fixed_binary.txt 237980,237983c237980,237983 003a51b0 75 2f 63 70 75 2f 63 70 75 66 72 65 71 2f 63 70 |u/cpu/cpufreq/cp| > 003a51c0 75 69 6e 66 6f 5f 61 76 67 5f 66 72 65 71 63 61 |uinfo_avg_freqca| > 003a51d0 6e 27 74 20 70 61 72 73 65 20 63 70 75 69 6e 66 |n't parse cpuinf| > 003a51e0 6f 5f 61 76 67 5f 66 72 65 71 20 74 6f 20 75 73 |o_avg_freq to us| 237985c237985 003a5200 64 20 63 70 75 69 6e 66 6f 5f 61 76 67 5f 66 72 |d cpuinfo_avg_fr|

TotiTolvukall avatar Nov 20 '25 18:11 TotiTolvukall

Hi, thank you for the issue and your effort to test it using a patch. :) I'll look into it, if I can find a few other smaller issues to squash, this might make it into Resources 1.9.2 then.

nokyan avatar Nov 20 '25 19:11 nokyan

Hi, I've pushed a fix to the bugfix/570-cpu-freq-reading branch, mind checking it out?

nokyan avatar Nov 27 '25 19:11 nokyan

This works :) Thanks!

Image

TotiTolvukall avatar Dec 01 '25 21:12 TotiTolvukall