SDDM login screen power events / laptop lid

Compiz, KDE, Gnome, Fluxbox, etc...

Moderator: Moderators

Post Reply
User avatar
Simple Hen
Posts: 70
Joined: Fri Feb 23, 2007 20:25

SDDM login screen power events / laptop lid

Post by BoeroBoy » Tue Sep 22, 2015 8:54

Hi I was going to come on here with this issue but I just ended up solving it myself. Figure I'd throw it out here in case anyone else has the same issue.

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:

Code: Select all

According to logind.conf documentation:
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.
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.

Post Reply