mirror of
https://github.com/AdnanHodzic/auto-cpufreq.git
synced 2025-04-08 17:05:56 +02:00
Merge pull request #1 from AdnanHodzic/master
Fix issue where epp cannot be set in `powersave` governor (#738)
This commit is contained in:
commit
1a43fe4a40
@ -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"
|
||||
@ -948,7 +948,7 @@ def set_performance():
|
||||
if conf.has_option("charger", "energy_performance_preference"):
|
||||
epp = conf["charger"]["energy_performance_preference"]
|
||||
|
||||
if Path(amd_pstate_status_path).exists() and open(amd_pstate_status_path, 'r').read().strip() == "active" and epp != "performance":
|
||||
if Path(amd_pstate_status_path).exists() and open(amd_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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user