power: logind config to ignore laptop lid close

Defined two settings for ignoring laptop lid close action. They handle
the two cases - running on battery power and running on external power.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
Joseph Nuthalapati 2025-08-25 14:15:30 +05:30 committed by Sunil Mohan Adapa
parent 0081d1ffeb
commit 0a9341851f
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -0,0 +1,12 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
#
# Disable sleep when laptop lid is closed, whether on battery or on
# external power. This configuration is for Debian laptops with freedombox
# installed as a package.
#
# To override the configuration in this file, a system administration can copy
# this file to /etc/systemd/logind.conf.d/90-my.conf (or /etc/systemd/logind.conf)
# and set the values to 'yes'.
[Login]
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore