Systemd/logind/en: Difference between revisions
Updating to match new version of source page Tags: Mobile edit Mobile web edit |
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> | <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 = '' | ||