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.




Commands:
sudo nano /etc/systemd/logind.conf
sudo systemctl restart systemd-logind
systemctl status systemd-logind




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





























Song: Amored - Only Your
Music provided by Vlog No Copyright Music
Link: bit.ly/3YMWwW7

#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 set up additional clocks in Windows 11How to remove your personal info from Google Search - its quick and easyHow To Upgrade To Fedora 43 From Fedora 42 [Step-by-Step Guide]9 tweaks in Windows Terminal for a more readable and consistent experience on Windows 11Updo: Monitor Website Uptime And Performance From Your TerminalHow to delete ChatGPT memories for privacy and to remove errorsInstall Debian 13 Trixie on VirtualBoxHow To Enable Backports And Testing Repositories In Debian 13 TrixieReset or reinstall Windows Server without deleting the VMHow to Convert OST to PST in Outlook using Stellar Converter for OSTHow to Backup and Restore Installed Packages in Ubuntu
Computer Everywhere |

How to Disable Sleep on Laptop Lid Close in Linux

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER