Ok. I found the solution here.
https://discourse.ubuntubudgie.org/t/lockscreen-not-working-after-
update-to-21-10/5394/16
By adding this to the startup application it seems to work:
#!/bin/bash
if ps ax | grep -v grep | grep gnome-screensaver > /dev/null
then
echo "gnome-screensaver is not running"
echo "starting gnome-screensaver ..."
pkill -9 -f '/usr/bin/gjs
/usr/share/gnome-shell/org.gnome.ScreenSaver'
sleep 3
gnome-screensaver
else
echo "gnome-screensaver already running"
exit
fi
Thank you very much for your time and sorry for the trouble.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1953547
Title:
Screen does not lock when suspended
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1953547/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs