You are not logged in.
.
Last edited by leminhman0312 (2024-09-22 15:43:06)
Offline
What desktop environment are you using? Try to find out if there's a way to activate your desktop's hibernate feature with a special command. For example in XFCE the command would be this here:
xfce4-session-logout --hibernateWhen using the desktop's tool instead of systemctl, the desktop will hopefully take care of doing things like activating the lock screen.
If you use a simple window manager instead of a full desktop environment, then instead of running a "systemctl hibernate" command line, write a command line that first activates whatever lock-screen you are using and only then runs "systemctl hibernate" as a second step.
Last edited by Ropid (2020-09-18 18:27:40)
Offline
Hey there. Any solution for the 1st problem found yet? Thanks in advance
Offline
Didn't the solution by @Ropid work for you?
What did you try, and what happened?
Offline
I am using just i3wm without DE. My display goes dark and then flashes for 2-3 seconds just like described above. While blinking for a few seconds, it shows my lockscreen, and only after that my laptop goes to hibernation. Here is how I launch it
i3lock; systemctl hibernate;Offline
Hm.. so what @Ropid said obviously didn't help. I'm not sure if I can help either, but apart from checking the wiki, wich I'm sure you did already, I found what may be a way to avoid, rather than solve the problem: The i3lock man page describes a small script to enable DPMS to turn off the monitor when locking; if the monitor turns of it can't flicker, maybe... ![]()
I haven't tried this, but it seems to me worth a shot, maybe also change the
xset +dpms dpms 5 5 5to
xset +dpms dpms force offto make it turn off the monitor immediately?
Offline
Oh, thanks, that does help with the flickering indeed. Though after waking up from hibernation the display stays dark until I press the keys to enter the password. It is still a good workaround though, haven't thought about it! :^)
Offline