Can't rearrange monitor on xfce

Hi

I have a Dell Precision 7680 with RTX A1000 running Fedora 44 XFCE. When I plug in a second monitor it default to the right of my laptop screen. If I try to rearrange it so it appears on the left, I get logged out and have to log inn again. When logged in the second screen is back on the right side of the laptop monitor. I also can’t set the second monitor as default. How can I fix it?

Please include this:

 xrandr --query

Also have you tried arandr?

Available Packages
Name         : arandr
Version      : 0.1.11
Release      : 19.fc45
Architecture : noarch
Size         : 140 k
Source       : arandr-0.1.11-19.fc45.src.rpm
Repository   : fedora
Summary      : Simple GTK+ XRandR GUI
URL          : https://christian.amsuess.com/tools/arandr/
License      : GPL-3.0-only
Description  : ARandR is designed to provide a simple visual front end for XRandR 1.2/1.3.
             : Relative monitor positions are shown graphically and can be changed in a
             : drag-and-drop way.


Hi

Tried arandr and same thing happens. I get logged out and second screen is back at the right side of the laptop monitor.

xrandr --query
Screen 0: minimum 320 x 200, current 4480 x 1440, maximum 16384 x 16384
eDP-1 connected primary 1920x1200+0+155 (normal left inverted right x axis y axis) 345mm x 215mm
1920x1200 60.00*+ 59.88 59.95 48.00
1920x1080 60.01 59.97 59.96 59.93
1600x1200 60.00
1680x1050 59.95 59.88
1400x1050 59.98
1600x900 59.99 59.94 59.95 59.82
1280x1024 60.02
1400x900 59.96 59.88
1280x960 60.00
1440x810 60.00 59.97
1368x768 59.88 59.85
1280x800 59.99 59.97 59.81 59.91
1280x720 60.00 59.99 59.86 59.74
1024x768 60.04 60.00
960x720 60.00
928x696 60.05
896x672 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
960x540 59.96 59.99 59.63 59.82
800x600 60.00 60.32 56.25
840x525 60.01 59.88
864x486 59.92 59.57
700x525 59.98
800x450 59.95 59.82
640x512 60.02
700x450 59.96 59.88
640x480 60.00 59.94
720x405 59.51 58.99
684x384 59.88 59.85
640x400 59.88 59.98
640x360 59.86 59.83 59.84 59.32
512x384 60.00
512x288 60.00 59.92
480x270 59.63 59.82
400x300 60.32 56.34
432x243 59.92 59.57
320x240 60.05
360x202 59.51 59.13
320x180 59.84 59.32
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-1-0 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-3 disconnected (normal left inverted right x axis y axis)
HDMI-1-0 connected 2560x1440+1920+0 (normal left inverted right x axis y axis) 553mm x 311mm
2560x1440 59.95*+
2048x1152 60.00
1920x1200 59.88
1920x1080 60.00 59.94 50.00 29.97 25.00 23.98
1680x1050 59.95
1600x1200 60.00
1280x1024 75.02 60.02
1280x720 60.00 59.94 50.00
1200x960 60.00
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 59.94
640x480 75.00 59.94 59.93
1920x1200 (0x49) 193.250MHz -HSync +VSync
h: width 1920 start 2056 end 2256 total 2592 skew 0 clock 74.56KHz
v: height 1200 start 1203 end 1209 total 1245 clock 59.88Hz
1680x1050 (0x51) 146.250MHz -HSync +VSync
h: width 1680 start 1784 end 1960 total 2240 skew 0 clock 65.29KHz
v: height 1050 start 1053 end 1059 total 1089 clock 59.95Hz
1600x1200 (0x50) 162.000MHz +HSync +VSync
h: width 1600 start 1664 end 1856 total 2160 skew 0 clock 75.00KHz
v: height 1200 start 1201 end 1204 total 1250 clock 60.00Hz
1280x1024 (0x58) 108.000MHz +HSync +VSync
h: width 1280 start 1328 end 1440 total 1688 skew 0 clock 63.98KHz
v: height 1024 start 1025 end 1028 total 1066 clock 60.02Hz
1024x768 (0x69) 65.000MHz -HSync -VSync
h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.36KHz
v: height 768 start 771 end 777 total 806 clock 60.00Hz
800x600 (0x78) 40.000MHz +HSync +VSync
h: width 800 start 840 end 968 total 1056 skew 0 clock 37.88KHz
v: height 600 start 601 end 605 total 628 clock 60.32Hz
640x480 (0x85) 25.175MHz -HSync -VSync
h: width 640 start 656 end 752 total 800 skew 0 clock 31.47KHz
v: height 480 start 490 end 492 total 525 clock 59.94Hz

