Back to feed
Dev.to
Dev.to
6/23/2026
Why Your Ubuntu Laptop Lags, and How to Fix It for Free

Why Your Ubuntu Laptop Lags, and How to Fix It for Free

Short summary

A 2017 Dell laptop with 8GB RAM was randomly shutting down and freezing. The guide separates root causes (thermal throttling, memory exhaustion, full disk, weak battery), provides diagnostic commands to identify the culprit, and applies targeted software fixes including thermald, zram, and earlyoom to stabilize the system. Real solutions require monitoring temperatures, enabling compressed swap, and upgrading RAM or cleaning thermal paste for sustained performance.

  • Diagnose separately: check CPU temperature, memory usage, disk space, and battery health with concrete commands
  • Apply software fixes: install thermald, enable zram with swappiness tuning, use earlyoom to prevent freezes
  • Plan hardware upgrades: clean and repaste thermal paste for shutdowns, add RAM for memory-constrained systems

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Explore more