If you're using Wayland then the issue is bug 1740771 (https://gitlab.gnome.org/GNOME/mutter/-/issues/20)
** Bug watch added: gitlab.gnome.org/GNOME/mutter/-/issues #20 https://gitlab.gnome.org/GNOME/mutter/-/issues/20 ** Changed in: gnome-session (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/2015743 Title: Default Ubuntu (gnome) desktop doesn't follow systemd-inhibit Status in gnome-session package in Ubuntu: Incomplete Bug description: Steps to reproduce: (1) Open terminal (2) Run command systemd-inhibit --what=idle:sleep --mode=block sleep 1h (3) Wait Expected results: The screensaver or system sleep (S3) shouldn't activate within an hour. Actual results: Screensaver activates after the default delay. ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: gnome-session (not installed) ProcVersionSignature: Ubuntu 5.13.0-30.33~20.04.1-generic 5.13.19 Uname: Linux 5.13.0-30-generic x86_64 ApportVersion: 2.20.11-0ubuntu27.24 Architecture: amd64 CasperMD5CheckResult: skip CurrentDesktop: ubuntu:GNOME Date: Mon Apr 10 12:55:12 2023 InstallationDate: Installed on 2022-03-25 (381 days ago) InstallationMedia: Ubuntu 20.04.4 LTS "Focal Fossa" - Release amd64 (20220223) SourcePackage: gnome-session UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/2015743/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp