You are not logged in.

#1 2016-04-03 16:08:59

drewma2k
Member
Registered: 2016-04-03
Posts: 2

[SOLVED] Compton causes slock screen locking delay after closing lid.

While using compton and activating slock by command, slock activates immediatly. However, this does not work when using xss-lock to lock the screen when the lid of the laptop is shut and the computer goes to sleep. When opening the lid, the computer wakes from sleep, the desktop is shown for several seconds, then slock activates. Excluding slock from compton by excluding all windows with no name works, but this also exludes dmenu from fading effects. How can I exclude slock only from compton so this delay is not there?

Last edited by drewma2k (2016-04-03 16:59:25)

Offline

#2 2016-04-03 16:44:47

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,475

Re: [SOLVED] Compton causes slock screen locking delay after closing lid.

It looks like there are two processes activating slock leading to double slock activation.

Are you using systemd service to activate slock after sleep? This may lead to double slock activation, 1. after sleep by systemd service  and 2. by xss-lock due to lid close. ( ignore if it doesn't match with your case)

EDIT:

if you have setup your laptop to go into sleep, on lid close , you don't need xss-lock, only resume@.service file should work, https://wiki.archlinux.org/index.php/Po … vice_files

Last edited by Docbroke (2016-04-03 16:47:11)

Offline

#3 2016-04-03 16:59:01

drewma2k
Member
Registered: 2016-04-03
Posts: 2

Re: [SOLVED] Compton causes slock screen locking delay after closing lid.

I've created a suspend@.service as described in the wiki article and slock appears to be behaving correctly. solved.

Offline

Board footer

Powered by FluxBB