cef45dd80d
By default, in cpufreq-simple feature the ondemand governor is configured. But only the conservative governor is available at Raspberry Pi 4 kernels. This is change the default governor to conservative.
13 lines
396 B
Bash
Executable File
13 lines
396 B
Bash
Executable File
#!/bin/sh -efu
|
|
# By default, in cpufreq-simple feature the ondemand governor is configured.
|
|
# But only the conservative governor is available at Raspberry Pi 4 kernels.
|
|
# This is change the default governor to conservative.
|
|
|
|
cfgfile="/etc/sysconfig/cpufreq-simple"
|
|
|
|
if [ -f "$cfgfile" ]
|
|
then
|
|
echo "GOVERNOR_AC_ON=conservative" >> "$cfgfile"
|
|
echo "GOVERNOR_AC_OFF=conservative" >> "$cfgfile"
|
|
fi
|