Disable Suspend on Lid Close With Opensuse Tumbleweed with command line

Kent - January 23, 2024

Just installed OpenSUSE TumbleWeed on a laptop, and since it’s going to be used as a ‘server’, the lid will be closed most of the time and there is no GUI installed.

But the default action is to suspend the computer when the lid closes…

[Login]
HandleLidSwitch=ignore
LidSwitchIgnoreInhibited=yes
systemctl restart systemd-logind

The lid can be closed without suspending the computer!

See Also

Comments

Any comments? Create a new discussion on GitHub.
There used to be an inline comment form here, but it was removed.