also tried xrandr --output HDMI-1-0 --left-of eDP-1 but same thing happends.

Thanks.
I wonder If Xfce keeps resetting your layout, disable the automatic detection in Settings > Display by unchecking “Configure new displays when connected” and managing layout manually via scripts.

I remember this in Xubuntu and that seemed to fix it on my end.

Hi @hinmannen ,
arandr helps you to arrange your monitor in GUI. Apply and save the script
with the xrandr line.
In my case the primary monitor is HDMI-A-0 on the left side of the laptop eDP.
cat .screenlayout/monitors.sh

#!/bin/sh
xrandr --output eDP --mode 1920x1200 --pos 1600x0 --rotate normal  \\
       --output HDMI-A-0 --primary --mode 1600x900 --pos 0x0 --rotate normal \\
       --output DisplayPort-0 --off --output DisplayPort-1 --off --output DisplayPort-2 --off --output DisplayPort-3 --off --output DisplayPort-4 --off

Make it executable by
chmod +x .screenlayout/monitors.sh
and add to Session Startup.
You need to use the primary switch to define your main monitor.

Thanks for the help but is it not possible to get it to work properly?

I have another laptop, lenovo P15s with Nvidia T500 , and rearranging monitors works perfectly.

Let’s divide the problem in two.
1.Were you able to move/rearrange screens in arandr?
2.Does this xrand line below do its job?

#!/bin/sh
xrandr --output eDP-1 --mode 1920x1200 --pos 2560x0 --rotate normal --output HDMI-1-0 --primary --mode  2560x1440 --pos 0x0 --rotate normal

@yaslanan

  1. No. Logs me out and second screen is at right side after logging in.
  2. Same as 1

Arandr is only to facilitate producing a xrandr script. (monitors.sh)
Show us that script. Can you put it into Session/Startup?
I’d like to see a print screen of Startup.
If it is OK until reboot and you can run monitors.sh manually then the script is missing from the startup.

Here is the script from arandr

#!/bin/sh
xrandr --output eDP-1 --primary --mode 1920x1200 --pos 2652x1674 --rotate normal --output DP-1 --off --output HDMI-1 --off --output DP-2 --off --output DP-3 --off --output DP-1-0 --off --output DP-1-1 --off --output DP-1-2 --off --output DP-1-3 --off --output HDMI-1-0 --mode 2560x1440 --pos 92x1594 --rotate normal

Checked that is was allowed to run as a program and added it to session and startup. Set it to trigger on log in. Logged out of the pc and in again to see what happened but its the same as before. The pc loggs out and I’m back in the log on screen. Had to dissconnect the second monitor to be able to log inn again.

Thought so, >>The script fails because XFCE ignores shebangs in .xinitrc or .xprofile and because running xrandr before the display manager initializes causes output detection failures.

Additionally, hardcoded positions often break when the system detects monitors in a different order or resolution at boot.

Create a new entry with the command /usr/bin/bash /path/to/your/script.sh.

In the session startup?

Try it with a timed delay after login, like 10 to 20 seconds.

Same… Logs out…

Please try this script:

#!/bin/bash
# Wait for display server to initialize
sleep 3

# Optional: Detect active outputs dynamically to avoid hardcoding
# For now, ensure these names match exactly what 'xrandr' reports

xrandr \
  --output eDP-1 --mode 1920x1200 --pos 0x0 --rotate normal \
  --output HDMI-1 --mode 2560x1440 --pos 1920x0 --rotate normal \
  --output DP-1 --off \
  --output DP-2 --off \
  --output DP-3 --off

# Set primary monitor (adjust if needed)
xrandr --output eDP-1 --primary

Nothing happened. Tried to run it and add it in startup session but nothing.

Something is amiss here. But lacking information I don’t feel good about any other suggestions.
Thank You for trying. :slight_smile:

Thank you for taking the time to help :slight_smile:

As far as I understand

xrandr \
  --output eDP-1 --mode 1920x1200 --pos 2560x0 --rotate normal \
  --output HDMI-1-0 --mode 2560x1440 --pos 0x0 --rotate normal --primary


Do not let you be mislead by the Panel 2 properties i.e. tick Span monitors if needed.