Change override.pickle location + add to snap
This commit is contained in:
parent
2bfe71e8d8
commit
69ef913c1b
|
@ -59,7 +59,7 @@ auto_cpufreq_stats_path = None
|
||||||
auto_cpufreq_stats_file = None
|
auto_cpufreq_stats_file = None
|
||||||
|
|
||||||
# track governor override
|
# track governor override
|
||||||
STORE = "/opt/auto-cpufreq/venv/override.pickle"
|
STORE = "/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")
|
||||||
|
|
|
@ -43,6 +43,10 @@ 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:
|
||||||
|
@ -56,15 +60,15 @@ apps:
|
||||||
- cpu-control
|
- cpu-control
|
||||||
- system-observe
|
- system-observe
|
||||||
- hardware-observe
|
- hardware-observe
|
||||||
- etc-auto-cpufreq-conf
|
- opt-auto-cpufreq
|
||||||
|
|
||||||
service:
|
service:
|
||||||
command: usr/bin/snapdaemon
|
command: usr/bin/snapdaemon
|
||||||
plugs:
|
plugs:
|
||||||
- cpu-control
|
- cpu-control
|
||||||
- system-observe
|
- system-observe
|
||||||
- hardware-observe
|
- hardware-observe
|
||||||
- etc-auto-cpufreq-conf
|
- etc-auto-cpufreq
|
||||||
|
- 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