AdnanHodzic / AdnanHodzic/auto-cpufreq

I get wrong temperaure detection in v2.6.0

オープン
#851 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
7.8k
フォーク
357
平均マージ
3日 8時間
マージ済み PR(30日)
14

説明

### Have you tried?

- yes I have

### Error output:
```text
none
```
---

### System information:

Add/paste output of:

```
$ sudo auto-cpufreq --debug

-------------------------------- Battery Info ---------------------------------

battery count = 1
BAT0 start threshold = b'70\n'
BAT0 stop threshold = b'85\n'

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

Linux distro: Manjaro Linux 25.0.3 Zetar
Linux kernel: 6.12.32-1-MANJARO
Processor: AMD Ryzen 7 PRO 6850U with Radeon Graphics
Cores: 16
Architecture: x86_64
Driver: amd-pstate-epp

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

CPU max frequency: 2701 MHz
CPU min frequency: 400 MHz

Core Usage Temperature Frequency
CPU0 1.0% 36 °C 2643 MHz
CPU1 0.0% 36 °C 400 MHz
CPU2 0.0% 36 °C 400 MHz
CPU3 0.0% 36 °C 400 MHz
CPU4 0.0% 36 °C 2618 MHz
CPU5 0.0% 36 °C 2637 MHz
CPU6 1.0% 36 °C 2626 MHz
CPU7 0.0% 36 °C 400 MHz
CPU8 1.0% 36 °C 400 MHz
CPU9 0.0% 36 °C 400 MHz
CPU10 0.0% 36 °C 2648 MHz
CPU11 0.0% 36 °C 400 MHz
CPU12 0.0% 36 °C 2646 MHz
CPU13 0.0% 36 °C 2633 MHz
CPU14 0.0% 36 °C 2634 MHz
CPU15 0.0% 36 °C 400 MHz

CPU fan speed: 0 RPM

auto-cpufreq version: Version : 2.6.0-2

Python: 3.13.3
psutil package: 7.0.0
platform package: 1.0.8
click package: 8.1.8
distro package: 1.9.0

Computer type: Notebook
Battery is: charging

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

Total CPU usage: 0.6 %
Total system load: 0.88
Average temp. of all cores: 28.00 °C <== ?

Currently using: performance governor
Currently turbo boost is: off

-------------------------------------------------------------------------------
```
Only CPU0 is correctly detected, wich results in a wrong (too low) average temperature, see below.
Tried this with the v2.6.0 from AUR and with v2.6.0 installer.

$ auto-cpufreq --stats
![Image](https://github.com/user-attachments/assets/11f45110-c3f4-4b70-a8b6-c7a697b52316)

In v2.5.0 temps are fine, see:
```
$ sudo auto-cpufreq --debug

-------------------------------- Battery Info ---------------------------------

battery count = 1
BAT0 start threshold = b'70\n'
BAT0 stop threshold = b'85\n'

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

Linux distro: Manjaro Linux 25.0.3 Zetar
Linux kernel: 6.12.32-1-MANJARO
Processor: AMD Ryzen 7 PRO 6850U with Radeon Graphics
Cores: 16
Architecture: x86_64
Driver: amd-pstate-epp

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

CPU max frequency: 2701 MHz
CPU min frequency: 400 MHz

Core Usage Temperature Frequency
CPU0 1.0% 35 °C 400 MHz
CPU1 0.0% 35 °C 400 MHz
CPU2 1.0% 35 °C 400 MHz
CPU3 0.0% 35 °C 400 MHz
CPU4 0.0% 35 °C 400 MHz
CPU5 0.0% 35 °C 400 MHz
CPU6 0.0% 35 °C 2617 MHz
CPU7 1.0% 35 °C 2656 MHz
CPU8 0.0% 35 °C 400 MHz
CPU9 0.0% 35 °C 400 MHz
CPU10 1.0% 35 °C 2639 MHz
CPU11 0.0% 35 °C 400 MHz
CPU12 1.0% 35 °C 400 MHz
CPU13 0.0% 35 °C 400 MHz
CPU14 0.0% 35 °C 2636 MHz
CPU15 2.0% 35 °C 2670 MHz

CPU fan speed: 0 RPM

auto-cpufreq version: Version : 2.5.0-1

Python: 3.13.3
psutil package: 7.0.0
platform package: 1.0.8
click package: 8.1.8
distro package: 1.9.0

Computer type: Notebook
Battery is: charging

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

Total CPU usage: 0.7 %
Total system load: 0.08
Average temp. of all cores: 35.00 °C

Currently using: performance governor
Currently turbo boost is: off

---------------------------------------------------------------------------
```

```
$ auto-cpufreq --stats

-------------------------------- Battery Info ---------------------------------

battery count = 1
BAT0 start threshold = b'70\n'
BAT0 stop threshold = b'85\n'
Linux kernel: 6.12.32-1-MANJARO
Processor: AMD Ryzen 7 PRO 6850U with Radeon Graphics
Cores: 16
Architecture: x86_64
Driver: amd-pstate-epp

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

CPU max frequency: 2701 MHz
CPU min frequency: 400 MHz

Core Usage Temperature Frequency
CPU0 0.0% 36 °C 400 MHz
CPU1 0.0% 36 °C 400 MHz
CPU2 0.0% 36 °C 400 MHz
CPU3 0.0% 36 °C 400 MHz
CPU4 0.0% 36 °C 400 MHz
CPU5 0.0% 36 °C 2669 MHz
CPU6 1.0% 36 °C 400 MHz
CPU7 0.0% 36 °C 400 MHz
CPU8 0.0% 36 °C 400 MHz
CPU9 0.0% 36 °C 400 MHz
CPU10 0.0% 36 °C 2667 MHz
CPU11 2.0% 36 °C 400 MHz
CPU12 0.0% 36 °C 400 MHz
CPU13 0.0% 36 °C 400 MHz
CPU14 0.0% 36 °C 400 MHz
CPU15 0.0% 36 °C 2657 MHz

CPU fan speed: 0 RPM

---------------------------- CPU frequency scaling ----------------------------

Battery is: charging

Setting to use: "performance" governor
Setting to use: "performance" EPP
Not setting EPB (not supported by system)

Total CPU usage: 1.2 %
Total system load: 0.59
Average temp. of all cores: 36.00 °C

Load optimal (load average: 0.59, 0.44, 0.29)
Optimal total CPU usage: 1.2%, high average core temp: 36.0°C
Setting turbo boost: off

```

This may only be cosmetic, but I am not shure, have not stressed the notebook yet.

---

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start by reproducing the reported regression with `sudo auto-cpufreq --debug` and `auto-cpufreq --stats`, comparing v2.5.0 and v2.6.0 temperature output on Linux. The issue points to average/core temperature detection: done means all cores report the detected temperature consistently and the average is no longer too low.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cli, linux, python
領域
cli, observability
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。