Linux Optimization
1. Improve Boot Time
Use systemd-analyze to check boot time:
systemd-analyze
systemd-analyze blame
Enable parallel booting:
systemctl enable systemd-readahead-collect
systemctl enable systemd-readahead-replay
Remove unused services:
systemctl disable bluetooth
systemctl disable cups
2. Enable Instant Sleep & Wake
sudo systemctl enable sleep.target suspend.target
Enable deep sleep (S3 or modern standby if supported):
cat /sys/power/mem_sleep
echo deep | sudo tee /sys/power/mem_sleep
sudo apt install tlp
sudo systemctl enable tlp
3. Extend Battery Life
sudo tlp start
Enable auto CPU frequency scaling with auto-cpufreq:
git clone https://github.com/AdnanHodzic/auto-cpufreq.git
cd auto-cpufreq && sudo ./auto-cpufreq-installer
Turn off unused ports/devices with powertop:
sudo powertop --auto-tune
4. Wake on Lid Open
Check BIOS/UEFI for “wake on lid” setting. You may also need:
cat /proc/acpi/wakeup
echo LID0 > /proc/acpi/wakeup