You are not logged in.

#1 2022-06-15 07:50:17

Asbestbrezel
Member
Registered: 2014-07-27
Posts: 67

xss-lock blocks screen blanking

Hello Guys,

i have a strange problem here, trying to get an automated screenlock working.
I want to use xss-lock to automatically lock the screen, if the screensaver kicks in.

But screen blanking does not work, if i activate xss-lock.
So, for demonstration purposes , i can switch off the screen by commanding xset s activate, or if triggered by an key event sleep 1 && xset s activate to wait for key release.
So, if i start xss-lock now. It wont work anymore. The screen does not go to black. And it doesn't matter what locker i use. I tried slock, xsecurelock, i3lock, betterlockscreen.
Its the same problem if i just wait for screen blanking timer.

It does work with xset dpms force off though. But then i got that bug, that after waking up the screen you can shortly see the screen-content before the lockscreen appears.

So my guess is, that it has something to do, with the problem that xset s activate does not work, so i want to solve that first.

Any ideas?

xset -q:

Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  10    cycle:  10
Colors:
  default colormap:  0x22    BlackPixel:  0x0    WhitePixel:  0xffffff
Font Path:
  /usr/share/fonts/TTF,built-ins
DPMS (Energy Star):
  Standby: 600    Suspend: 600    Off: 600
  DPMS is Enabled
  Monitor is On

Offline

#2 2022-10-16 07:26:52

pc00per
Member
Registered: 2022-05-22
Posts: 14

Re: xss-lock blocks screen blanking

Try xautolock

xautolock -time 15 -locker 'systemctl suspend' -notify 600 -notifier 'i3lock | xset dpms force off' &

Locks after 5 minutes of inactivity, including screen blank. Then sleeps 10 minutes after that.

Last edited by pc00per (2022-10-16 12:57:31)

Offline

Board footer

Powered by FluxBB