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?
chillzone
(Rick The OldFart And **Private Tester**)
2
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.
also tried xrandr --output HDMI-1-0 --left-of eDP-1 but same thing happends.
chillzone
(Rick The OldFart And **Private Tester**)
5
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
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.
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.
chillzone
(Rick The OldFart And **Private Tester**)
12
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.