On Sun, Feb 18, 2018 at 07:21:52PM +0100, Josip Rodin wrote: > Apparently there's a whole little cottage industry of ways people have been > trying to use to get this working, e.g.: > > * a xss-lock package that subscribes to Linux power events more > natively > * a pm-utils package which provides a hooking mechanism in > /usr/lib/pm-utils/sleep.d/ > > The xscreensaver package should probably document some of these options, > provide examples, and add some package relationships to indicate what should > be done... laptops suspending isn't really a niche use case these days.
Fun fact: the latter method I found is already obsolete... the systemd way is to put something in /lib/systemd/system-sleep/, yet the systemd-sleep manual page says: Note that scripts or binaries dropped in /lib/systemd/system-sleep/ are intended for local use only and should be considered hacks. If applications want to be notified of system suspend/hibernation and resume, there are much nicer interfaces available. It proceeds not to actually mention any one of those nicer interfaces. -- 2. That which causes joy or happiness.