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":
|
if os.getenv("PKG_MARKER") == "SNAP":
|
||||||
governor_override_state = Path("/var/snap/auto-cpufreq/current/override.pickle")
|
governor_override_state = Path("/var/snap/auto-cpufreq/current/override.pickle")
|
||||||
else:
|
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":
|
if os.getenv("PKG_MARKER") == "SNAP":
|
||||||
auto_cpufreq_stats_path = Path("/var/snap/auto-cpufreq/current/auto-cpufreq.stats")
|
auto_cpufreq_stats_path = Path("/var/snap/auto-cpufreq/current/auto-cpufreq.stats")
|
||||||
|
@ -370,7 +370,6 @@ def deploy_daemon():
|
||||||
bluetooth_disable()
|
bluetooth_disable()
|
||||||
|
|
||||||
auto_cpufreq_stats_path.touch(exist_ok=True)
|
auto_cpufreq_stats_path.touch(exist_ok=True)
|
||||||
governor_override_state.touch(exist_ok=True)
|
|
||||||
|
|
||||||
print("\n* Deploy auto-cpufreq install script")
|
print("\n* Deploy auto-cpufreq install script")
|
||||||
shutil.copy(SCRIPTS_DIR / "auto-cpufreq-install.sh", "/usr/local/bin/auto-cpufreq-install")
|
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()
|
python_info()
|
||||||
print("")
|
print("")
|
||||||
device_info()
|
device_info()
|
||||||
print(f"VALUE {governor_override_state_path}")
|
|
||||||
if charging():
|
if charging():
|
||||||
print("Battery is: charging")
|
print("Battery is: charging")
|
||||||
else:
|
else:
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -13,7 +13,7 @@ def read(name):
|
||||||
return f.read()
|
return f.read()
|
||||||
|
|
||||||
# Used for the tar.gz/snap releases
|
# Used for the tar.gz/snap releases
|
||||||
VERSION = "1.9.7"
|
VERSION = "2.0-beta"
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="auto-cpufreq",
|
name="auto-cpufreq",
|
||||||
|
|
|
@ -43,10 +43,6 @@ plugs:
|
||||||
interface: system-files
|
interface: system-files
|
||||||
write:
|
write:
|
||||||
- /etc/auto-cpufreq.conf
|
- /etc/auto-cpufreq.conf
|
||||||
# opt-auto-cpufreq:
|
|
||||||
# interface: system-files
|
|
||||||
# write:
|
|
||||||
# - /opt/auto-cpufreq/override.pickle
|
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
auto-cpufreq:
|
auto-cpufreq:
|
||||||
|
@ -61,7 +57,6 @@ apps:
|
||||||
- system-observe
|
- system-observe
|
||||||
- hardware-observe
|
- hardware-observe
|
||||||
- etc-auto-cpufreq-conf
|
- etc-auto-cpufreq-conf
|
||||||
# - opt-auto-cpufreq
|
|
||||||
service:
|
service:
|
||||||
command: usr/bin/snapdaemon
|
command: usr/bin/snapdaemon
|
||||||
plugs:
|
plugs:
|
||||||
|
@ -69,7 +64,6 @@ apps:
|
||||||
- system-observe
|
- system-observe
|
||||||
- hardware-observe
|
- hardware-observe
|
||||||
- etc-auto-cpufreq-conf
|
- etc-auto-cpufreq-conf
|
||||||
# - opt-auto-cpufreq
|
|
||||||
environment:
|
environment:
|
||||||
LC_ALL: C.UTF-8
|
LC_ALL: C.UTF-8
|
||||||
LANG: C.UTF-8
|
LANG: C.UTF-8
|
||||||
|
|
Loading…
Reference in New Issue