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

cputotplug must be completed before cpufreq #175

Open Bogdan107 opened 2 years ago

Bogdan107 commented 2 years ago

Describe the bug I use cpufreq and cpuhotplug modules at the same time.

cpuhotplug module change the list of active CPU's. cpufreq module change the CPU freq only for active CPU's.

I have:

DISABLE_AVAILABLE_CPU="half"
BATT_CPU_HOTPLUG=1
LM_AC_CPU_HOTPLUG=0
NOLM_AC_CPU_HOTPLUG=0

BATT_CPU_GOVERNOR=powersave
LM_AC_CPU_GOVERNOR=performance
NOLM_AC_CPU_GOVERNOR=schedutil

If I switch from AC to BAT, then I have a half of CPU's with powersave governor. Then I switch from BAT to AC and have a half of CPU's with performance governor and a half of CPU's with powersave governor.

I want to apply governor from cpufreq module to all of active CPU's, not for half.

Expected behavior When the power source is changed, the cpuhotplug module must be completed before starting the cpufreq module.

Important Information: