I want to make a program with a GUI that controls Intel Turbo Boost through intel_pstate/no_turbo
.
btnDisable
will trigger:
echo -n 1 > /sys/devices/system/cpu/intel_pstate/no_turbo
btnEnable
will trigger:
echo -n 0 > /sys/devices/system/cpu/intel_pstate/no_turbo
However, I want to run those commands from a .sh
file, and ask for root permissions to do so, how can I achieve this?