View previous topic :: View next topic |
Author |
Message |
sad_dam n00b
Joined: 07 May 2018 Posts: 23
|
Posted: Mon May 21, 2018 11:28 pm Post subject: Disable turbo boost |
|
|
Hello, could you not tell me how to permanently disable turbo boost? Writing the script "echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo" into /etc/local.d does not always disable turbo boost, and if it does, sometimes I notice it turns back on and overheats my laptop. In bios i dont have an option to disable turbo boost, changing governor to powersave does not help at all. |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Tue May 22, 2018 1:24 am Post subject: |
|
|
I've only ever seen it get turned back on when I unplug/replug my laptop. If you can't turn it off in the bios, then you'll have to keep turning it off by hand. I run this as a cron script:
Code: | #!/bin/bash
DEBUG=0
# This turns off Intel turbo boost because the BIOS won't let us do it in there
# Requirements: CONFIG_X86_INTEL_PSTATE
until [ -e /sys/devices/system/cpu/intel_pstate/no_turbo ]; do
if [ "$DEBUG" -eq "1" ]; then
printf "Waiting for no_turbo to appear...\n"
fi
sleep 5
done
OUTPUT=`cat /sys/devices/system/cpu/intel_pstate/no_turbo`
if [ "$OUTPUT" -ne "1" ]; then
until [ "$OUTPUT" -eq "1" ]; do
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo
OUTPUT=`cat /sys/devices/system/cpu/intel_pstate/no_turbo`
if [ "$OUTPUT" -ne "1" ]; then
if [ "$DEBUG" -eq "1" ]; then
printf "Turbo did not get disabled, trying again...\n"
fi
sleep 5
else
if [ "$DEBUG" -eq "1" ]; then
printf "Turbo should now be disabled...\n"
fi
fi
done
else
if [ "$DEBUG" -eq "1" ]; then
printf "Turbo is already disabled.\n"
fi
fi
|
_________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3345 Location: Rasi, Finland
|
Posted: Tue May 22, 2018 7:53 am Post subject: |
|
|
If it changes during (un)plug of the power cord, then I'd bind some post action script to the acpi events in question. _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
sad_dam n00b
Joined: 07 May 2018 Posts: 23
|
Posted: Wed May 23, 2018 6:19 am Post subject: |
|
|
Zucca wrote: | If it changes during (un)plug of the power cord, then I'd bind some post action script to the acpi events in question. |
In fact, my turbo boost goes on when i suspend my laptop via s2ram. But in any case, i was hoping for some more decent way (system wide toggle switch for example) to turn off the turbo bost. When the turbo boost is on, during heavy compilation my laptop is heated up to 100 degrees, the cooler in the system is configured too bad, It runs at half of its speed even at 100 degree. |
|
Back to top |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Wed May 23, 2018 1:48 pm Post subject: |
|
|
On my mobo's there is a BIOS setting if you never want it on. Also, manual frequency control and usually a max frequency (X times clock) |
|
Back to top |
|
|
Hotblack n00b
Joined: 28 Dec 2004 Posts: 46
|
Posted: Wed May 23, 2018 2:23 pm Post subject: |
|
|
I suggest to take a look at tlp for power management.
I'm using it with my hp dv6 notebook, and it works great.
See here for the ebuild.
i.e. to disable turbo in config file:
Quote: | # Set the CPU "turbo boost" feature: 0=disable, 1=allow
# Requires an Intel Core i processor.
# Important:
# - This may conflict with your distribution's governor settings
# - A value of 1 does *not* activate boosting, it just allows it
CPU_BOOST_ON_AC=0
CPU_BOOST_ON_BAT=0 |
|
|
Back to top |
|
|
albright Advocate
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Wed May 23, 2018 3:55 pm Post subject: |
|
|
I put a file in
Code: | /usr/lib64/pm-utils/sleep.d/ |
to set things up properly after waking from ram sleep. I think
it should be easy to reset your BOOST to OFF there.
Another temperature saver I found recently is this undervolting
utility:
https://github.com/xdever/linux-intel-undervolt-tool
(only for intel cpu) _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme) |
|
Back to top |
|
|
|