Screen saver & Locker

Contents

    Xfce Screensaver

    IMPORTANT Xfce screensaver is available since Xfce 4.14 (released in... 2019)

    properties: xfce4-screensaver channel

    → Note: properties are not created by xfce4-screensaver-preferences when using default values

    Screen locker

    C'est en fait un simple script qui recherche un locker (généralement un screensaver avec l'option --lock) a qui il délègue la tâche de vérouiller l'écran. Pour cela il teste l'existence des lockers les uns après les autres jusqu'a ce que l'un d'entre eux réponde.

    A partir d'Ubuntu 19.10, une propriété permet de forcer le screensaver si besoin:
    xfconf-query --channel xfce4-session --property /general/LockCommand --create --type string --set "gnome-screensaver-command --lock"

    Voir aussi : configuration de gnome-screensaver

    Power management (suspend, hibernate,...)

    Understanding the mess

    Source

    There are two managers used at the same time...

    By default

    Xfce properties: xfconf-query --channel xfce4-power-manager -lv

    Suspend

    BUG: if TWO login screens show up after suspend

    Lid switch control

    XUbuntu 20.04 → lid switch management works out of the box using Xfce power manager ☺

    Who is controlling the lid switch?
    xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch | sed -e "s/true/systemd logind/" -e "s/false/Xfce power manager/"

    Using Xfce's power manager
    xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -s false

    xfce4-power-manager -c
    xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/lid-action-on-ac -n -t uint -s 3
    xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/lid-action-on-battery -n -t uint -s 3

    Using systemd logind
    xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -s true
    See systemd logind lid configuration

    Proudly Powered by Zim 0.75.2.

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