When I configure my systemd to lock on lid switch, I do see this debug-
level message:

Oct 12 16:19:45 six systemd-logind[1173]: Inhibitor GNOME Shell (GNOME
needs to lock the screen) pid=2894 uid=1000 mode=delay started.

I am not sure exactly how GNOME handles locking the screen, but maybe
the bug that Daniel pointed out (bug 1857392) is preventing GNOME from
processing an Inhibitor DBus signal and locking the screen in a timely
manner.

** Changed in: systemd (Ubuntu)
       Status: New => Incomplete

** Changed in: systemd (Ubuntu)
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1990742

Title:
  screen not consistently locking when lid is closed

Status in systemd package in Ubuntu:
  Incomplete

Bug description:
  I have GNOME configured to lock the screen when the screen is blanked,
  and to blank the screen when the lid is closed:

  org.gnome.settings-daemon.plugins.power lid-close-battery-action 'blank'
  org.gnome.desktop.screensaver lock-delay uint32 0
  org.gnome.desktop.screensaver lock-enabled true

  This worked fine in Jammy: whenever my screen was unlocked and I
  closed my laptop lid, it locked immediately, i.e., if I immediately
  reopened my lid, the screen was locked.

  After having just upgraded to Kinetic, however, sometimes when I close
  the lid it locks as described above, and sometimes it just... doesn't,
  i.e., when I open the lid again the screen is unlocked and I can just
  keep working.

  I have been unable to determine what the factors are which control
  whether the screen locks when I close the lid.

  There is a moderate security implication here, as it's problematic for
  someone's screen not to lock when they think that it did.

  ProblemType: Bug
  DistroRelease: Ubuntu 22.10
  Package: gnome-shell 43.0-1ubuntu1
  ProcVersionSignature: Ubuntu 5.19.0-15.15-generic 5.19.0
  Uname: Linux 5.19.0-15-generic x86_64
  ApportVersion: 2.23.0-0ubuntu2
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  Date: Sat Sep 24 17:57:37 2022
  DisplayManager: gdm3
  InstallationDate: Installed on 2019-08-16 (1135 days ago)
  InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
  RelatedPackageVersions: mutter-common 43.0-1ubuntu1
  SourcePackage: gnome-shell
  UpgradeStatus: Upgraded to kinetic on 2022-09-24 (0 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1990742/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to