I am running Ubuntu 22.04 with GNOME 42.9 as desktop environment.There is currently no automatic screen lock (I let the computer many hours at home and the screen never locked itself). How can I set the time to screen lock?
Additionally I had a look at the following question:Screen lock not working in Ubuntu 22.04
The command xdg-screensaver lock
did NOT lock the screen and the command gsettings get org.gnome.desktop.lockdown disable-lock-screen
returned false
Here are some screenshot of relevant settings: