Skip to content

Commit 04b8783

Browse files
committed
Snap tag 2.0-beta + governor_override improvements
1 parent fe21ddf commit 04b8783

File tree

4 files changed

+2
-10
lines changed

4 files changed

+2
-10
lines changed

auto_cpufreq/core.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
if os.getenv("PKG_MARKER") == "SNAP":
6363
governor_override_state = Path("/var/snap/auto-cpufreq/current/override.pickle")
6464
else:
65-
governor_override_state = Path("/opt/auto-cpufreq/current/override.pickle")
65+
governor_override_state = Path("/opt/auto-cpufreq/override.pickle")
6666

6767
if os.getenv("PKG_MARKER") == "SNAP":
6868
auto_cpufreq_stats_path = Path("/var/snap/auto-cpufreq/current/auto-cpufreq.stats")
@@ -370,7 +370,6 @@ def deploy_daemon():
370370
bluetooth_disable()
371371

372372
auto_cpufreq_stats_path.touch(exist_ok=True)
373-
governor_override_state.touch(exist_ok=True)
374373

375374
print("\n* Deploy auto-cpufreq install script")
376375
shutil.copy(SCRIPTS_DIR / "auto-cpufreq-install.sh", "/usr/local/bin/auto-cpufreq-install")

bin/auto-cpufreq

-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ def main(config, daemon, debug, install, remove, install_performance, live, log,
164164
python_info()
165165
print("")
166166
device_info()
167-
print(f"VALUE {governor_override_state_path}")
168167
if charging():
169168
print("Battery is: charging")
170169
else:

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def read(name):
1313
return f.read()
1414

1515
# Used for the tar.gz/snap releases
16-
VERSION = "1.9.7"
16+
VERSION = "2.0-beta"
1717

1818
setup(
1919
name="auto-cpufreq",

snap/snapcraft.yaml

-6
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ plugs:
4343
interface: system-files
4444
write:
4545
- /etc/auto-cpufreq.conf
46-
# opt-auto-cpufreq:
47-
# interface: system-files
48-
# write:
49-
# - /opt/auto-cpufreq/override.pickle
5046

5147
apps:
5248
auto-cpufreq:
@@ -61,15 +57,13 @@ apps:
6157
- system-observe
6258
- hardware-observe
6359
- etc-auto-cpufreq-conf
64-
# - opt-auto-cpufreq
6560
service:
6661
command: usr/bin/snapdaemon
6762
plugs:
6863
- cpu-control
6964
- system-observe
7065
- hardware-observe
7166
- etc-auto-cpufreq-conf
72-
# - opt-auto-cpufreq
7367
environment:
7468
LC_ALL: C.UTF-8
7569
LANG: C.UTF-8

0 commit comments

Comments
 (0)