Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect temperatures #498

Closed
pimpmyname2 opened this issue Apr 12, 2023 · 2 comments
Closed

Incorrect temperatures #498

pimpmyname2 opened this issue Apr 12, 2023 · 2 comments

Comments

@pimpmyname2
Copy link

Fill out information requested in this template, without doing so issue will be ignored & closed!

Have you tried?

Error output:

No errors.

System information:

Add/paste output of:

Using settings defined in /etc/auto-cpufreq.conf file

-------------------------------------------------------------------------------

Linux distro: Ubuntu 22.04 Jammy Jellyfish
Linux kernel: 5.19.0-38-generic
Processor: AMD Ryzen Threadripper 2950X 16-Core Processor
Cores: 32
Architecture: x86_64
Driver: acpi-cpufreq

------------------------------ Current CPU stats ------------------------------

CPU max frequency: 3500 MHz
CPU min frequency: 2800 MHz

Core    Usage   Temperature     Frequency
CPU0:     0.0%     26 °C     2226 MHz
CPU1:     3.0%     26 °C     2224 MHz
CPU2:     1.0%     26 °C     2224 MHz
CPU3:     1.0%     26 °C     3122 MHz
CPU4:     1.0%     26 °C     2727 MHz
CPU5:     0.0%     26 °C     4098 MHz
CPU6:     0.0%     26 °C     2212 MHz
CPU7:     1.0%     26 °C     2704 MHz
CPU8:    11.0%     26 °C     2796 MHz
CPU9:     0.0%     26 °C     2800 MHz
CPU10:    8.0%     26 °C     2794 MHz
CPU11:    4.0%     26 °C     2794 MHz
CPU12:    1.0%     26 °C     2793 MHz
CPU13:    0.0%     26 °C     2800 MHz
CPU14:    1.0%     26 °C     2800 MHz
CPU15:    4.0%     26 °C     2794 MHz
CPU16:    0.0%     26 °C     2211 MHz
CPU17:    1.0%     26 °C     2221 MHz
CPU18:    0.0%     26 °C     2220 MHz
CPU19:   13.9%     26 °C     3208 MHz
CPU20:    1.0%     26 °C     2712 MHz
CPU21:    0.0%     26 °C     4092 MHz
CPU22:    2.0%     26 °C     2210 MHz
CPU23:    3.0%     26 °C     2733 MHz
CPU24:    5.1%     26 °C     2798 MHz
CPU25:    0.0%     26 °C     2794 MHz
CPU26:    1.0%     26 °C     2794 MHz
CPU27:    9.9%     26 °C     2794 MHz
CPU28:    0.0%     26 °C     2793 MHz
CPU29:    0.0%     26 °C     2795 MHz
CPU30:    4.0%     26 °C     2800 MHz
CPU31:    1.0%     26 °C     2792 MHz

CPU fan speed: 1551 RPM

auto-cpufreq version: 1.9.7 (git: 9912f9d8)

Python: 3.10.6
psutil package: 5.9.4
platform package: 1.0.8
click package: 8.1.3
distro package: 1.8.0

Computer type: Desktop
Battery is: charging

auto-cpufreq system resource consumption:
cpu usage: 0.0 %
memory use: 0.07 %

Total CPU usage: 1.7 %
Total system load: 1.06
Average temp. of all cores: 25.85 °C

Currently using: schedutil governor
Currently turbo boost is: on

-------------------------------------------------------------------------------

Also please be descriptive about the issue you're reporting, i.e: what you tried & what's the expected behaviour.

Temperature is incorrect in "auto-cpufreq --monitor". Psutil doesnt seem to recognize k10temp-pci sensor. Using python hwmon import will most likely fix the issue. I have attached a image of "Glances" that shows the real CPU temperature(Tctl) which recognizes k10temp sensor.

auto-cpufreq debug
hwmon_glances
temp_psutil


@marchwicki
Copy link
Contributor

I'm having the same problem and I think I see what the issue is.

The psutil.sensors_temperatures() function is storing it's results in the core_temp dictionary. If coretemp is not found inside the core_temp dictionary then the code falls back to the first available result from the psutil.sensors_temperatures() function.

@pimpmyname2, if you run:
python3 -c "import psutil; core_temp = psutil.sensors_temperatures(); first_sensor = next(iter(core_temp.values())); print(first_sensor)"
Does it output the same current temp as shown in your auto-cpufreq outputs?

@AdnanHodzic
Copy link
Owner

Changes which should fix this issue have been merged as part of #513, please pull the latest changes and re-install auto-cpufreq.

If the problem persists, please re-open the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants