You are not logged in.

#1 2020-10-01 19:23:10

null_and_void
Member
Registered: 2020-01-22
Posts: 3

xautolock fails after turning off display or changing displays

I use xautolock like this in my .xinitrc: xautolock -time 15 -locker "physlock -m"

I also often use xautolock -locknow to lock when I leave my workstation

When I turn my monitor off and back on, or turn on a second display, xautolock -locknow fails
"could not locate a running xautolock"

but if I check ps command, xautolock is clearly still running. I can fix it by killing xautolock and relaunching.

Any thoughts?

Offline

#2 2021-01-22 18:43:44

null_and_void
Member
Registered: 2020-01-22
Posts: 3

Re: xautolock fails after turning off display or changing displays

No idea what the problem is, but I fixed it by changing my sxhkd hotkey to run a .sh script instead:

kilall xautolock
xautolock -time 15 -locker "physlock -m"
xautolock -locknow

So basically I just restart xautolock every time I lock my screen.

Offline

Board footer

Powered by FluxBB