You are not logged in.

#1 2020-09-18 17:18:36

leminhman0312
Banned
Registered: 2020-07-12
Posts: 24

Systemctl hibernate flashes desktop on hibernating and on resume

.

Last edited by leminhman0312 (2024-09-22 15:43:06)

Offline

#2 2020-09-18 18:26:59

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: Systemctl hibernate flashes desktop on hibernating and on resume

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 --hibernate

When 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

#3 2022-02-21 12:49:37

Schura
Member
Registered: 2022-02-21
Posts: 7

Re: Systemctl hibernate flashes desktop on hibernating and on resume

Hey there. Any solution for the 1st problem found yet? Thanks in advance

Offline

#4 2022-02-21 16:19:54

Ferdinand
Member
From: Norway
Registered: 2020-01-02
Posts: 338

Re: Systemctl hibernate flashes desktop on hibernating and on resume

Didn't the solution by @Ropid work for you?
What did you try, and what happened?

Offline

#5 2022-02-21 18:40:12

Schura
Member
Registered: 2022-02-21
Posts: 7

Re: Systemctl hibernate flashes desktop on hibernating and on resume

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

#6 2022-02-22 08:42:38

Ferdinand
Member
From: Norway
Registered: 2020-01-02
Posts: 338

Re: Systemctl hibernate flashes desktop on hibernating and on resume

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... tongue

I haven't tried this, but it seems to me worth a shot, maybe also change the

xset +dpms dpms 5 5 5

to

xset +dpms dpms force off

to make it turn off the monitor immediately?

Offline

#7 2022-02-22 10:06:46

Schura
Member
Registered: 2022-02-21
Posts: 7

Re: Systemctl hibernate flashes desktop on hibernating and on resume

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

Board footer

Powered by FluxBB