Systemd/logind: Difference between revisions

DoggoBit (talk | contribs)
No edit summary
Norude (talk | contribs)
explained the powerKey, rebootKey, suspendKey, hibernateKey and lidSwitch options
Line 37: Line 37:
Long-pressing your power button (5 seconds or longer) to do a hard reset is handled by your machine’s BIOS/EFI and thus still possible.
Long-pressing your power button (5 seconds or longer) to do a hard reset is handled by your machine’s BIOS/EFI and thus still possible.
</translate>
</translate>
<translate>
Similar to the power key, you can ignore the reboot, suspend and hibernate keys like this:<syntaxhighlight lang="nixos">
services.logind.rebootKey = "ignore";
services.logind.suspendKey = "ignore";
services.logind.hibernateKey = "ignore";
</syntaxhighlight>Or ignore the action of closing/opening the lid on laptops like this:<syntaxhighlight lang="nixos">
services.logind.lidSwitch = "ignore";
</syntaxhighlight></translate>
<translate>
<translate>
=== Ignore hardware keys when using <code>systemd-inhibit</code> === <!--T:9-->
=== Ignore hardware keys when using <code>systemd-inhibit</code> === <!--T:9-->