How to Disable Sleep on Laptop Lid Close in Linux @ComputerEverywhere
How to Disable Sleep on Laptop Lid Close in Linux  @ComputerEverywhere
Uploaded March 2026 | Updated September 2026, 1 week ago
You can prevent any Linux system from sleeping when you close the laptop lid. Edit /etc/systemd/logind.conf, change two settings to ignore, and restart the login service.
This takes less than two minutes. No reboot needed.
This works on all Linux distributions that use systemd: Ubuntu, Debian, Fedora, Arch, Mint, Proxmox, and more.






What you will learn:
1. How to keep the system running with the lid closed
2. Disable Laptop Suspend on Lid Close in Linux
a. How to Open the configuration file with root access
b. How to save a file in nano
c. How to Restart the login service
3. How to Verify It Worked
a. How to Check the service status



























#computereverywhere #Linux, #LinuxTutorial, #LinuxTips, #LinuxGuide, #LinuxLaptop, #LinuxSettings, #Ubuntu, #LinuxMint, #OpenSource, #LinuxHelp, #TechTutorial, #LaptopTips, #DisableSleep, #LinuxPowerSettings, #LaptopLidClose, #UbuntuTutorial, #LinuxMintTips, #LinuxCommands, #LinuxForBeginners, #TechTips
How to Disable Sleep on Laptop Lid Close in LinuxHow to Remove Gemini Watermark on Your AI-Generated PhotosRegain Your Privacy: Disable Gemini and Smart Features in Google WorkspaceHow to enable FIPS mode on Windows ServerHow to Remove AI Features and Bloat From Your BrowserHow To Switch your 2FA Codes to the Encrypted Proton Authenticator AppEditing How To Switch your 2FA Codes to the Encrypted Proton Authenticator AppUpdo: Monitor Website Uptime And Performance From Your TerminalDisable These 4 Windows 11 Settings for Stronger Security TodayStep-by-Step Guide to fix Start Menu & File Explorer in Windows 11How To Upgrade To Debian 13 Trixie From Debian 12 BookwormHow to activate the built-in Administrator account in Windows 11
Computer Everywhere |

How to Disable Sleep on Laptop Lid Close in Linux

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER