How to run throttle stop script at startup?

I have tried this (How do I write a script that runs on startup?) to automatically run a throttle stop script at startup. But I cannot make it work.

I've tried the methods (GUI app, cron job and /rc.local) described here:

And, I have also tried the following tool (), but it didn't work.

The script:

#!/bin/sh
# Prevent unset variable problems
set -u
# Change CPU setting
cpufreq-set -c 0 -g performance
cpufreq-set -c 1 -g performance
cpufreq-set -c 2 -g performance
cpufreq-set -c 3 -g performance
modprobe msr
wrmsr 0x1FC 2359388

Some info that may help:

  • PC: Dell Vostro 15 3568
  • cpuinfo: Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz
  • cpufreq/scaling_driver:intel_pstate
  • cpufreq/scaling_governor: powersave
  • current frequency: 400 MHz
  • linux version: Ubuntu 20.04
2

1 Answer

This worked for me:

I know is mint related, but Ubuntu users may be benefited from it. Thanks!

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like