Newbie here. I have a Dell Inspiron 3442 who suffers from the "CPU stuck at 800Mhz" problem. In Windows, I used to run ThrottleStop at every startup and disable BD PROCHOT... So I installed Ubuntu recently and learned to solve this problem with a set of commands in this answer:
https://askubuntu.com/a/1192949/1053161
Which are :
sudo cpufreq-set -c 0 -g performance
sudo cpufreq-set -c 1 -g performance
sudo cpufreq-set -c 2 -g performance
sudo cpufreq-set -c 3 -g performance
sudo modprobe msr
sudo wrmsr 0x1FC 17422
These completely solved my problem. Now I want to make a script that could be run automatically on startup / after login. What is the easiest way to accomplish this?
Thanks in advance!