Want to run while laptop lid is closed

After new gnome version the option to run while lid is closed is gone. How to do it now, any other way?

I want to run the laptop while lid is closed, this feature is very useful for students in class, doing ML task while theory classes. version : Manjaro 6.6, gnome 45.2

❯ cat /etc/systemd/logind.conf
#  This file is part of systemd.
#  systemd is free software; you can redistribute it and/or modify it under the
#  terms of the GNU Lesser General Public License as published by the Free
#  Software Foundation; either version 2.1 of the License, or (at your option)
#  any later version.
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file (or a copy of it placed in
# /etc/ if the original file is shipped in /usr/), or by creating "drop-ins" in
# the /etc/systemd/logind.conf.d/ directory. The latter is generally
# recommended. Defaults can be restored by simply deleting the main
# configuration file and all drop-ins located in /etc/.
# Use 'systemd-analyze cat-config systemd/logind.conf' to display the full config.
# See logind.conf(5) for details.

Create a file like so:


1 Like

To anyone planning to copy this setup:
The OP’s profile shows ‘Intel Pentium N5000’, an ultra-low power processor with a ThermalDesignPower of 6W. A laptop with that kind of cpu/gpu may well be suited to run in clamshell mode, even if you accidentally drop it into a backpack after class without powering down.

Doing this with a laptop with a 35-65W TDP cpu and a dedicated gpu may keep your back warm on the way home but can potentially fry the thing.


This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.

I wouldn’t restart the systemd-logind service while logged in. :wink:

then what to do? :slightly_smiling_face:

Just reboot, it should pick up your new settings.