I’m using EndeavourOS (Arch btw) with KDE plasma 6.x (Wayland), SDDM, and systemd as boot manager. I have 2 displays, one HDMI-A-1 (1080p) and one on DP-1 (Ultrawide).
When I boot the password entry cursor defaults to the HDMI display, but I want it to default to the DP-1 display.
I’ve tried a few things, mostly suggestions from ChatGPT. But nothing has worked. The weird thing is at boot the boot menu and boot messages all appear on DP-1, and it is set as primary in KDE and that works fine as well. It is just the logon prompt that defaults to the wrong display.
Things I’ve tried so far.
- Adding video=DP-1:e to the options in the systemd entry - (No effect)
- Edited /etc/sddm.conf.d/wayland.conf to run a script that did the following: kwriteconfig6 --file startkderc --group General --key PrimaryScreen DP-1 (didn’t fix it, actually broke the logon process so had to remove it)
I’m just not familiar enough with how SDDM works so hoping for some good pointers to provide the answer or point me in the right direction.
I have the same setup (EndeavourOS / KDE plasma 6 / Wayland / SDDM / 2 monitors) and had the same problem. The worst thing is that typing the password in the “active” login prompt (the one with the focus) wasn’t working anyway, so I had to use the mouse to give focus to the other monitor first, and then type the password. Absolutely annoying.
The solution I found (sorry I forgot where, some forum) is to disable all the detected monitors except one in
/usr/share/sddm/scripts/Xsetup
. Basically your secondary monitor will not get any signal until you type the password and log in. At that point any other monitor will be reactivated automatically.This is my Xsetup:
#!/bin/sh xrandr --output DisplayPort-0 --mode 2560x1440 --pos 0x0 --rotate normal xrandr --output DisplayPort-1 --off xrandr --output HDMI-A-0 --off xrandr --output HDMI-A-1 --off
IMPORTANT
Check out the output of
xrandr
in Wayland on my system:$ xrandr | grep ' connected' DP-1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 590mm x 334mm DP-2 connected 2560x1440+2560+0 (normal left inverted right x axis y axis) 590mm x 334mm
DP-1 and DP-2 are the names used by Wayland, but they don’t work in Xsetup because X11 calls the ports DisplayPort-0 and DisplayPort-1 - and I don’t remember if HDMI ports are also called differently.
So you need to log in X11 first, get the names with xrandr, create or update Xsetup and reboot.
Interesting. I never solved the issue so I’ll give this a go.
In theory it should be on all monitors. At least on mine, all 3 monitors display the login screen and any of them can be used to input the password.
You can edit the settings from KDE’s settings to copy the KWin monitor configuration to it, you probably want to set the primary display.
The prompt screen is the same on both monitors. But the typing cursor is in the password box on the secondary monitor.
I had a go at setting the kwin primary using another method but I’ll have a look at copying the settings across like you said.
If just follows the cursor so if you move the mouse to another screen you can also input your password there.
The only difference is which one the mouse cursor is on initially.
Interesting. That’s not what happens on mine. I have to actually click into the password box on the primary screen if I want to use that one. Password entry works on both screens so doesn’t really matter which I use, it is just a cosmetic thing that bothers me.