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
    Commented Jul 8, 2020 at 12:41

1 Answer 1


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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .