From 0a9341851f5521eabe257fbeec164800bea1822c Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Mon, 25 Aug 2025 14:15:30 +0530 Subject: [PATCH] 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 --- .../usr/lib/systemd/login.conf.d/50-freedombox.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 plinth/modules/power/data/usr/lib/systemd/login.conf.d/50-freedombox.conf diff --git a/plinth/modules/power/data/usr/lib/systemd/login.conf.d/50-freedombox.conf b/plinth/modules/power/data/usr/lib/systemd/login.conf.d/50-freedombox.conf new file mode 100644 index 000000000..253d15dd6 --- /dev/null +++ b/plinth/modules/power/data/usr/lib/systemd/login.conf.d/50-freedombox.conf @@ -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