AdnanHodzic / AdnanHodzic/auto-cpufreq

Asus ROG - AMD dGPU is up all the time (Hybrid mode) when auto-cpufreq is running

Đang mở
#593 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
7.8k
Fork
357
Merge trung bình
3 ngày 8 giờ
Pull request đã merge (30 ngày)
14

Mô tả

This issue was already discussed on https://github.com/AdnanHodzic/auto-cpufreq/issues/278 but closed due to inactivity. Not sure if it's exactly the same root cause, but the consequence is the same.

All the functionality of auto-cpufreq is ok, and it works as intended. However, and I understand that is due to the fact that it has to be monitoring temperature all the time, the dGPU of the computer (when on Hybrid mode) is up all the time. Therefore the energy consumption is much higher than could be.

Running sensors (of lm-sensors package) also does a similar thing, when you run it, to obtain the dGPU temperature, it has to wake it up. I understand that the continuous monitoring of temperature of auto-cpufreq is doing the same, it's getting the temperature of all the sensors of the system, and therefore, requiring the dGPU one, having to wake it up.

I haven't seen any option applicable to configuring auto-cpufreq related with the temperature retrieval. Not very experienced with the psutil package and the methods used by it in core.py but I can give it a try. However I'd appreciate if anyone has more info about the topic.

If I can find anything testing psutil package I'll let it know here.

**Edit 1:**
This line in core.py it's what wakes up the dGPU
`temp_sensors = psutil.sensors_temperatures()`

---

### System information:
-------------------------------------------------------------------------------

Linux distro: Linux Mint 21.2 Victoria
Linux kernel: 6.2.0-36-generic
Processor: AMD Ryzen 9 5900HX with Radeon Graphics
Cores: 16
Architecture: x86_64
Driver: acpi-cpufreq

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

CPU max frequency: 3300 MHz
CPU min frequency: 1200 MHz

Core Usage Temperature Frequency
CPU0 12.0% 49 °C 1200 MHz
CPU1 6.1% 49 °C 1200 MHz
CPU2 1.0% 49 °C 1198 MHz
CPU3 0.0% 49 °C 1200 MHz
CPU4 8.2% 49 °C 1200 MHz
CPU5 0.0% 49 °C 1198 MHz
CPU6 2.0% 49 °C 1197 MHz
CPU7 14.7% 49 °C 1197 MHz
CPU8 1.0% 49 °C 1198 MHz
CPU9 0.0% 49 °C 1200 MHz
CPU10 3.0% 49 °C 1200 MHz
CPU11 0.0% 49 °C 1200 MHz
CPU12 7.4% 49 °C 1200 MHz
CPU13 1.0% 49 °C 1200 MHz
CPU14 6.9% 49 °C 1196 MHz
CPU15 0.0% 49 °C 1200 MHz

CPU fan speed: 0 RPM

CPU fan speed: 0 RPM

auto-cpufreq version: 2.0.0 (git: 4ddff1f)

Python: 3.10.12
psutil package: 5.9.6
platform package: 1.0.8
click package: 8.1.7
distro package: 1.8.0

Computer type: Notebook
Battery is: discharging

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

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

Currently using: powersave governor
Currently turbo boost is: off

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.