GNOME Bugzilla – Bug 646238
Lock only in response to upower
Last modified: 2020-11-06 20:13:54 UTC
Created attachment 184698 [details] [review] Lock screen when upower signals Currently, g-p-m locks the screen when it triggers a suspend or hibernate, as appropriate. But sleeps initiated outside of g-p-m do not have correct locking, because g-p-m doesn't notice. I would argue that it should lock in reply to the Sleeping signal from upower, so that it will catch all suspensions. There's a downstream Ubuntu bug about this that I will link. Now, the Sleeping signal does not currently have enough information to tell g-p-m whether it is a suspend or hibernate. I filed https://bugs.freedesktop.org/show_bug.cgi?id=35797 about that. Assuming that patch is accepted, or something like it, here's a patch against g-p-m by Phillip Susi to respond to the signal.
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all old bug reports in Bugzilla which have not seen updates for many years. If you can still reproduce this issue in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/gnome-power-manager/-/issues/ Thank you for reporting this issue and we are sorry it could not be fixed.