Posts

Showing posts from April 28, 2020

Turn off Intel Turbo boost in <= Ubuntu 20.04 Save laptop battery and power

Image
Step 1 Install msr-tools     sudo apt-get install msr-tools   Step 2     sudo modprobe msr   Step 3 Check Intel turbo boost status    sudo rdmsr -pi 0x1a0 -f 38:38 1=disabled 0=enabled Replace i with your cores number example(-p2 for 2 core cpu) Step 4 Open text editor copy paste following and save it as turbo-boost.sh #!/bin/bash if [[ -z $(which rdmsr) ]]; then echo "msr-tools is not installed. Run 'sudo apt-get install msr-tools' to install it." >&2 exit 1 fi if [[ ! -z $1 && $1 != "enable" && $1 != "disable" ]]; then echo "Invalid argument: $1" >&2 echo "" echo "Usage: $(basename $0) [disable|enable]" exit 1 fi cores=$(cat /proc/cpuinfo | grep processor | awk '{print $3}') for core in $cores; do if [[ $1 == "disable" ]]; then sudo wrmsr -p${core} 0x1a0 0x4000850089 fi if [[ $1 == "enable" ]]; then ...