As part of auto-cpufreq (Automatic CPU speed & power optimizer for Linux), in latest changes on gnome-power branch I would like to be able to disable GNOME power savings profiles on users host machine. Outside of snap context, these changes work fine if I use the tool’s git installer, but once these changes are running as part of snap package (even in
devmode) they don’t seem to have any affect (which makes sense as this service is not available as part of the snap).
Hence I was wondering how could I do this using snap package? Latest version of snapcraft.yaml:
name: auto-cpufreq base: core20 version: '1.8.0' summary: Automatic CPU speed & power optimizer for Linux description: | Automatic CPU speed & power optimizer for Linux based on active monitoring of laptop's battery state, CPU usage and system load. Ultimately allowing you to improve battery life without making any compromises. license: LGPL-3.0 grade: stable confinement: strict compression: lzo parts: auto-cpufreq: plugin: python python-packages: - setuptools - wheel build-packages: - gcc - python3-dev stage-packages: - coreutils - dmidecode source: . deploy-scripts: plugin: dump source: scripts organize: cpufreqctl.sh: usr/bin/cpufreqctl.auto-cpufreq snapdaemon.sh: usr/bin/snapdaemon plugs: etc-auto-cpufreq-conf: interface: system-files read: - /etc/auto-cpufreq.conf apps: auto-cpufreq: command: bin/auto-cpufreq environment: PYTHONPATH: $SNAP/usr/lib/python3/site-packages:$SNAP/usr/lib/python3/dist-packages:$PYTHONPATH plugs: - cpu-control - system-observe - hardware-observe - etc-auto-cpufreq-conf environment: LC_ALL: C.UTF-8 LANG: C.UTF-8 PKG_MARKER: SNAP service: command: usr/bin/snapdaemon plugs: - cpu-control - system-observe - hardware-observe environment: LC_ALL: C.UTF-8 LANG: C.UTF-8 PKG_MARKER: SNAP daemon: simple