Systemd-logind: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 18: Line 18:


Edit <tt>/etc/systemd/logind.conf</tt>.
Edit <tt>/etc/systemd/logind.conf</tt>.
Set the following:
<pre>
...
HandleLidSwitch=ignore
...
LidSwitchIgnoreInhibited=no
...
</pre>

Revision as of 08:36, 7 January 2016

External

Overview

systemd-logind is a system service that manages user logins. It is responsible for:

  • keeping track of users and sessions, their processes and their idle state
  • providing PolicyKit-based access for users to operations such as system shutdown or sleep
  • implementing a shutdown/sleep inhibition logic for application
  • handling power/sleep hardware keys
  • multi-seat management
  • session switch management
  • device access management for users
  • automatic spawning of text logins (gettys) on virtual console activation and user runtime directory management

How to Prevent the Computer to Go to Sleep when the Lid is Closed

Edit /etc/systemd/logind.conf.

Set the following:

...
HandleLidSwitch=ignore
...
LidSwitchIgnoreInhibited=no
...