diff options
Diffstat (limited to 'parts/rpi-cpugovernor.bu')
-rw-r--r-- | parts/rpi-cpugovernor.bu | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/parts/rpi-cpugovernor.bu b/parts/rpi-cpugovernor.bu new file mode 100644 index 0000000..1348f51 --- /dev/null +++ b/parts/rpi-cpugovernor.bu @@ -0,0 +1,18 @@ +variant: fcos +version: 1.5.0 +systemd: + units: + - name: cpu-governor.service + enable: true + contents: | + [Unit] + Description=Enable CPU power saving + + [Service] + Type=oneshot + RemainAfterExit=yes + ExecStart=/usr/sbin/modprobe cpufreq_conservative + ExecStart=/usr/bin/sh -c '/usr/bin/echo "ondemand" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor' + + [Install] + WantedBy=multi-user.target |