Bloquear a pantalla cando o usuario está en repouso
You can make the screen lock automatically whenever the user is idle for some amount of time. This is useful if users may leave their computers unattended in public or unsecure locations.
Activar a pantalla de bloqueo automática
-
Cree o perfíl user que contén as seguintes liñas:
/etc/dconf/profile/user
user-db:user system-db:locallocal é o nome dunha base de datos dconf.
Create the directory /etc/dconf/db/local.d/ if it does not already exist.
-
Create the key file /etc/dconf/db/local.d/00-screensaver to provide information for the local database.
/etc/dconf/db/local.d/00-screensaver
# Specify the dconf path [org/gnome/desktop/session] # Number of seconds of inactivity before the screen goes blank # Set to 0 seconds if you want to deactivate the screensaver. idle-delay=uint32 180 # Specify the dconf path [org/gnome/desktop/screensaver] # Number of seconds after the screen is blank before locking the screen lock-delay=uint32 0You must include the uint32 along with the integer key values as shown.
-
To prevent the user from overriding these settings, create the file /etc/dconf/db/local.d/locks/screensaver with the following content:
/etc/dconf/db/local.d/locks/screensaver
# Lock desktop screensaver settings /org/gnome/desktop/session/idle-delay /org/gnome/desktop/screensaver/lock-delay -
Actualizar a base de datos do sistema:
# dconf update Os usuarios deben pechar a sesión e iniciala de novo para que a configuración a nivel de sistema se aplique.