Xubuntu 21.10 is a pretty solid system with a lot going for it. That said, there are a few little things that can make a person scratch their head. One issue that I'm facing is that the desktop (and any open applications) will be shown for almost half a second before the lock screen kicks in when resuming from suspend. There was a bug report filed a few years back with a fix apparently released in 2020. Unfortunately, this problem still persists.
A post on the XFCE forums proposes uses a systemd
hook to pause for a second on resume:
#!/bin/sh
case $1/$2 in
pre/*)
#enter sleep
;;
post/*)
#exit sleep
sleep 1
;;
esac
While this does reduce the amount of time the desktop is visible by a fraction of a second, people with eagle eyes will still be able to read whatever might be displayed on my screen. Changing the sleep
value from 1
to something higher does not resolve the issue.
Is there something else I could do to have the screen blank out before entering sleep so that the first thing a person sees when accessing the notebook is the lock screen?
Hardware:
Lenovo ThinkPad X1 Carbon
CPU: Intel Core i5-7200U
RAM: 16GB
OS:
Xubuntu 21.10
Kernel: 5.13.0-22-generic