You are not logged in.
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
xrandr -qIs the vertical the primary one ?
Offline
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
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
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
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
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