rickysarraf / laptop-mode-tools

Power Savings tool for Linux
https://www.researchut.com/tags/laptop-mode-tools/
GNU General Public License v2.0
550 stars 47 forks source link

configure CPU IDLE governor in cpufreq module #176

Open Bogdan107 opened 2 years ago

Bogdan107 commented 2 years ago

Describe the bug CPU frequency governor configured per cpu in /sys/devices/system/cpu/cpu${i}/cpufreq/scaling_governor file. CPU IDLE governor configured per system in /sys/devices/system/cpu/cpuidle/current_governor file. More info:

CPU scalling governor configured in cpufreq module in (BATT|LM_AC|NOLM)_CPU_GOVERNOR variables. I want to customize CPU IDLE governor too.

$ zgrep CONFIG_CPU_IDLE /proc/config.gz
CONFIG_CPU_IDLE=y
CONFIG_CPU_IDLE_GOV_LADDER=y
CONFIG_CPU_IDLE_GOV_MENU=y
CONFIG_CPU_IDLE_GOV_TEO=y
# CONFIG_CPU_IDLE_THERMAL is not set

$ cat /sys/devices/system/cpu/cpuidle/available_governors 
ladder menu teo

$ cat /sys/devices/system/cpu/cpuidle/current_governor 
ladder

Expected behavior I want to customize CPU IDLE governor by (BATT|LM_AC|NOLM)_CPU_IDLE_GOVERNOR variables in cpufreq module:

BATT_CPU_IDLE_GOVERNOR=teo
LM_AC_CPU_IDLE_GOVERNOR=ladder
NOLM_CPU_IDLE_GOVERNOR=menu