You are not logged in.

#1 2014-01-09 07:47:43

Rexilion
Member
Registered: 2013-12-23
Posts: 784

xfce4 will not lock screen after resume from hibernate/suspend

There have been a lot previous threads about this issue.

I cannot fix it. Furthermore, it's somewhat confusing.

Since this is a single user system (literally), I can get away with a systemd powered hack:

[Unit]
Description=Lock screen before switching power state
Before=sleep.target

[Service]
Type=oneshot
ExecStart=/usr/bin/sudo -u gebruiker xscreensaver-command -lock

[Install]
WantedBy=sleep.target

Is this a bug? Anyone who can report this functionality works?. I have:

  • xflock4 installed and working

  • xscreensaver installed and working

  • systemd working properly

  • no errors in ~/.xsession-errors

  • both config items ticked in

  • - xfce4-session

  • - xfce4-power-manager

Anyone?


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#2 2014-01-09 11:53:50

toz
Member
Registered: 2011-10-28
Posts: 513

Re: xfce4 will not lock screen after resume from hibernate/suspend

Anyone who can report this functionality works?

Using the first option from the xscreensaver wiki article:

[Unit]
Description=Lock X session using xscreensaver
Before=sleep.target

[Service]
Type=oneshot
ExecStart=/usr/bin/xuserrun /usr/bin/xscreensaver-command -lock

[Install]
WantedBy=sleep.target

...in conjunction with:

both config items ticked in
- xfce4-session
- xfce4-power-manager

...and fade to and fade from disabled, works here for me.

Offline

#3 2014-01-09 12:26:55

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: xfce4 will not lock screen after resume from hibernate/suspend

Thanks for your effort. But I was more looking for a way of doing this without SystemD as this can be handled nicely by XFCE itself. I have seen that on Ubuntu and Gentoo.

Something is wrong with the package configuration I guess.


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

Board footer

Powered by FluxBB