How can I disable suspending when the lid is closes?

I never suspend my laptop. When I close the lid and the system is running, I want the screen to be blanked, but the system should run as if the lid was open.

How can I achieve this in Sway?

  • Did you check the power management options? This is usually where this thing is managed (screenshot is for KDE...).
    – xenoid
    Jul 8 '20 at 12:41

I'm not sure Sway handles that, so first try disabling system-wide lid actions by editing /etc/systemd/logind.conf and see if it works (you can also use lock instead of ignore):


sudo systemctl kill -s HUP systemd-logind - will apply these changes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.