diff --git a/auto_cpufreq/core.py b/auto_cpufreq/core.py index 2dcdff1c..d2a21e48 100644 --- a/auto_cpufreq/core.py +++ b/auto_cpufreq/core.py @@ -96,6 +96,7 @@ def get_override(): return "default" def set_override(override): + root_check() # Calling root_check inside if and elif might be too verbose and is susceptible to bugs in future if override in ["powersave", "performance"]: with open(governor_override_state, "wb") as store: pickle.dump(override, store)