A small bash utility to scale down or up CPU power consumption
Pequena utilidade escrita em bash para aumentar ou diminuir o consumo de energia da CPU
By wh1t3h47
(Antônio Martos Harres)
- Automatically detects if charger is plugged and acts accordingly to the context;
- Set your own limits for maximium clock, core count and governor;
- Control your CPU whenever a power source change and automatically apply the
battery
orAC
profile.
- This script runs as root, so make sure it's owned by user and group root and it's not writable by any other user, otherwise you're installing a tick bomb inside your system;
- Do NEVER set a script with suid bit: If your shell script has suid priviledge, it's a backdoor waiting to be exploited, any user could gain root without password.
- cpufreq
- cpufreqd
- lscpu
- Linux
- 1. Make disable_pstate a parameter
- 2. Respect max pstate clock as well
- 3. Find a better solution to detect max clock speed
- 4. Implement systemd service
- 5. Make governor a parameter
- 6. modprobe all governors
- 7. Create a way to configure CPU settings for each amount of battery