Just installed EOS today and now when I boot up my second monitor does not connect until after I log in. The monitor will turn on when the login appears on the primary but reports that it is not connected to a source. Once I log in it works fine and I have not had any issue. I can log out and it is still connected. The primary is plugged using display port and the secondary (problem child) is using HDMI. I have a 7800xt for a GPU that both monitors are plugged into. I did not have this issue Fedora and I’m on the current mesa drivers. I know it’s not a big issue since it does work when I need it to, but it is kind of annoying.
What’s inside your SDDM config file?
cat /usr/share/sddm/scripts/Xsetup
When logged into an X11 session, you could also run this to get the name of your displays, for reference purposes:
xrandr | grep connected
Also, let us know what desktop environment you’re using (KDE, Gnome, etc), as that may be relevant.
#!/bin/sh
# Xsetup - run as root before the login dialog appears
That is all that’s in there. I haven’t logged into an X11 session on here.
X11 and Wayland report display names differently. But as SDDM is by default X11 based, you need to log into an X11 session to have xrandr
correctly report the display names for SDDM use.
So if you can, under X11, run:
xrandr | grep connected
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
DisplayPort-1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
HDMI-A-0 connected 1920x1080+2560+0 (normal left inverted right x axis y axis) 509mm x 286mm
HDMI-A-1 disconnected (normal left inverted right x axis y axis)
HDMI-A-1-2 disconnected (normal left inverted right x axis y axis)
DisplayPort-1-2 disconnected (normal left inverted right x axis y axis)
DisplayPort-1-3 disconnected (normal left inverted right x axis y axis)
DisplayPort-1-4 disconnected (normal left inverted right x axis y axis)
That’s the output. Also I am on KDE.
Edit: And this is logged in with X11.
That’s fortunate, because SDDM may have been irrelevant otherwise
You might try putting this into /usr/share/sddm/scripts/Xsetup
:
sudo nano /usr/share/sddm/scripts/Xsetup
#!/bin/sh
# Xsetup - run as root before the login dialog appears
xrandr --output DisplayPort-1 --auto --primary
xrandr --output HDMI-A-0 --auto
Then CTRL + O
to save, and CTRL + X
to exit. Then try restarting?
So the good new is that it fixed that. The bad news is I now get an overlay on my primary monitor in the top left that looks to be 1080 (it’s a 1440 monitor) of the login screen.
I have a similar setup with two different resolution/refresh monitors, and --auto
had been sufficient. In this case though, perhaps manually setting the resolution on your primary display is necessary?
#!/bin/sh
# Xsetup - run as root before the login dialog appears
xrandr --output DisplayPort-1 --mode 2560x1440 --primary
xrandr --output HDMI-A-0 --auto
Sadly that did not change anything, still the double screen on the primary. I also just tried manually setting the secondary display to no avail.
Also thank you for helping.
I’m a bit unsure about why it’s doubling up like that, but maybe let’s try going the other way and letting xrandr
figure it out how to handle the resolutions:
#!/bin/sh
# Xsetup - run as root before the login dialog appears
xrandr --output DisplayPort-1 --primary
xrandr --output HDMI-A-0
Reverts it back to the original issue.
Ok, plan B perhaps.
You might comment out those settings in /usr/share/sddm/scripts/Xsetup
. Then logging into KDE Plasma with a Wayland session, and go to “Login Screen (SDDM)” settings.
Hit the “Apply Plasma Settings…” button, then “Apply” in the pop-up.
Still the original issue.
So upon further investigating it looks like the 1080 display is a mirror of the second display. The cursor moves on both. I can also still change between wayland and x11 on the primary in the 1440 section. I do not know if that actually changes anything but it is more information.
edit: Also if I set the secondary (HDMI) to primary (DP),
#!/bin/sh
# Xsetup - run as root before the login dialog appears
xrandr --output DisplayPort-1 --auto
xrandr --output HDMI-A-0 --auto --primary
the opposite happens and the secondary (HDMI) scales up to attempt 1440.
So I was able to mess with xrandr
enough and was able to figure it out. In /usr/share/sddm/scripts/Xsetup
I added an orientation to the secondary.
#!/bin/sh
# Xsetup - run as root before the login dialog appears
xrandr --output DisplayPort-1 --auto --primary
xrandr --output HDMI-A-0 --auto --left-of DisplayPort-1
Now both monitors show up and at the correct resolution.
The only think now is when typing my password it wants to default to my secondary monitor. That is a very minor issue to me and something to worry about some time down the line.
Thank you @Bink for the help. I did not know anything about xrandr
prior to this.
Glad to hear you got it sorted out. I’d forgotten about the positioning properties, but that was a good catch
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.