AdnanHodzic / auto-cpufreq

Automatic CPU speed & power optimizer for Linux
https://foolcontrol.org/?p=4603
GNU Lesser General Public License v3.0
5.32k stars 259 forks source link

auto-cpufreq is not using config at all #730

Open offeex opened 3 days ago

offeex commented 3 days ago

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

Error output:

Add/paste error output in case of failed installation or other failing component

well, --stats output:

❯ sudo auto-cpufreq --stats

Using settings defined in /home/offeex/.config/auto-cpufreq/auto-cpufreq.conf file

Note: You can quit stats mode by pressing "ctrl+c"
        "auto-cpufreq" is about to refresh ...
        Executed on: July 02 (Tuesday) - 18:18:02

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

Linux distro: CachyOS Linux rolling n/a
Linux kernel: 6.9.7-3-cachyos
Processor: AMD Ryzen 5 5600H with Radeon Graphics
Cores: 12
Architecture: x86_64
Driver: amd-pstate-epp

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

CPU max frequency: 3301 MHz
CPU min frequency: 400 MHz

Core    Usage   Temperature Frequency
CPU0     12.2%        43 °C      1902 MHz
CPU1      6.9%        43 °C      1676 MHz
CPU2     14.3%        43 °C      1701 MHz
CPU3     15.2%        43 °C      1878 MHz
CPU4      9.1%        43 °C      2096 MHz
CPU5      2.0%        43 °C       400 MHz
CPU6      7.1%        43 °C      2096 MHz
CPU7     17.9%        43 °C      2096 MHz
CPU8     12.4%        43 °C      1674 MHz
CPU9      6.1%        43 °C      1847 MHz
CPU10     12.5%        43 °C      1700 MHz
CPU11     10.1%        43 °C      1724 MHz

CPU fan speed: 2156 RPM

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

Battery is: discharging

Setting to use: "powersave" governor
Setting to use: "balance_power" EPP

Total CPU usage: 9.7 %
Total system load: 1.69
Average temp. of all cores: 43.00 °C

Load optimal (load average: 1.69, 1.43, 0.82)
setting turbo boost: off

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

cpupower output:

❯ sudo cpupower frequency-info
analyzing CPU 8:
  driver: amd-pstate-epp
  CPUs which run at the same hardware frequency: 8
  CPUs which need to have their frequency coordinated by software: 8
  maximum transition latency:  Cannot determine or is not supported.
  hardware limits: 400 MHz - 3.30 GHz
  available cpufreq governors: performance powersave
  current policy: frequency should be within 400 MHz and 3.30 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 2.10 GHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: no
    AMD PSTATE Highest Performance: 166. Maximum Frequency: 4.28 GHz.
    AMD PSTATE Nominal Performance: 128. Nominal Frequency: 3.30 GHz.
    AMD PSTATE Lowest Non-linear Performance: 43. Lowest Non-linear Frequency: 1.11 GHz.
    AMD PSTATE Lowest Performance: 16. Lowest Frequency: 400 MHz.

and finally the config:

# preferred governor
governor = powersave

# EPP: see available preferences by running: cat /sys/devices/system/cpu/cpu0/cpufreq/energy_performance_available_preferences
energy_performance_preference = power

# minimum cpu frequency (in kHz)
# example: for 800 MHz = 800000 kHz --> scaling_min_freq = 800000
# see conversion info: https://www.rapidtables.com/convert/frequency/mhz-to-hz.html
# to use this feature, uncomment the following line and set the value accordingly
scaling_min_freq = 800000

# maximum cpu frequency (in kHz)
# see conversion info: https://www.rapidtables.com/convert/frequency/mhz-to-hz.html
# example: for 1GHz = 1000 MHz = 1000000 kHz -> scaling_max_freq = 1000000
# to use this feature, uncomment the following line and set the value accordingly
scaling_max_freq = 2500000

# turbo boost setting (always, auto, or never)
turbo = never

# battery charging threshold
# reference: https://github.com/AdnanHodzic/auto-cpufreq/#battery-charging-thresholds
enable_thresholds = false
# start_threshold = 20
# stop_threshold = 80

ideapad_laptop_conservation_mode = false

System information:

Add/paste output of:

❯ sudo auto-cpufreq --debug

Using settings defined in /home/offeex/.config/auto-cpufreq/auto-cpufreq.conf file

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

Linux distro: CachyOS Linux rolling n/a
Linux kernel: 6.9.7-3-cachyos
Processor: AMD Ryzen 5 5600H with Radeon Graphics
Cores: 12
Architecture: x86_64
Driver: amd-pstate-epp

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

CPU max frequency: 3301 MHz
CPU min frequency: 400 MHz

Core    Usage   Temperature Frequency
CPU0     15.8%        43 °C      1674 MHz
CPU1      4.0%        43 °C      1861 MHz
CPU2     12.2%        43 °C      2095 MHz
CPU3     14.1%        43 °C      1974 MHz
CPU4     11.1%        43 °C      1733 MHz
CPU5      2.0%        43 °C      2093 MHz
CPU6     12.2%        43 °C      2003 MHz
CPU7     14.4%        43 °C      1647 MHz
CPU8     12.2%        43 °C      2094 MHz
CPU9      7.1%        43 °C      2093 MHz
CPU10     12.5%        43 °C      1985 MHz
CPU11      9.2%        43 °C      1677 MHz

CPU fan speed: 2156 RPM

auto-cpufreq version: 1 (git: )

Python: 3.12.4
psutil package: 5.9.8
platform package: 1.0.8
click package: 8.1.7
distro package: 1.9.0

Computer type: Notebook
Battery is: discharging

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

Total CPU usage: 9.3 %
Total system load: 1.63
Average temp. of all cores: 43.00 °C

Currently using: powersave governor
Currently turbo boost is: off

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

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