Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

sddm multi monitor - wayland

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
Linubie
Guru
Guru
User avatar
Posts: 418
Joined: Fri Jun 11, 2004 6:52 pm

sddm multi monitor - wayland

  • Quote

Post by Linubie » Sat Feb 07, 2026 9:00 pm

Hi,

I have 2 monitors.

Primary is a PL2730H (center)
Secondary is a L227W (right)

I am using Plasma/KDE/kwin/Wayland

Code: Select all

 xrandr | grep -w connected
HDMI-A-2 connected 1680x1050+1920+0 (normal left inverted right x axis y axis) 474mm x 296mm
DP-3 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 598mm x 336mm

But at login with sddm the secondary monitor (L227W) is always the one I have to type my passwort in.

As explained on the wiki I created the file in /etc/sddm/scripts/Xsetup
https://wiki.gentoo.org/wiki/SDDM#Multi ... figuration

Code: Select all

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

# ...

# First, set DP-3 as primary
xrandr --output DP-3 --auto --primary
# Second, HDMI-A-2 will be placed on right of DP-3
xrandr --output HDMI-A-2 --right-of DP-3 --noprimary

Code: Select all

ls X*
-rw-r--r-- 1 root root 245  7. Feb 21:45 Xsetup

Code: Select all

lspci | grep GA102
2b:00.0 VGA compatible controller: NVIDIA Corporation GA102 [GeForce RTX 3080] (rev a1)
2b:00.1 Audio device: NVIDIA Corporation GA102 High Definition Audio Controller (rev a1)
But unfortunately it does not change anything.
Mircosoft software is like having sex with a stranger, you always have to be careful not to get infected with something...
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Sun Feb 08, 2026 1:21 am

X programs like xrandr won't work with wayland.

You could try wlr-randr
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
flexibeast
l33t
l33t
Posts: 682
Joined: Mon Apr 04, 2022 4:15 am
Location: Naarm/Melbourne, Australia
Contact:
Contact flexibeast
Website

  • Quote

Post by flexibeast » Sun Feb 08, 2026 9:15 am

Anon-E-moose wrote:X programs like xrandr won't work with wayland.

You could try wlr-randr
However, as i understand it, SDDM doesn't necessarily use Wayland itself; the `DisplayServer` configuration variable can be set to `x11` or `x11-user`, for rootless X. (i don't use SDDM or KDE myself, but i would like the SDDM page on the wiki to be updated and improved; i've recently made some a few relatively limited changes, but it would be good if someone more familiar with SDDM could e.g. add stuff about Wayland.)

wlr-randr is for wlroots-based compositors, which Kwin isn't, but perhaps it somehow works anyway.
https://wiki.gentoo.org/wiki/User:Flexibeast
My most recent wiki contributions
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Sun Feb 08, 2026 10:43 am

*Disclaimer* I don't use sddm, never have, but...

Old versions of sddm started up an Xserver, whether for an X session or a wayland session (this was in the early adoption era of wayland)

New versions, AFAIK, don't need to start an Xserver, I would check the documtation for the specific version of sddm.

None the less, xrandr is an X app not a wayland one. wlr-randr serves the same purpose in the wayland ecosystem.

wlr-randr does not need roots, only wayland libs, should work on every compositor, though gnome and kde may have their own versions of it.
I don't use either, so just a guess.
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
flexibeast
l33t
l33t
Posts: 682
Joined: Mon Apr 04, 2022 4:15 am
Location: Naarm/Melbourne, Australia
Contact:
Contact flexibeast
Website

  • Quote

Post by flexibeast » Sun Feb 08, 2026 11:44 am

Anon-E-moose wrote:New versions, AFAIK, don't need to start an Xserver, I would check the documtation for the specific version of sddm.
They don't indeed, though Wayland support via setting the `DisplayServer` config variable is still experimental, as per the the sddm.conf(5) man page:
DisplayServer=
Select the display server to use for the greeter. Valid values are:

x11: X server running as root.
x11-user: X server running as unprivileged user.
wayland: Wayland compositor as unprivileged user. (Experimental)
Anon-E-moose wrote:None the less, xrandr is an X app not a wayland one.
It is indeed, but if SDDM is running on top of X, doesn't that then mean that, prior to it starting a Wayland session, xrandr can be used to configure output?
Anon-E-moose wrote:wlr-randr serves the same purpose in the wayland ecosystem.

wlr-randr does not need roots, only wayland libs, should work on every compositor, though gnome and kde may have their own versions of it.
Wayland isn't so much about libraries as about protocols. (Wayland itself, of course, being a protocol, not a server.) In this case,as the wlr-randr(1) man page says at the beginning:
This utility requires the compositor to implement the wlr-output-management protocol.
KDE has its own output management protocol. To check if a compositor supports a particular protocol, one can use wayland-info(1); here's a shell function i've used to list the interfaces supported by the running compositor:

Code: Select all

wl-interfaces () {
	wayland-info | grep 'interface' | sed "s/interface: '\([^']*\)',.*version:  \([^,]*\),.*/\1 | \2/" | sort
}
https://wiki.gentoo.org/wiki/User:Flexibeast
My most recent wiki contributions
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Sun Feb 08, 2026 12:23 pm

Sddm does not need Xserver to start a Wayland user session, by default, it uses the Xserver to run its greeter.
But sddm can be configured to run entirely under wayland. ,
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
wjb
l33t
l33t
User avatar
Posts: 681
Joined: Sun Jul 10, 2005 9:40 am
Location: Fife, Scotland

  • Quote

Post by wjb » Sun Feb 08, 2026 12:28 pm

Is xrandr really used if you have an NVidia card - the PC I'm using has two monitors off an NVidia card and I've never had xrandr set up on it.

Anyway, does the mouse move correctly between the primary and secondary monitors in SDDM, or do you have to move it past the outside edges. I suspect the latter, cos thats what I had when I switched over to Wayland session. Personally I just swapped over the video cables, rebooted and SDDM was fixed but Plasma was swapped - so fixed that in Plasma Settings.
Top
flexibeast
l33t
l33t
Posts: 682
Joined: Mon Apr 04, 2022 4:15 am
Location: Naarm/Melbourne, Australia
Contact:
Contact flexibeast
Website

  • Quote

Post by flexibeast » Sun Feb 08, 2026 12:38 pm

Anon-E-moose wrote:Sddm does not need Xserver to start a Wayland user session, by default, it uses the Xserver to run its greeter.
But sddm can be configured to run entirely under wayland. ,
Er, yes, that's what i noted in my previous message, responding to you writing "New versions, AFAIK, don't need to start an Xserver" with "They don't indeed" (i.e. "Yes, they don't need to start an X server"), and then going on to mention being able to request Wayland support via the `DisplayServer` variable, quoting its description in the sddm.conf(5) man page?

My point was that, if Linubie chooses to use X to run the greeter, rather than using the experimental Wayland support, then i imagine xrandr could then be run by SDDM, via the `Xsetup` file noted in the OP, even if the session type that was subsequently selected via SDDM was a Wayland session, rather than X (and that this would then obviate the need to worry about whether or not Kwin supports the wlr-output-management protocol used by wlr-randr.)
https://wiki.gentoo.org/wiki/User:Flexibeast
My most recent wiki contributions
Top
Post Reply

8 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic