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 Desktop
Packages, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1953547

Title:
  Screen does not lock when suspended

Status in gnome-shell package in Ubuntu:
  New

Bug description:
  Since I updated from ubuntu 21.04 to ubuntu 21.10 the suspend still works but 
there is no password required anymore when the laptop awakes out of suspend. I 
did not change any settings and I still see "lock screen on suspend" = YES in 
the settings.
  --- 
  ProblemType: Bug
  ApportVersion: 2.20.11-0ubuntu71
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: Budgie:GNOME
  DisplayManager: gdm3
  DistroRelease: Ubuntu 21.10
  InstallationDate: Installed on 2021-09-29 (69 days ago)
  InstallationMedia: Ubuntu-Budgie 21.04 "Hirsute Hippo" - Release amd64 
(20210420)
  Package: gnome-shell 40.5-1ubuntu2
  PackageArchitecture: amd64
  ProcVersionSignature: Ubuntu 5.13.0-22.22-generic 5.13.19
  RelatedPackageVersions: mutter-common 40.5-1ubuntu3~21.10.1
  Tags:  impish
  Uname: Linux 5.13.0-22-generic x86_64
  UpgradeStatus: Upgraded to impish on 2021-12-06 (1 days ago)
  UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
  _MarkForUpload: True

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1953547/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to