SDDM lockscreen duplication

Hello,

I want to know if it’s possible to disable the secondary monitor on the login screen and the lock screen. as now both show the login screen, which I don’t like.

I already tried a few things:

  1. Disabling the second monitor through “kwinoutputconfig.json”.
  2. Disabling the monitor in the settings app then applying plasma settings, and then enabling the monitor again.
  3. [General]
    DisplayServer=wayland
    GreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell
    
    [Wayland]
    CompositorCommand=kwin_wayland --drm --no-lockscreen --no-global-shortcuts --locale1
    

My KDE:

  • Plasma version: 6.6.5 Wayland

Please advise.

hi, welcome.

i know you can do this with X11, but i don’t know about wayland.

from my notes:

# to have only one monitor for login, add the following section to
/etc/sddm.conf

[XDisplay]
# Xsetup script path
# A script to execute when starting the display server
DisplayCommand=/usr/share/sddm/scripts/Xsetup

# edit/create a script file using the name and location specified to add the xrandr command
# this will turn off the portrait monitor only for SDDM login.
sudo nano /usr/share/sddm/scripts/Xsetup

# !/bin/sh
# Xsetup - run as root before the login dialog appears

xrandr --output DisplayPort-2 --off

what the differences would be for wayland is something you may be able to search.

the command i use to determine the exact callout for the 2nd monitor was

# use this command during an X11 session to determine your display names under X11
xrandr | grep -w connected

but again xrandr is for X11 and i don’t know what he wayland equivalent would be.

2 Likes