diff --git a/noTurboAtStartUp.service b/noTurboAtStartUp.service new file mode 100644 index 0000000..90dd497 --- /dev/null +++ b/noTurboAtStartUp.service @@ -0,0 +1,14 @@ +# cp noTurboAtStartUp.sh /usr/bin +# cp noTurboAtStartUp.service /lib/systemd/system/ +[Unit] +Description=Disable turbo capability when system start +After=network.target remote-fs.target nss-lookup.target + +[Service] +ExecStart=noTurboAtStartUp.sh +User=root +Restart=always +RestartSec=3600000 + +[Install] +WantedBy=multi-user.target diff --git a/noTurboAtStartUp.sh b/noTurboAtStartUp.sh new file mode 100755 index 0000000..dfbd329 --- /dev/null +++ b/noTurboAtStartUp.sh @@ -0,0 +1,4 @@ +#!/bin/bash + + +echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo \ No newline at end of file