From 4d6d4c59cbb53c08fe14c05eaf073d1221ea6fb1 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Mon, 1 Apr 2019 14:16:37 +0200 Subject: [PATCH] [DEV] add no tubo element --- noTurboAtStartUp.service | 14 ++++++++++++++ noTurboAtStartUp.sh | 4 ++++ 2 files changed, 18 insertions(+) create mode 100644 noTurboAtStartUp.service create mode 100755 noTurboAtStartUp.sh 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