0ry0n / Resource_Monitor

Resource_Monitor is a GNOME Shell extension that Monitor the use of system resources like cpu, ram, disk, network and display them in GNOME Shell top bar.
GNU General Public License v3.0
143 stars 20 forks source link

Incorrect frequency reporting for Intel 12th gen CPUs #82

Open xtenduke opened 8 months ago

xtenduke commented 8 months ago

Current source of CPU frequency /sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq is unsuitable for modern CPUs, specifically heterogeneous CPUs like Intels 12th gen.

Attached example shows an i7 12800h running at idle.

Screenshot from 2024-01-25 09-55-22 I think it would be better if we changed this to the highest clock speed reported across all cores. Cores with the MAXMHZ of 3700 are E-cores and have a lower turbo clock sped.

Screenshot from 2024-01-25 10-08-41

https://github.com/0ry0n/Resource_Monitor/blob/7e6b378a53f2b4eff1f479f0875185fe1eb73e96/Resource_Monitor%40Ory0n/extension.js#L2541