[DEV] add no tubo element

This commit is contained in:
Edouard DUPIN 2019-04-01 14:16:37 +02:00
parent b8f2a186a5
commit 4d6d4c59cb
2 changed files with 18 additions and 0 deletions

14
noTurboAtStartUp.service Normal file
View File

@ -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

4
noTurboAtStartUp.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo