This Bash script applies a series of thermal and power-saving tweaks to optimize system performance on KDE-based Arch Linux setups, especially useful for laptops.
-
Disables KDE Baloo File Indexing Stops background file indexing to save CPU and disk I/O.
-
Sets CPU Governor to
powersaveReduces CPU frequency to conserve power when not under load. -
Disables Intel Turbo Boost Prevents thermal spikes and high power consumption by disabling Turbo Boost.
-
Enables TLP and Thermald Automatically manages power and thermal profiles in the background.
-
Loads the Coretemp Module Ensures temperature sensors are available for logging.
-
Logs Boot-Time Temperatures Captures initial thermal state in
/var/log/boot_temp.log.
Ensure the following packages and modules are installed:
tlpthermaldcpupowerlm_sensors- Kernel module:
coretemp(usually built-in or available)
Install using:
sudo pacman -S tlp thermald cpupower lm_sensorsMake the script executable:
chmod +x archlinux-cool.shRun it manually:
sudo ./archlinux-cool.shOr auto-run at startup via systemd or .bash_profile.
- The script safely handles missing commands like
balooctl. - It directly edits Baloo config (
~/.config/baloofilerc) if needed. - Logs initial temperatures for diagnostics or thermal monitoring.
Use at your own risk. Some changes (like disabling Turbo Boost) may reduce performance in high-demand tasks.
Made with π» by rajacharya987 For power users who prefer a quiet, cool, and efficient Linux experience.