CachyOS Laptop Configuration - ryzendew/Linux-Tips-and-Tricks GitHub Wiki
CachyOS Laptop Configuration Guide
Complete beginner-friendly guide to configuring CachyOS on laptops, including battery optimization, power management, touchpad, function keys, and laptop-specific features.
Table of Contents
- Understanding Laptop Configuration
- Battery Optimization
- Power Management
- Touchpad Configuration
- Function Keys
- Laptop-Specific Hardware
- Troubleshooting
Understanding Laptop Configuration
Laptop-Specific Needs
Laptops have unique requirements:
- Battery life: Maximize battery runtime
- Power management: Balance performance and power
- Touchpad: Configure touchpad settings
- Function keys: Media keys, brightness, etc.
- Thermal management: Prevent overheating
Why configure:
- Battery life: Extend usage time
- Performance: Balance performance and battery
- Comfort: Better user experience
- Hardware: Enable laptop-specific features
Battery Optimization
Check Battery
Check battery status:
upower -i /org/freedesktop/UPower/devices/battery_BAT0
What this does:
- Shows battery information
- Charge level, health, capacity
- Helps monitor battery
Simple battery level:
cat /sys/class/power_supply/BAT0/capacity
What this does:
- Shows battery percentage
- Quick battery check
- Simple monitoring
TLP Power Management
Install TLP:
sudo pacman -S tlp tlp-rdw
What this does:
- Installs TLP power management
- Automatic power optimization
- Extends battery life
Start TLP:
sudo systemctl enable --now tlp.service
What this does:
- Enables TLP at boot
- Starts TLP immediately
- Applies power settings
See CachyOS Power Management for detailed TLP configuration.
Power Management
CPU Frequency Scaling
Check current governor:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
What this does:
- Shows CPU governor
- Verifies CPU scaling
- Helps configure
Set powersave:
echo powersave | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
What this does:
- Sets powersave governor
- Reduces CPU frequency
- Saves battery
Set performance:
echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
What this does:
- Sets performance governor
- Maximum CPU frequency
- Better performance
Power Profiles
Install power-profiles-daemon:
sudo pacman -S power-profiles-daemon
Start:
sudo systemctl enable --now power-profiles-daemon.service
Switch profiles:
powerprofilesctl set power-saver
powerprofilesctl set balanced
powerprofilesctl set performance
What this does:
- Switches power profile
- Adjusts system behavior
- Easy power management
Touchpad Configuration
Basic Touchpad Setup
Check touchpad:
xinput list | grep -i touchpad
What this does:
- Finds touchpad device
- Verifies detection
- Helps configure
Enable/disable:
# Disable
xinput disable "Touchpad Name"
# Enable
xinput enable "Touchpad Name"
What this does:
- Toggles touchpad
- Useful for troubleshooting
- Quick enable/disable
See CachyOS Touchpad Configuration for detailed touchpad setup.
⌨ Function Keys
Function Key Configuration
Function keys control laptop features:
- Brightness: Screen brightness
- Volume: Audio volume
- Wi-Fi: Enable/disable Wi-Fi
- Bluetooth: Enable/disable Bluetooth
- Display: External display
Brightness Control
Check brightness:
cat /sys/class/backlight/*/brightness
What this does:
- Shows current brightness
- Helps identify brightness control
- Verifies functionality
Set brightness:
echo 500 | sudo tee /sys/class/backlight/*/brightness
What this does:
- Sets brightness level
- Adjust brightness
- Lower = dimmer, Higher = brighter
Or use brightnessctl:
sudo pacman -S brightnessctl
brightnessctl set 50%
What this does:
- Sets brightness to 50%
- Easier than manual
- Percentage-based
Volume Control
Control volume:
pactl set-sink-volume @DEFAULT_SINK@ 50%
What this does:
- Sets volume to 50%
- Adjusts audio volume
- Quick volume control
Or use desktop environment controls
Laptop-Specific Hardware
Webcam
Check webcam:
ls /dev/video*
What this does:
- Lists video devices
- Shows webcam if detected
- Verifies webcam
Test webcam:
ffplay /dev/video0
What this does:
- Tests webcam
- Shows webcam feed
- Verifies functionality
Microphone
Check microphone:
pactl list short sources
What this does:
- Lists audio input devices
- Shows microphones
- Verifies detection
Test microphone:
arecord -d 5 test.wav
aplay test.wav
What this does:
- Records 5 seconds
- Plays back recording
- Tests microphone
Keyboard Backlight
Check keyboard backlight:
ls /sys/class/leds/
What this does:
- Lists LED devices
- Shows keyboard backlight if available
- Verifies backlight
Control backlight:
echo 1 | sudo tee /sys/class/leds/*::kbd_backlight/brightness
What this does:
- Sets keyboard backlight
- Adjusts brightness
- May vary by laptop
Troubleshooting
Battery Not Detected
Check battery:
ls /sys/class/power_supply/
What this does:
- Lists power supplies
- Shows if battery detected
- Helps troubleshoot
Check kernel messages:
dmesg | grep -i battery
What this does:
- Shows battery-related messages
- Helps identify issues
- Troubleshooting information
Function Keys Not Working
Check function keys:
xev | grep -A 5 "key press"
What this does:
- Shows key press events
- Press function keys
- Verifies key detection
Install acpid:
sudo pacman -S acpid
sudo systemctl enable --now acpid.service
What this does:
- Installs ACPI daemon
- Handles ACPI events
- May fix function keys
Touchpad Issues
See CachyOS Touchpad Configuration for touchpad troubleshooting.
Additional Resources
- CachyOS Power Management - Detailed power management
- CachyOS Touchpad Configuration - Touchpad setup
- CachyOS System Tweaks - System optimizations
- Arch Linux Wiki - Laptop: https://wiki.archlinux.org/title/Laptop
Summary
This guide covered:
- Understanding laptop configuration - Laptop-specific needs
- Battery optimization - Extending battery life
- Power management - CPU scaling and power profiles
- Touchpad configuration - Touchpad setup
- Function keys - Brightness, volume, etc.
- Laptop hardware - Webcam, microphone, backlight
- Troubleshooting - Common laptop issues
Key Takeaways:
- Use TLP for automatic power optimization
- Configure CPU governors for battery/performance
- Use power profiles for easy management
- Configure touchpad for comfort
- Function keys may need ACPI daemon
- Check hardware detection if issues occur
- Balance performance and battery life
This guide is based on the CachyOS Wiki and Arch Linux Wiki and expanded with detailed explanations for beginners. For the most up-to-date laptop information, always refer to the official documentation.