You are not logged in.

#1 2021-12-16 17:21:56

RaZorr
Member
Registered: 2021-12-02
Posts: 42

[SOLVED] xscreensaver with another locker

I am using betterlockscreen as my screen locker.

I would also like use xscreensaver as screensaver alongwith it for autolocking.

I would like the screensaver to show after 5 mins of inactivity and lockscreen after next 5 mins. The corresponding commands are :

xscreensaver-command -activate  # For screensaver
betterlockscreen -l --blur 0.0  # For screen lock

From this , Session_lock#DPMS section, I am using these sets of commands :

xset s on
xset s 180 120
xss-lock -n 'xscreensaver-command -activate' -- betterlockscreen -l --blur 0.0 &

I get the error :

Failed to set screensaver attributes; is another one running?

I tried running

 xscreensaver & 

and repeating but got this same error.

Is my approach incorrect ? What is the correct way to achieve this (Show screensaver after 5 mins of inactivity and lockscreen after next 5 mins) ?

Last edited by RaZorr (2022-08-30 05:06:31)

Offline

#2 2021-12-16 17:53:48

RaZorr
Member
Registered: 2021-12-02
Posts: 42

Re: [SOLVED] xscreensaver with another locker

I managed to get rid of the error : Failed to set screensaver attributes; is another one running? : by killing xss-lock which was already running in the background through htop.

However, the command :

xscreensaver &> .xscreensaver.log &
xset s 60 60    # Lower time ( 60s each ) for testing purposes
xss-lock -n 'xscreensaver-command -activate' -- betterlockscreen -l --blur 0.0 &

is still not running.

The individual commands are running without any issues however.

Offline

#3 2021-12-17 08:52:54

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,154

Re: [SOLVED] xscreensaver with another locker

You cannot run two screensavers at the same time.
You could try to link xss-lock to xautolock and abuse the notifier there to run an xscreensaver hack (ie the fancy show)
You'll have to invoke the latter w/ a script in order to to activate and fullscreen the window.

That being said: you can also just use xautolock this way and skip xss-lock.

Offline

#4 2021-12-17 12:34:44

RaZorr
Member
Registered: 2021-12-02
Posts: 42

Re: [SOLVED] xscreensaver with another locker

seth wrote:

You could try to link xss-lock to xautolock and abuse the notifier there to run an xscreensaver hack (ie the fancy show)
You'll have to invoke the latter w/ a script in order to to activate and fullscreen the window.

This seems like a possible solution. Let me try out different combinations and then I'll get back.

Offline

Board footer

Powered by FluxBB