Snap tag 2.0-beta + governor_override improvements
This commit is contained in:
parent
fe21ddf245
commit
04b878360c
|
@ -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")
|
||||
|
|
|
@ -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:
|
||||
|
|
2
setup.py
2
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",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue