loginctl

Contents

    Key facts

    Configuration file: lid related config

    /etc/systemd/logind.conf
    (of course, you need to restart the service after a config update)

    Understanding the situation

    Default values

    For the first three keys, value can be one of ignore, poweroff, reboot, halt, kexec, suspend, hibernate, hybrid-sleep, suspend-then-hibernate, and lock. If ignore, logind will never handle these keys. If lock, all running sessions will be screen-locked; otherwise, the specified action will be taken in the respective event.

    According to the man page

    Possible issues

    Inside /etc/systemd/logind.conf

    Invisible login screen
    ????

    With HandleLidSwitch=suspend → TWO logins!
    If you are using Xfce: xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/lock-screen-suspend-hibernate -s false

    Proudly Powered by Zim 0.75.2.

    Template by Etienne Gandrille, based on ZeroFiveEight and using JQuery Toc Plugin.