I would like to execute a command which requires sudo privileges. Specifically, I want to set my CPU frequency to a performance governor using the following script.
sudo cpufreq-set -g performance
What I have done so far is I have added this custom command from System Settings -> Applications -> Startup
. I also changed the permission of the newly created file from ~/.config/autostart
. However, the sudo command is still not executing. Are there any other ways to do this?