You are not logged in.

#1 2024-01-06 00:30:48

Toad39
Member
Registered: 2020-07-06
Posts: 60

Make xfce4-screensaver lock on a specific display

Hello,

I am using xfce4-screensaver with xflock4. However, when it locks, it often locks on my vertical monitor, I keep off most of the time so I don't see the lock screen unless I turn the monitor on (for some reason, the monitor is still sometimes detected by operating systems even if it's off).

How do I set xfce4-screensaver/xflock4 to always lock on the display I want?

Thanks

Offline

#2 2024-01-06 09:44:23

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

Re: Make xfce4-screensaver lock on a specific display

xrandr -q

Is the vertical the primary one ?

Offline

#3 2024-01-07 07:04:55

Toad39
Member
Registered: 2020-07-06
Posts: 60

Re: Make xfce4-screensaver lock on a specific display

Screen 0: minimum 8 x 8, current 3000 x 1920, maximum 32767 x 32767
DP1 connected 1080x1920+1920+0 right (normal left inverted right x axis y axis) 530mm x 300mm
   1920x1080     60.00*+  60.00    50.00    59.94    24.00    23.98  
   1920x1080i    60.00    50.00    59.94  
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    60.00    59.94  
   720x400       70.08  
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 connected primary 1920x1080+0+621 (normal left inverted right x axis y axis) 530mm x 300mm
   1920x1080     60.00*+  50.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x576i      50.00  
   720x480       60.00    59.94  
   720x480i      60.00    59.94  
   640x480       75.00    60.00    59.94  
   720x400       70.08  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

DP1 is my vertical monitor. HDMI2 is my horizontal (and primary) monitor.

Offline

#4 2024-01-07 08:10:47

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

Re: Make xfce4-screensaver lock on a specific display

It's also the one on the left, what happens if you don't vertically center it but put it at +0+0 ?
(Just trying to understand the logics the screenlocker applies here, you'll probably have to file an upstream bug about this. Or use xscreensaver or i3lock etc)

Offline

#5 2024-01-07 16:18:59

Toad39
Member
Registered: 2020-07-06
Posts: 60

Re: Make xfce4-screensaver lock on a specific display

However the vertical monitor is physically on the right, and set to be on the right in xfce display settings.

https://i.imgur.com/v3QW6cn.png

Not centering the monitors doesn't work.

Perhaps the underlying problem is that the vertical monitor is detected even though it's left off (though this happens on Windows too, so it may be a hardware issue). Should I make a new thread for that, or would we troubleshoot it here?

moderator edit -- replaced oversized image with link.
Pasting pictures and code

Last edited by 2ManyDogs (2024-01-07 16:59:29)

Offline

#6 2024-01-07 16:56:10

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

Re: Make xfce4-screensaver lock on a specific display

You can "xrandr --output DP1 --off", the power state of the output doesn't directly matter itr.

Interestingly xfce enumerates the vertical output as "1"… (for whatever reason, but likely the alphabet…)

Offline

#7 2024-01-15 17:16:53

Toad39
Member
Registered: 2020-07-06
Posts: 60

Re: Make xfce4-screensaver lock on a specific display

I still can't get this to reproduce consistently, so I'm giving up for now. I swapped the monitors (so DP1 is now my primary, horizontal monitor and HDMI2 is my vertical one) and it still happens, but seemingly less.

Offline

Board footer

Powered by FluxBB