On 07/07/15 16:41, Michael Biebl wrote: > Hi > > Am 07.07.2015 um 15:28 schrieb Daniel Pocock: >> For those who have root or sudo, this is a workaround: >> >> a) run the command >> >> sleep 10 ; pm-hibernate >> >> b) before the 10 second sleep finishes, go to the status menu and lock >> the screen >> >> If you don't do step (b) then the machine will not prompt for a password >> when it wakes up again >> >> The pm-hibernate command is in the pm-utils package. > Please avoid the usage of pm-utils. It's no longer actively developed > and doesn't properly integrate with modern desktops using logind. > > A much better workaround is > systemctl hibernate > > This will trigger logind and make sure the screen is locked and > everything which installed a logind inhibitor is signalled. > > You could even bind that command to a keyboard shortcut.
I just tried "systemctl hibernate" and it does hibernate but it does not lock the screen. So I think that to use that it is necessary to do "sleep 10 ; systemctl hibernate" and then click the lock screen control before it starts to hibernate. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org