-
-
Notifications
You must be signed in to change notification settings - Fork 259
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
Asus ROG - AMD dGPU is up all the time (Hybrid mode) when auto-cpufreq is running #593
Comments
I can confirm I have the same issue as described above. The system loses battery in 1.5 hours.
|
I don't have a dGPU so I can't test this for myself, but your explanation makes sense. Unfortunately, If psutil is indeed causing the problem, it should be possible to ditch psutil in its entirety as all the function does is check |
@shadeyg56 That sounds interesting, but I guess that hwmon* is different between computer models. Maybe it could be optional in the auto-cpufreq config file, that you can specify the hwmon folder for the CPU temp Edit: i.e., in my case, if I run sensors the CPU temperature is reported with this one: Running 'sensors k10temp-pci-00c3' only won't wake up the dGPU, as it only takes this sensors info. As said above, it'll be interesting to have 1 option where you can specify the sensor name for CPU temperature (or multiple sensors if wanted), instead of getting all of them. Of course, psutil doesn't give this option Edit 2: |
This issue was already discussed on #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
The text was updated successfully, but these errors were encountered: