diff --git a/auto_cpufreq/core.py b/auto_cpufreq/core.py index 15e9a9ec..8f67e450 100644 --- a/auto_cpufreq/core.py +++ b/auto_cpufreq/core.py @@ -62,7 +62,7 @@ if os.getenv("PKG_MARKER") == "SNAP": governor_override_state = Path("/var/snap/auto-cpufreq/current/override.pickle") else: - governor_override_state = Path("/opt/auto-cpufreq/current/override.pickle") + governor_override_state = Path("/opt/auto-cpufreq/override.pickle") if os.getenv("PKG_MARKER") == "SNAP": auto_cpufreq_stats_path = Path("/var/snap/auto-cpufreq/current/auto-cpufreq.stats") @@ -370,7 +370,6 @@ def deploy_daemon(): bluetooth_disable() auto_cpufreq_stats_path.touch(exist_ok=True) - governor_override_state.touch(exist_ok=True) print("\n* Deploy auto-cpufreq install script") shutil.copy(SCRIPTS_DIR / "auto-cpufreq-install.sh", "/usr/local/bin/auto-cpufreq-install") diff --git a/bin/auto-cpufreq b/bin/auto-cpufreq index 0f84b671..822f2003 100755 --- a/bin/auto-cpufreq +++ b/bin/auto-cpufreq @@ -164,7 +164,6 @@ def main(config, daemon, debug, install, remove, install_performance, live, log, python_info() print("") device_info() - print(f"VALUE {governor_override_state_path}") if charging(): print("Battery is: charging") else: diff --git a/setup.py b/setup.py index 348dad90..ac3d18de 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ def read(name): return f.read() # Used for the tar.gz/snap releases -VERSION = "1.9.7" +VERSION = "2.0-beta" setup( name="auto-cpufreq", diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 80de4b60..9a26f358 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -43,10 +43,6 @@ plugs: interface: system-files write: - /etc/auto-cpufreq.conf - # opt-auto-cpufreq: - # interface: system-files - # write: - # - /opt/auto-cpufreq/override.pickle apps: auto-cpufreq: @@ -61,7 +57,6 @@ apps: - system-observe - hardware-observe - etc-auto-cpufreq-conf - # - opt-auto-cpufreq service: command: usr/bin/snapdaemon plugs: @@ -69,7 +64,6 @@ apps: - system-observe - hardware-observe - etc-auto-cpufreq-conf - # - opt-auto-cpufreq environment: LC_ALL: C.UTF-8 LANG: C.UTF-8