Screen locker

From postmarketOS Wiki

List of screen lockers

PhoshLockscreen

The lockscreen of Phosh is not a separate package but part of Phosh itself. It consists of three parts:

  • lockscreen-manager: The singleton that manages screen locking (source)
  • lockscreen: The main lock screen (source)
  • lockshield: Lock shield for non primary screens (source)

kscreenlocker

Plasma mobile comes with KDE screen locker. Package name is kscreenlocker.

xfce4-screensaver

Default implementation on Xfce4. It can be configured in the screensaver preferences (documentation page).

The virtual keyboard for the unlocking screen is configured in the preferences by command onboard -e -l Phone. This uses the "Phone" layout, it could be changed to another onboard layout. It could also be changed to another virtual keyboard, however, it needs to be one that offers embedded mode (windowed mode doesn't work in xfce4-screensaver). An alternative would be matchbox-keyboard with option for embedded mode: matchbox-keyboard --xid.

Changes on the locking state can be monitored via dbus by: dbus-monitor --session "type='signal',interface='org.xfce.ScreenSaver'" However, the unlock signal is issued after entering the password at the unlocking screen – it monitors the state of lock, not the state of the screen. The lock state can also be checked by xfce4-screensaver-command --query.

An example draft script to use dbus-monitor to disable inputs and LEDs when locked can be found here: Screen_locker:Disable_inputs#Xfce4.

The command xflock4 is not a locker itself. It's a wrapper using either xfce4-screensaver, xscreensaver, gnome-screensaver, xlock or slock (source).

mate-screensaver

Similar to xfce4-screensaver. However, the settings doesn't offer virtual keyboard options. It can be done by gsettings, though.

  • gesttings set org.mate.screensaver embedded-keyboard-enabled true
  • gesettings set org.mate.screensaver embedded-keyboard-command 'onboard -e -l Phone'

For more options setting up the virtual keyboard, see MATE#Lock_screen.

xscreensaver

XScreenSaver seems not be able to embed a virtual keyboard.

swaylock

Package description: Screen locker for Wayland.

i3lock

Locker of the i3wm user interface.

xautolock

Package description: An automatic X screen-locker/screen-saver.

slock

Package description: A simple screen locker for X.

boinc-screensaver

Package description: Open-source software for volunteer computing and grid computing. (screensaver)

gnome-screensaver

Not available at Alpine Linux or postmarketOS.

light-locker

Not available at Alpine Linux or postmarketOS.

Disable inputs

Some of the screen lockers don't disable inputs. Possible solutions can be colleted at: Screen_locker:Disable_inputs