Tested on Debian

All scripts require at least the following packages, please install these if required:

apt update
apt install wget curl whiptail ca-certificates

CPU Governor:

The governor defines the power characteristics of the systems CPU, which in turn affects CPU performance and / or power draw.

wget https://git.ictcorpnet.com/b.waal/Snippets/raw/branch/main/Debian/CPU%20Governor/setup.sh -O /tmp/cpu_governor-setup.sh  
bash /tmp/cpu_governor-setup.sh  

Powertop:

Powertop is a tool to enable various powersaving modes in userspace, kernel and hardware.

wget iets.iets.iets.iets.com -O /tmp/powertop-setup.sh  
bash /tmp/powertop-setup.sh