Public bug reported:

Suspend is delayed by 30 seconds likely due to GNOME Shell's screen lock
inhibitor not being released properly when lock-delay is set to 0.

Steps to reproduce:

Use Ubuntu 25.04 with GNOME Shell 48, login and start an application
like browser (the issue doesn't reproduce if you attempt suspend
immediately after login).

Trigger suspend via UI or systemctl suspend.

Expected result:
Screen locks and system suspends within a couple of seconds.

Actual result:
System waits exactly 30 seconds before suspending.

gsettings set org.gnome.desktop.screensaver lock-delay 1

causes GNOME to release the inhibitor promptly, and suspend happens
quickly.

An alternative is disabling screen lock (both idle and suspend) in the
security settings in which case suspend also happens quickly.

Conclusion:
This suggests that GNOME Shell registers a delay inhibitor for locking the 
screen, but does not properly release it when lock-delay = 0. Instead, systemd 
has to wait the full 30-second timeout before suspending.

ProblemType: Bug
DistroRelease: Ubuntu 25.04
Package: gnome-shell 48.0-1ubuntu1
ProcVersionSignature: Ubuntu 6.14.0-13.13-generic 6.14.0
Uname: Linux 6.14.0-13-generic x86_64
ApportVersion: 2.32.0-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Thu Apr 10 14:04:35 2025
DisplayManager: gdm3
InstallationDate: Installed on 2025-04-01 (9 days ago)
InstallationMedia: Ubuntu 25.04 "Plucky Puffin" - Daily amd64 (20250331)
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
RelatedPackageVersions: mutter-common 48.1-1ubuntu2
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: gnome-shell (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug plucky wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/2106697

Title:
  Suspend waits 30 seconds

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


-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to