With KDM, the main logon screen seemed to follow the ACPI/power events defined in system settings. I tend to leave a laptop running with the screen closed for remote access. The other day since the SDDM/KDE5 upgrade I ran out the door and found that my machine was asleep. Turns out this is now handled by the systemd power settings. w00t systemd!!
To set this, you'll need to edit /etc/systemd/logind.conf:
According to logind.conf documentation:
Code: Select all
Whether or not that includes "power supply connected" vs "battery" is anyone's guess. Can someone clarify? I'm away from that machine right now to test.If the system is inserted in a docking station, or if more than one display is connected, the action specified by HandleLidSwitchDocked= occurs; otherwise the HandleLidSwitch= action occurs.