You are not logged in.

#1 2024-03-12 00:18:31

anacron
Member
Registered: 2020-01-26
Posts: 32

[SOLVED] X11 ignores configuration files and xrandr commands

I use a three monitor setup. I just bought new computer hardware and my X11 installation is behaving strangely.

• Two of my monitors (DP-1 and DP-3) are set to resolutions higher than their native 1920x1080 (DP-2 is correctly set to 2560x1440).

$ xrandr
Screen 0: minimum 16 x 16, current 7360 x 1440, maximum 32767 x 32767
DP-3 connected 2400x1350+4960+0 (normal left inverted right x axis y axis) 510mm x 290mm
   2400x1350     59.93*+
   1600x1200     59.87  
   1440x1080     59.99  
   1400x1050     59.98  
   1280x1024     59.89  
   1280x960      59.94  
   1152x864      59.96  
   1024x768      59.92  
   800x600       59.86  
   640x480       59.38  
   320x240       59.52  
   1920x1200     59.88  
   1680x1050     59.95  
   1440x900      59.89  
   1280x800      59.81  
   1152x720      59.97  
   960x600       59.63  
   928x580       59.88  
   800x500       59.50  
   768x480       59.90  
   720x480       59.71  
   640x400       59.95  
   320x200       58.96  
   2048x1152     59.90  
   1920x1080     59.96  
   1600x900      59.95  
   1368x768      59.88  
   1280x720      59.86  
   1024x576      59.90  
   864x486       59.92  
   720x400       59.55  
   640x350       59.77  
DP-2 connected 2560x1440+2400+0 (normal left inverted right x axis y axis) 550mm x 310mm
   2560x1440     59.91*+
   1920x1440     59.90  
   1600x1200     59.87  
   1440x1080     59.87  
   1400x1050     59.86  
   1280x1024     59.89  
   1280x960      59.94  
   1152x864      59.78  
   1024x768      59.68  
   800x600       59.86  
   640x480       59.38  
   320x240       59.52  
   1920x1200     59.88  
   1680x1050     59.85  
   1440x900      59.89  
   1280x800      59.81  
   1152x720      59.75  
   960x600       59.63  
   928x580       59.88  
   800x500       59.50  
   768x480       59.38  
   720x480       59.71  
   640x400       59.20  
   320x200       58.96  
   2048x1152     59.90  
   1920x1080     59.88  
   1600x900      59.82  
   1368x768      59.88  
   1280x720      59.86  
   1024x576      59.90  
   864x486       59.45  
   720x400       59.55  
   640x350       59.77  
DP-1 connected primary 2400x1350+0+0 (normal left inverted right x axis y axis) 510mm x 290mm
   2400x1350     59.93*+
   1600x1200     59.87  
   1440x1080     59.99  
   1400x1050     59.98  
   1280x1024     59.89  
   1280x960      59.94  
   1152x864      59.96  
   1024x768      59.92  
   800x600       59.86  
   640x480       59.38  
   320x240       59.52  
   1920x1200     59.88  
   1680x1050     59.95  
   1440x900      59.89  
   1280x800      59.81  
   1152x720      59.97  
   960x600       59.63  
   928x580       59.88  
   800x500       59.50  
   768x480       59.90  
   720x480       59.71  
   640x400       59.95  
   320x200       58.96  
   2048x1152     59.90  
   1920x1080     59.96  
   1600x900      59.95  
   1368x768      59.88  
   1280x720      59.86  
   1024x576      59.90  
   864x486       59.92  
   720x400       59.55  
   640x350       59.77

• Commands such as

xrandr --output DP-1 --mode 1920x1080

have no effect.

• My configuration file has no effect either, despite being very similar to the configuration file that was working with my previous hardware:

$ cat /etc/X11/xorg.conf.d/01-mymachine.conf
Section "Monitor"
    Identifier      "DP-3"
    Option          "PreferredMode" "1920x1080"
    Option          "Position" "0 0"
    Option          "Rotate" "Left"
EndSection

Section "Monitor"
    Identifier      "DP-2"
    Option          "PreferredMode" "2560x1440"
    Option          "Primary" "true"
    Option          "Position" "1080 0"
EndSection

Section "Monitor"
    Identifier      "DP-1"
    Option          "PreferredMode" "1920x1080"
    Option          "Position" "3640 480"
EndSection

Additional info:

$ lspci | grep VGA
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] (rev ca)
$ pacman -Q xf86-video-amdgpu
xf86-video-amdgpu 23.0.0-1

Last edited by anacron (2024-03-12 01:43:16)

Offline

#2 2024-03-12 00:25:31

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,565
Website

Re: [SOLVED] X11 ignores configuration files and xrandr commands

Wild guess: are you using a DE that may have switched to wayland?  What WM/DE are you running and how do you start it?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2024-03-12 00:39:42

anacron
Member
Registered: 2020-01-26
Posts: 32

Re: [SOLVED] X11 ignores configuration files and xrandr commands

I'm using plasma-desktop. I think sddm.service is starting it.

$ cat /etc/sddm.conf 
[Autologin]

Relogin=false
Session=plasma.desktop
User=myname

[X11]
ServerArguments=-dpi 96

Offline

#4 2024-03-12 00:45:13

anacron
Member
Registered: 2020-01-26
Posts: 32

Re: [SOLVED] X11 ignores configuration files and xrandr commands

It looks like you're right because the systemd log contains this:

Mar 11 18:04:17 mymachine sddm-helper[739]: Starting Wayland user session: "/usr/share/sddm/scripts/wayland-session" "/usr/lib/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland"

Edit: So what's the Wayland equivalent to xrandr and where is its config directory?

Last edited by anacron (2024-03-12 01:04:00)

Offline

#5 2024-03-12 01:23:07

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,565
Website

Re: [SOLVED] X11 ignores configuration files and xrandr commands

There is no "wayland" equivalent as each compositor handles outputs differently.  I'm not sure what the plasma / kde equivalent is, but according to our wiki it looks like kscreen may be it.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2024-03-12 01:42:53

anacron
Member
Registered: 2020-01-26
Posts: 32

Re: [SOLVED] X11 ignores configuration files and xrandr commands

I installed kscreen and now I can manage the monitor settings from within the system settings GUI. Cheers!

Offline

Board footer

Powered by FluxBB