Skip to content

Instantly share code, notes, and snippets.

@KD-MM2
Created May 5, 2023 15:57
Show Gist options
  • Save KD-MM2/cba73f3e7f1e23fa18b48c5b42665976 to your computer and use it in GitHub Desktop.
Save KD-MM2/cba73f3e7f1e23fa18b48c5b42665976 to your computer and use it in GitHub Desktop.
Broken LCD Laptop as a server. A laptop with broken lcd with linux installed. Even the power settings is set to NEVER turn off, the laptop just keep wake only HDMI cable is plugged. Here is how to solve.
# Open the Terminal by pressing Ctrl+Alt+T.
# Type the following command to edit the power management configuration file:
sudo nano /etc/systemd/logind.conf
# Find the following line in the file:
#HandleLidSwitch=suspend
# Uncomment the line by removing the "#" at the beginning of the line and change "suspend" to "ignore":
HandleLidSwitch=ignore
# Save and exit the file by pressing Ctrl+O and Ctrl+X.
# Restart your laptop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment