You are not logged in.

#1 2022-09-02 12:01:53

anilozlu
Member
Registered: 2020-12-14
Posts: 11

External monitor not displaying correct output in portrait modeScreen

I have connected a second external monitor to my laptop, which has Nvidia RTX 2060 on it. I am trying to set this monitor up to be used in portrait mode. It is supported by the monitor. It works perfectly in normal orientation, however in portrait mode it doesn't work as it should.
https://imgur.com/a/QkeTncU
As you can see in the image, vertical monitor is displaying both it's own screen and the screen of the monitor next to it. You can see my display configuration in the same link, as well as a screenshot of the desktop. My xrandr output is:

Screen 0: minimum 8 x 8, current 4920 x 1920, maximum 32767 x 32767
eDP1 connected primary 1920x1080+1080+0 (normal left inverted right x axis y axis) 380mm x 210mm
   1920x1080    144.00*+  59.96    59.93  
   1680x1050     59.95    59.88  
   1400x1050     74.76    59.98  
   1600x900     144.00    59.95    59.82  
   1280x1024     85.02    75.02    60.02  
   1400x900      59.96    59.88  
   1280x960      85.00    60.00  
   1368x768     144.00    59.88    59.85  
   1280x800      59.81    59.91  
   1152x864      75.00  
   1280x720     144.00    59.86    59.74  
   1024x768      85.00    75.03    70.07    60.00  
   1024x768i     86.96  
   1024x576     144.00    59.90    59.82  
   832x624       74.55  
   960x540      144.00    59.63    59.82  
   800x600       85.14    72.19    75.00    60.32    56.25  
   864x486      144.00    59.92    59.57  
   640x480       85.01    72.81    75.00    59.94  
   720x405      144.00    59.51    58.99  
   720x400       85.04  
   640x400       85.08  
   640x360      144.00    59.84    59.32  
   640x350       85.08  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
DP-1-0 connected 1080x1920+0+0 left (normal left inverted right x axis y axis) 598mm x 336mm
   1920x1080     60.00*+ 144.00   119.98    99.93    84.90    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    59.94    59.93  
DP-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-3 disconnected (normal left inverted right x axis y axis)
HDMI-1-0 connected 1920x1080+3000+0 (normal left inverted right x axis y axis) 1000mm x 550mm
   1920x1080     59.93*+  60.00    59.94    50.00    29.97    23.98  
   1400x1050     59.98  
   1360x768      59.80  
   1280x1024     60.02  
   1280x768      60.35  
   1280x720      59.94    59.65    50.00  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       59.95    59.94    59.93  
  1680x1050 (0x728) 146.250MHz -HSync +VSync
        h: width  1680 start 1784 end 1960 total 2240 skew    0 clock  65.29KHz
        v: height 1050 start 1053 end 1059 total 1089           clock  59.95Hz
  1280x1024 (0x730) 135.000MHz +HSync +VSync
        h: width  1280 start 1296 end 1440 total 1688 skew    0 clock  79.98KHz
        v: height 1024 start 1025 end 1028 total 1066           clock  75.02Hz
  1280x1024 (0x230) 108.000MHz +HSync +VSync
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock  63.98KHz
        v: height 1024 start 1025 end 1028 total 1066           clock  60.02Hz
  1280x960 (0x734) 108.000MHz +HSync +VSync
        h: width  1280 start 1376 end 1488 total 1800 skew    0 clock  60.00KHz
        v: height  960 start  961 end  964 total 1000           clock  60.00Hz
  1280x800 (0x738) 83.500MHz -HSync +VSync
        h: width  1280 start 1352 end 1480 total 1680 skew    0 clock  49.70KHz
        v: height  800 start  803 end  809 total  831           clock  59.81Hz
  1152x864 (0x73a) 108.000MHz +HSync +VSync
        h: width  1152 start 1216 end 1344 total 1600 skew    0 clock  67.50KHz
        v: height  864 start  865 end  868 total  900           clock  75.00Hz
  1024x768 (0x73f) 78.750MHz +HSync +VSync
        h: width  1024 start 1040 end 1136 total 1312 skew    0 clock  60.02KHz
        v: height  768 start  769 end  772 total  800           clock  75.03Hz
  1024x768 (0x740) 75.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1328 skew    0 clock  56.48KHz
        v: height  768 start  771 end  777 total  806           clock  70.07Hz
  1024x768 (0x235) 65.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
        v: height  768 start  771 end  777 total  806           clock  60.00Hz
  800x600 (0x74b) 49.500MHz +HSync +VSync
        h: width   800 start  816 end  896 total 1056 skew    0 clock  46.88KHz
        v: height  600 start  601 end  604 total  625           clock  75.00Hz
  800x600 (0x74a) 50.000MHz +HSync +VSync
        h: width   800 start  856 end  976 total 1040 skew    0 clock  48.08KHz
        v: height  600 start  637 end  643 total  666           clock  72.19Hz
  800x600 (0x236) 40.000MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
        v: height  600 start  601 end  605 total  628           clock  60.32Hz
  800x600 (0x74c) 36.000MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock  35.16KHz
        v: height  600 start  601 end  603 total  625           clock  56.25Hz
  640x480 (0x752) 31.500MHz -HSync -VSync
        h: width   640 start  656 end  720 total  840 skew    0 clock  37.50KHz
        v: height  480 start  481 end  484 total  500           clock  75.00Hz
  640x480 (0x23a) 25.175MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
        v: height  480 start  490 end  492 total  525           clock  59.94Hz
  1920x1080 (0x228) 138.500MHz +HSync -VSync
        h: width  1920 start 1968 end 2000 total 2080 skew    0 clock  66.59KHz
        v: height 1080 start 1083 end 1088 total 1111           clock  59.93Hz

I am not using any Xorg configuration files. I have two methods to connect this display to my computer: Displayport -> Displayport to Mini Displayport adapter -> Computer OR HDMI -> Computer. I have tried both methods, while having the other external monitor connected and unconnected. I have tried installing and switching to XFCE from KDE. I have tried setting the rotation through xrandr. I have tried rebooting while having the monitor connected, I have added a conf file named 40-monitor.conf which rotated the screen before any rendering happens (it was suggested here: https://wiki.gentoo.org/wiki/Tallscreen_Monitor).
I am using the latest linux-zen kernel and the latest nvidia-dkms driver.

EDIT: The exact same setup works perfectly on wayland, but I would like it to work with X11 if possible.

Last edited by anilozlu (2022-09-02 12:20:27)

Offline

#2 2022-10-02 10:25:48

anilozlu
Member
Registered: 2020-12-14
Posts: 11

Re: External monitor not displaying correct output in portrait modeScreen

I have found a workaround for my problem. Following the link for the NVIDIA configuration found on https://wiki.archlinux.org/title/PRIME#User_scenarios I have added an Xorg config:

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Now everything is rendered with my discrete NVIDIA gpu, and the monitor rotation works perfectly.

Offline

Board footer

Powered by FluxBB