You are not logged in.

#1 2021-04-04 00:18:22

allevil669
Member
Registered: 2013-05-23
Posts: 16

Multihead and sddm, trying to rotate and assign primary monitor.

Hi there. I have read through a number of wiki pages, followed more than a few online tutorials... But, for the life of me, I cannot get sddm and xrandr playing properly together.

I have two(2) a monitor setup looks like this...

         ┌─────┐
         │     │
┌────────┤     │
│        │     │
└────────┤     │
         │     │
         └─────┘

Both monitors are 1080p, connected via DisplayPort, on my nVidia GTX1660 ti... with the left one as primary. The right monitor is rotated 90° anti-clockwise. Once into KDE, and KScreen kicks in, the moitors are set up properly. No matter what I put xrandr commands I put into /usr/share/sddm/scripts/Xsetup, it never sets the primary monitor correctly, nor does it rotate the right hand monitor.

This is the output of xrandr after I have booted...

[17:15:35] nobody@nowhere /home/nobody  
> xrandr
Screen 0: minimum 8 x 8, current 3000 x 1920, maximum 32767 x 32767
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 connected primary 1920x1080+0+420 (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080     60.00 +  74.97*   59.94    50.00  
   1680x1050     59.95  
   1440x900      59.89  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 connected 1080x1920+1920+0 right (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080     60.00 +  74.97*   59.94    50.00  
   1680x1050     59.95  
   1440x900      59.89  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93

Here are the contents of the /usr/share/sddm/scripts/Xsetup file, and /etcsddm/conf...

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

xrandr --output DP-1 --primary --mode 1920x1080 --pos 0x420 --rate 75.00
xrandr --output DP-5 --mode 1080x1920 --pos 1920x0 --rate 75.00 --rotate right
[XDisplay]
# Xsetup script path
# A script to execute when starting the display server

DisplayCommand=/usr/share/sddm/scripts/Xsetup

Everything I have read tells me this should work. It hasn't. I'm obviously doing something wrong that I can't see. Any and all advice is appreciated.

Offline

#2 2021-04-04 09:42:07

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 12,526

Re: Multihead and sddm, trying to rotate and assign primary monitor.

Is the script executable? Add a  logging line to check whether it's executed at all e.g.

 date > /tmp/sddmXsetup

Offline

Board footer

Powered by FluxBB