Solus OS: Prevent Laptop from Sleeping When Closing the Lid
June 22, 2023 —
Gregg Szumowski
If you’re using a laptop with an external monitor and you’ve recently
installed Solus OS you might have noticed that the laptop goes to sleep
when you close the lid and there is no way to adjust for this in the
power settings. You can get around this by manually editing
/etc/systemd/logind.conf
, then uncommenting and changing
the line:
#HandleLidSwitch=suspend
to
HandleLidSwitch=ignore
Note: The ‘#’ (comment) at the beginning of the line needs to be
removed and the value needs to be changed from suspend
to
ignore
.