this post was submitted on 15 Jun 2024
35 points (100.0% liked)

Linux

47323 readers
726 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I have 2 screens attached to my EndeavourOS (KDE Wayland) PC. The secondary is HDMI the primary is Display Port. The boot menu and boot messages all appear on the primary display, but once the login appears the password entry defaults to the secondary. How do I force it to default to the primary?

top 12 comments
sorted by: hot top controversial new old
[–] [email protected] 19 points 3 months ago (1 children)
[–] [email protected] 2 points 3 months ago* (last edited 3 months ago) (2 children)

(Edited for clarity) This was interesting. It gave me arandr to generate a script which is great for lazy me. That script "works" in that it doesn't give any errors when I test it, but it actually doesn't have any effect on the login screen. In fact with more digging i discovered that xrandr just doesn't work at all. I tried setting the display to a lower resolution (default is 3440x1440 so I used 1920x1080) in the control panel to test the xrandr command but xrandr tells me the mode (3440x1440) is not found. I looked again in xrandr and saw that any resolution higher 1920x1080 is not listed any more. I reset the resolution back to 3440x1440 in the control panel then looked in xrandr again and all the expected resolutions are listed again.

xrandr errors when I try to set my display to anything other than the setting it is currently using. Either I'm don't something stupid with the syntax (99.999% confident I'm doing it right), or xrandr is broken with my setup. Maybe kde plasma 6 and wayland is giving me grief here? My PC has an AMD 7900XT GPU, so maybe it just doesn't like my GPU for some reason.

Here is the output from xrandr for my current settings:

DP-1 connected primary 3440x1440+0+1080 (normal left inverted right x axis y axis) 800mm x 330mm
HDMI-A-1 connected 1920x1080+758+0 (normal left inverted right x axis y axis) 520mm x 290mm

Here are the commands I'm using in the Xsetup script.

xrandr --output HDMI-A-1 --mode 1920x1080 --pos 758x0 --rotate normal
xrandr --output DP-1 --primary --mode 3440x1440 --pos 0x1080 --rotate normal
[–] [email protected] 10 points 3 months ago* (last edited 3 months ago) (1 children)

xrandr is Xorg only, it doesn't work with Wayland. You should be able to make SDDM use your Plasma display configuration - https://wiki.archlinux.org/title/SDDM#Match_Plasma_display_configuration

No clue if that's going to fix your issues, but at least it's supposed to work with Wayland.

[–] [email protected] 6 points 3 months ago

Ok that explains it. I tried applying the plasma config earlier. Didn't fix.

[–] [email protected] 2 points 3 months ago

I think I've read somewhere that xrandr only works with Xorg and not with Wayland.

[–] [email protected] 9 points 3 months ago (1 children)

I have almost the exact same setup, but just say “meh”, type my password blindly while looking at my main screen and press Enter, and after login it’s arranged as it should be.

Yeah, it’s an issue, but it’s a non-issue

[–] [email protected] 4 points 3 months ago

Yeah that's where I'm at as well. Irritating not world ending.

[–] [email protected] 5 points 3 months ago

I know it's bad form to suggest using other software that handles the same functionality instead of suggesting a fix, but it looks like sddm doesn't have the functionality to change displays at the time of writing.

GDM seems to have a workaround

But it looks like every display manager chooses whichever display based on arbitrary criteria.

[–] [email protected] 3 points 3 months ago
[–] [email protected] 3 points 3 months ago (1 children)

Have a look at /etc/sddm.conf

[–] [email protected] 2 points 3 months ago (1 children)

It is blank right now. I'm looking at xrandr right now, but a basic check into sddm.conf suggests I can't set resolution in there, but can't call scripts. Might come back to this though.

[–] [email protected] 3 points 3 months ago

Do you have a /etc/sddm.conf.d/ then? You need to have an SDDM config XD

But for sure may ne that you cant set it there.

Fedora uses SDDM on Plasma 6 with Wayland now, not sure if EndeavorOS does too. So no xrandr