Snap tag 2.0-beta + governor_override improvements

This commit is contained in:
Adnan Hodzic 2023-02-03 17:52:20 +01:00
parent fe21ddf245
commit 04b878360c
4 changed files with 2 additions and 10 deletions

View File

@ -62,7 +62,7 @@ auto_cpufreq_stats_file = None
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")

View File

@ -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:

View File

@ -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",

View File

@ -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