Systemd/logind/en: Difference between revisions

FuzzyBot (talk | contribs)
Updating to match new version of source page
Tags: Mobile edit Mobile web edit
 
FuzzyBot (talk | contribs)
Updating to match new version of source page
Line 19: Line 19:
systemd-inhibit --what=handle-lid-switch lock-screen-tool
systemd-inhibit --what=handle-lid-switch lock-screen-tool
</code>
</code>
<code>logind</code> logind still overrides that user decision. For it to work, you need to tell logind to ignore the lid switch in your system config:
<code>logind</code> still overrides that user decision. For it to work, you need to tell logind to ignore the lid switch in your system config:
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
services.logind.extraConfig = ''
services.logind.extraConfig = ''