From auto-cpufreq github description: Automatic CPU speed & power optimizer for Linux based on active monitoring of laptop's battery state, CPU usage, CPU temperature and system load. Ultimately allowing you to improve battery life without making any compromises.
This installations method will only work arch based distros. If you are using a debian/RHEL based distro, consider installing with snap or directly build form the source.
auto-cpufreq: https://github.com/AdnanHodzic/auto-cpufreq
music: https://www.youtube.com/watch?v=TN_8D-79BZg