Skip to content

hypergolang/calm-down-on-linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Arch Linux KDE – Cooling & Performance Optimization Guide

This guide helps you configure Arch Linux with KDE to achieve cooler temperatures, stable performance, and better power management.

We will configure the CPU governor, disable turbo boost, enable sensors, and optimize power usage.


1. Install Required Packages

What we're doing: We need essential packages for CPU power management, temperature monitoring, and power optimization.

Commands:

sudo pacman -Syu --needed cpupower lm_sensors powertop

2. Configure CPU Governor

What we're doing:

  • cpupower manages CPU frequency scaling
  • We set the governor to schedutil for balanced performance and power-saving
  • This service will automatically apply settings at boot

Commands:

# Enable the cpupower service
sudo systemctl enable --now cpupower.service

# Set schedutil as the default governor
echo 'governor="schedutil"' | sudo tee -a /etc/default/cpupower

# Restart the service to apply changes
sudo systemctl restart cpupower.service

3. Disable Turbo Boost

What we're doing:

  • Turbo boost significantly increases CPU temperature
  • We create a custom systemd service to disable boost automatically at startup
  • This ensures the setting persists across reboots

Commands:

Create the service file:

sudo nano /etc/systemd/system/disable-boost.service

Paste this content into the file:

[Unit]
Description=Disable CPU turbo boost
After=multi-user.target

[Service]
Type=oneshot
ExecStart=/bin/sh -c 'echo 0 | tee /sys/devices/system/cpu/cpufreq/boost'
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

Enable and start the service:

sudo systemctl daemon-reload
sudo systemctl enable --now disable-boost.service

4. Monitor Temperatures

What we're doing:

  • lm_sensors detects and configures hardware temperature sensors
  • The sensors command displays real-time temperature readings
  • This helps you monitor the effectiveness of your cooling optimizations

Commands:

# Auto-detect and configure sensors (answer YES to most questions)
sudo sensors-detect

# Display current temperatures
sensors

5. Fan Control (Optional)

What we're doing:

  • Configure automatic fan speed control based on temperature
  • Only works if your BIOS supports software fan control
  • pwmconfig creates custom fan curves for optimal cooling

Commands:

# Configure fan control profiles
sudo pwmconfig

# Enable automatic fan control service
sudo systemctl enable --now fancontrol

Note: If pwmconfig doesn't detect PWM controls, your system may not support software fan control.


6. Power Optimization

What we're doing:

  • powertop analyzes power consumption and suggests optimizations
  • It can automatically apply power-saving settings
  • Run this periodically to maintain optimal power efficiency

Commands:

# Launch powertop for interactive power analysis
sudo powertop

# Auto-apply all suggested optimizations (optional)
sudo powertop --auto-tune

7. Install LTS Kernel (Optional)

What we're doing:

  • LTS (Long Term Support) kernel is often more stable and cooler
  • Provides better compatibility with older hardware
  • Update GRUB after installation to make it available at boot

Commands:

# Install LTS kernel and headers
sudo pacman -S linux-lts linux-lts-headers

# Update GRUB configuration
sudo grub-mkconfig -o /boot/grub/grub.cfg

Note: You can choose between regular and LTS kernel at boot via GRUB menu.


8. Recommended Additional Tools

auto-cpufreq:

  • Automatically switches CPU governor and turbo boost based on AC/battery power
  • Provides intelligent power management
# Install from AUR (using yay or paru)
yay -S auto-cpufreq

# Enable the service
sudo systemctl enable --now auto-cpufreq

KDE Plasma Temperature Widget:

  • Add System Monitor widgets to your KDE panel
  • Right-click panel → Add Widgets → System Monitor → Configure for CPU temperature

9. Verification Commands

Check your current configuration:

# Verify CPU governor
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

# Check if turbo boost is disabled (should show 0)
cat /sys/devices/system/cpu/cpufreq/boost

# View current CPU frequencies
cpupower frequency-info

# Check GPU driver in use
lspci -k | grep -A 3 -E "VGA|3D"

# Monitor real-time temperatures
watch -n 1 sensors

Expected Results

With this configuration applied:

  • CPU governor: schedutil (balanced performance/efficiency)
  • Turbo boost: Disabled (lower temperatures)
  • Temperature monitoring: Active via sensors
  • Fan control: Automatic (if supported)
  • Power optimization: Applied via powertop

Your Arch Linux KDE system should now run:

  • Cooler (5-15°C temperature reduction typical)
  • Quieter (reduced fan noise)
  • More stable (fewer thermal throttling events)
  • More energy-efficient (better battery life)

Troubleshooting

If temperatures are still high:

  • Verify thermal paste application
  • Check for dust buildup in vents/fans
  • Consider undervolting (advanced users)
  • Ensure proper laptop ventilation

If performance is too low:

  • Temporarily enable turbo boost: echo 1 | sudo tee /sys/devices/system/cpu/cpufreq/boost
  • Switch to performance governor: sudo cpupower frequency-set -g performance
  • Use auto-cpufreq for dynamic switching

Guide optimized for Arch Linux KDE users seeking cooler, quieter, and more efficient laptop operation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published