From 1c11ca3139028e8a487cb277e2f375f0f8acaabc Mon Sep 17 00:00:00 2001 From: Adnan Hodzic Date: Sat, 31 Aug 2024 21:45:56 +0200 Subject: [PATCH] Fix auto-cpufreq --daemon not persisting across reboot --- auto_cpufreq/power_helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auto_cpufreq/power_helper.py b/auto_cpufreq/power_helper.py index 0abe6b5..ddd48c2 100644 --- a/auto_cpufreq/power_helper.py +++ b/auto_cpufreq/power_helper.py @@ -233,8 +233,8 @@ def gnome_power_svc_disable(): print("There was a problem, couldn't determine GNOME Power Profiles Daemon") snap_pkg_check = 0 - if snap_pkg_check == 1: - if not bool(gnome_power_status) and powerprofilesctl_exists: + if not bool(gnome_power_status) and powerprofilesctl_exists: + if snap_pkg_check == 1: print("auto-cpufreq snap package not installed.\nGNOME Power Profiles Daemon should be enabled, run:\n\n" "sudo python3 power_helper.py --gnome_power_enable" )