I found some differences between running
clicking "Suspend" menu item in LXDE on Ubuntu 16.04
In both cases I can wake up Ubuntu by pushing the power button on my laptop, but in the way by "Suspend" menu item in LXDE, I have to provide my password to unlock the screen, while in the way by
pm-suspend-hybrid), I don't need to.
According to this question How do I run commands on suspend/return from suspend? | Super User, scripts under
/etc/pm/sleep.d/are supposed to be executed upon suspension/hibernation and resuming/thawing. But it is true only when I run
pm-suspend-hybrid), and false when I click "Suspend" menu item in LXDE.
I used to use Gnome, and I remember it was the same as in LXDE, except Gnome might have hibernate option besides suspend.
I wonder why there are the differences between suspension by the DEs and by pm-utils?
pm-suspend be used in a way so that resume requires password to unlock the screen?
Can "suspend" menu item in LXDE be used in a way so that the scripts in
/etc/pm/sleep.d/ are executed upon suspension/hibernation and resuming/thawing?