different behaviour between pm_suspend and gnome-tweak-tool->power->suspend in F21

Samuel Sieb samuel at sieb.net
Sat Dec 6 08:06:49 UTC 2014


On 12/05/2014 11:59 PM, Adam Williamson wrote:
> On Fri, 2014-12-05 at 10:29 -0800, Samuel Sieb wrote:
>> pm-suspend is much lower level and skips all the management stack.
>
> Most significantly, it's lower level than GNOME, so GNOME doesn't get
> any chance to handle the suspend. When you suspend from GNOME itself,
> obviously it's able to stick in the lock screen handling (I think what
> it actually does is lock the screen *before* suspending, so it's locked
> when you resume).
>
Yes, if you try the command I showed (systemd-inhibit --list), you find 
an entry like this:

      Who: samuel (UID 1000/samuel, PID 1684/gnome-settings-)
     What: sleep
      Why: GNOME needs to lock the screen
     Mode: delay



More information about the test mailing list