Skip to content

Commit

Permalink
Fix issue where epp cannot be set in powersave governor #2
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChilledBuffalo committed Jul 15, 2024
1 parent 6dce69b commit 9605c9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto_cpufreq/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ def set_performance():
if conf.has_option("charger", "energy_performance_preference"):
epp = conf["charger"]["energy_performance_preference"]

if Path(intel_pstate_status_path).exists() and open(intel_pstate_status_path, 'r').read().strip() == "active" and epp != "performance":
if Path(intel_pstate_status_path).exists() and open(intel_pstate_status_path, 'r').read().strip() == "active" and epp != "performance" and gov == "performance":
print(f'Warning "{epp}" EPP cannot be used in performance governor')
print('Overriding EPP to "performance"')
epp = "performance"
Expand Down

0 comments on commit 9605c9d

Please sign in to comment.