Hey there, I’m quite new to Linux and got the following question:
How do I setup a specific monitor as default on login via SDDM?
I’m running the latest EOS with KDE Plasma.
I’ve got two Monitors connected to DP-1 and DP-2, the Default Monitor is DP-2.
In this configuration my UEFI is shown on the default monitor, as is everything else that is not set up for dual-monitor-use like system.d or a Live-Linux, even Windows-Setup. They all default to DP-2.
The login-screen however doesn’t. On each screen there is an input field for the user-password, the one on DP-1 is active, the mouse pointer appears on DP-1 as well, the input field on DP-2 is inactive.
The funny part: When I enter my password on DP-1 it doesn’t login. The input field just gets inactive. To log into my computer I have to activate the input field on DP-2 and enter my pw there.
After logging in the default monitor is DP-2 again.
I’ve looked through several pages on the Arch-Wiki, but I got a little lost there. So my problem seems to be with sddm and X, since KDE-plasma uses Wayland and got nothing to do with the login-screen.
But how can I change the settings for sddm so it is permanently set on boot?
I tried setting it in system-settings → design → login-screen (sddm) → use plasma-settings with no effect.
As suggested at https://wiki.archlinux.org/title/SDDM#Match_Plasma_display_configuration I copied the kwinoutputconfig.json also with no effect.
I then tried to edit /usr/share/sddm/scripts/Xsetup like suggested at https://wiki.archlinux.org/title/SDDM#Login_session_appears_on_an_unexpected_display
But that mirrored DP-1 to both screens and I couldn’t login since the password-input-field just deactivated. I’m not sure which arguments I should use, maybe “–preferred” instead of “–auto”, or “–pos xy” instead of “right-of DP-2”
xrandr | grep -w connected
DP-2 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
DP-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 598mm x 336mm
/usr/share/sddm/scripts/XSetup
#!/bin/sh
# Xsetup - run as root before the login dialog appears
xrandr --output DP-1 --right-of DP-2 --noprimary --auto
xrandr --output DP-2 --primary --auto
inxi -G
Graphics:
Device-1: NVIDIA GA106 [RTX A2000 12GB] driver: nvidia v: 565.57.01
Display: wayland server: X.org v: 1.21.1.14 with: Xwayland v: 24.1.4
compositor: kwin_wayland driver: X: loaded: nvidia unloaded: modesetting
gpu: nvidia resolution: 1: 1920x1080 2: 1920x1080
API: EGL v: 1.5 drivers: nvidia,swrast
platforms: gbm,wayland,x11,surfaceless,device
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 565.57.01
renderer: NVIDIA RTX A2000 12GB/PCIe/SSE2
API: Vulkan v: 1.3.295 drivers: nvidia surfaces: xcb,xlib,wayland