You are not logged in.

#1 2023-03-12 07:05:26

knarh
Member
Registered: 2023-03-11
Posts: 58

[SOLVED]Monitors X config doesn't work properly(Nvidia multihead)

Hello,
I have 2 monitors and tried configured them as I need to.

I need something like that:

                           (1920,0)---------------------------+
(0,200)-------------------+|                                  |
|                         ||                                  |
|      1920 x 1080        ||             2560 x 1440          |
|         HDMI0           ||                 DP0              |
|                         ||                                  |
+-------------------------+|                                  |
                           +----------------------------------+

xrandr -q:

Screen 0: minimum 8 x 8, current 4480 x 1440, maximum 32767 x 32767
HDMI-0 connected 1920x1080+2560+0 (normal left inverted right x axis y axis) 598mm x 336mm
   1920x1080     60.00*+  59.94    50.00  
      .
      .
      .
   640x480       59.94    59.93  
DP-0 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 697mm x 392mm
   2560x1440    144.00*+ 120.00    99.95    59.95  
     .
     .
     .
   640x480       75.00    72.81    59.94

config:(doesn't work properly)

#/etc/X11/xorg.conf.d/10-monitor.conf
Section "Monitor"

        Identifier  "DP0"
        Option      "Primary"       "true"
        Option      "PreferredMode" "2560x1400_144.00"
        Option      "Position"      "1920 0"

EndSection


Section "Monitor"

        Identifier  "HDMI0"
        Option      "PreferredMode" "1920x1080_60.00"
        Option      "Position"      "0 200"

EndSection

But

xrandr --output HDMI-0 --pos 0x200 --output DP-0 --pos 1920x0 --primary

works properly and all is ok(I know that it can be put in xinitrc and it will work but I think it's wrong to do by a script that should be described in config)

Where's maybe a problem?

Thank you in advance

Last edited by knarh (2023-03-14 13:28:35)

Offline

#2 2023-03-12 07:49:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,354

Re: [SOLVED]Monitors X config doesn't work properly(Nvidia multihead)

The identifier names need to match (you're missing the dashes) and in case this is nvidia, it'll probably ignore that altogether and you'll have to use the metamode config.
Also the PreferredMode option is idempotent, they're the preferred modes anyway.

Offline

#3 2023-03-12 09:57:01

knarh
Member
Registered: 2023-03-11
Posts: 58

Re: [SOLVED]Monitors X config doesn't work properly(Nvidia multihead)

I have nvidia and it doesn't work with dashes either.
So I found this nvidia guide(13 and 15 chapters): https://download.nvidia.com/XFree86/Lin … nview.html but I don't clearly understand that  I need.

Arch wiki says:

Note: The terms used in this article are very specific to avoid confusion:

    Monitor refers to a physical display device, such as an LCD panel.
    Screen refers to an X-Window screen (that is: a monitor attached to a display).
    Display refers to a collection of screens that are in use at the same time showing parts of a single desktop (you can drag windows among all screens in a single display).

As I understand, I need 1 display which consists of 2 separate X-Window screen which are my 2 monitors(I need to drag windows among my screens) but I don't understand that I need to do in nvidia guide terms.(I think it's 15 chapter)

I will be very grateful if you explain to me that I need.

Last edited by knarh (2023-03-12 10:07:48)

Offline

#4 2023-03-12 10:24:34

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,146

Re: [SOLVED]Monitors X config doesn't work properly(Nvidia multihead)

That's  a very old nvidia readme , you have looked at https://wiki.archlinux.org/title/NVIDIA … e_monitors ?

Assuming you are using nvidia from repos, http://us.download.nvidia.com/XFree86/L … index.html is the guide for that version .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2023-03-12 10:34:23

knarh
Member
Registered: 2023-03-11
Posts: 58

Re: [SOLVED]Monitors X config doesn't work properly(Nvidia multihead)

Lone_Wolf wrote:

That's  a very old nvidia readme , you have looked at https://wiki.archlinux.org/title/NVIDIA … e_monitors ?

Yes, but there's no word about how to configure metamode for multihead, so I'll try to do as in the 14 chapter

I've done same as at this wiki page: https://wiki.archlinux.org/title/Multih … oordinates

Last edited by knarh (2023-03-12 10:59:53)

Offline

#6 2023-03-12 11:47:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,354

Re: [SOLVED]Monitors X config doesn't work properly(Nvidia multihead)

There're actually multiple examples in the wiki

Section "Device"
    Identifier     "Nvidia_GPU"
    Driver         "nvidia"
    Option         "metamodes" "HDMI-0: 1920x1080 +0+200, DP-0:2560x1400 +1920+0"
EndSection

Device and Screen section should™ work but iirc there was a thread where only the screen section was honored.
Please post your xorg log for this configlet.

Offline

#7 2023-03-12 13:46:55

knarh
Member
Registered: 2023-03-11
Posts: 58

Re: [SOLVED]Monitors X config doesn't work properly(Nvidia multihead)

In xorg log there are 450 strings, I don't think that I can put it here.

And  I added this:

#/etc/X11/xorg.conf.d/10-device.conf
Section "Device"
    Identifier     "Nvidia_GPU"
    Driver         "nvidia"
    Option         "metamodes" "HDMI-0: 1920x1080 +0+200, DP-0:2560x1400 +1920+0"
EndSection

and after that I stuck on my left monitor and my right monitor doesn't define

(for context: I don't have xorg.conf, so /etc/X11/xorg.conf.d/10-device.conf and  /etc/X11/xorg.conf.d/90-kbd.conf that's all configs that I have)

but xrandr -q same as in the first post

Last edited by knarh (2023-03-12 13:53:08)

Offline

#8 2023-03-12 13:57:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,354

Re: [SOLVED]Monitors X config doesn't work properly(Nvidia multihead)

Please post your xorg log for this configlet.

And also the complete "xrandr -q" output.

Offline

#9 2023-03-12 13:59:47

knarh
Member
Registered: 2023-03-11
Posts: 58

Re: [SOLVED]Monitors X config doesn't work properly(Nvidia multihead)

xrandr -q:

Screen 0: minimum 8 x 8, current 1920 x 1280, maximum 32767 x 32767
HDMI-0 connected primary 1920x1080+0+200 (normal left inverted right x axis y axis) 598mm x 336mm
   1920x1080     60.00*+  59.94    50.00  
   1680x1050     59.95  
   1440x900      59.89  
   1280x1024     60.02  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      70.07    60.00  
   800x600       60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       59.94    59.93  
DP-0 connected (normal left inverted right x axis y axis)
   2560x1440    144.00 + 120.00    99.95    59.95  
   1920x1080     60.00    59.94    50.00  
   1680x1050     59.95  
   1600x900      60.00  
   1440x900      59.89  
   1280x1024     75.02    60.02  
   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  
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)

Offline

#10 2023-03-12 14:20:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,354

Re: [SOLVED]Monitors X config doesn't work properly(Nvidia multihead)

seth wrote:

Please post your xorg log for this configlet.

https://wiki.archlinux.org/title/Xorg#General

Offline

#11 2023-03-12 14:27:08

knarh
Member
Registered: 2023-03-11
Posts: 58

Re: [SOLVED]Monitors X config doesn't work properly(Nvidia multihead)

I can't copy Xorg.0.log
alt+6 in nano just doesn't work(this characters appears insted "¶" )
I'm newbie don't judge me strictly

What should I do?

Last edited by knarh (2023-03-12 14:34:02)

Offline

#12 2023-03-12 14:50:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,354

Re: [SOLVED]Monitors X config doesn't work properly(Nvidia multihead)

1st link below

Offline

#13 2023-03-12 15:06:05

knarh
Member
Registered: 2023-03-11
Posts: 58

Re: [SOLVED]Monitors X config doesn't work properly(Nvidia multihead)

Can I upload using curl?
(I didn't understand anything at all about pastebin)

Offline

#14 2023-03-12 15:21:35

knarh
Member
Registered: 2023-03-11
Posts: 58

Re: [SOLVED]Monitors X config doesn't work properly(Nvidia multihead)

http://ix.io/4qDF
(Such a cool thing is curl)

Last edited by knarh (2023-03-12 15:23:50)

Offline

#15 2023-03-12 16:13:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,354

Re: [SOLVED]Monitors X config doesn't work properly(Nvidia multihead)

[    19.173] (II) NVIDIA(0): Validated MetaModes:
[    19.173] (II) NVIDIA(0):     "HDMI-0:1920x1080+0+200,DP-0:2560x1400+1920+0"
[    19.173] (II) NVIDIA(0): Virtual screen size determined to be 1920 x 1280

So it reads the config and builds a mode w/ the (extended) dimensions of the first output.

Let's try nvidia's internal output names:

Section "Device"
    Identifier     "Nvidia_GPU"
    Driver         "nvidia"
    Option         "metamodes" "DFP-0: 1920x1080 +0+200, DFP-1:2560x1400 +1920+0"
EndSection

Offline

#16 2023-03-12 16:39:29

knarh
Member
Registered: 2023-03-11
Posts: 58

Re: [SOLVED]Monitors X config doesn't work properly(Nvidia multihead)

IT WORKS! THANK U SO MUCH!

(but my browser and terminal appear on my left monitor, so if want that they appear on my right screen, I need to make monitor section and enable "primary" option or config  my wm?)

Last edited by knarh (2023-03-12 16:40:18)

Offline

#17 2023-03-12 16:46:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,354

Re: [SOLVED]Monitors X config doesn't work properly(Nvidia multihead)

Section "Device"
    Identifier     "Nvidia_GPU"
    Driver         "nvidia"
    Option         "metamodes" "DFP-1:2560x1400 +1920+0, DFP-0: 1920x1080 +0+200"
EndSection

nvidia determines the primary screen from the metamode order, so swapping them should™ do

Offline

#18 2023-03-12 18:28:55

knarh
Member
Registered: 2023-03-11
Posts: 58

Re: [SOLVED]Monitors X config doesn't work properly(Nvidia multihead)

Unfortunatly, it didn't work

Offline

#19 2023-03-12 20:32:06

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,354

Re: [SOLVED]Monitors X config doesn't work properly(Nvidia multihead)

Does xrandr reflect the primary output depending on the metamodes order?

Offline

#20 2023-03-13 00:50:54

knarh
Member
Registered: 2023-03-11
Posts: 58

Re: [SOLVED]Monitors X config doesn't work properly(Nvidia multihead)

No,

HDMI-0 connected primary 1920x1080+0+125 (normal left inverted right x axis y axis) 598mm x 336mm.
.
.
.

Offline

#21 2023-03-13 07:05:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,354

Re: [SOLVED]Monitors X config doesn't work properly(Nvidia multihead)

'key. Add

Section "Monitor"
    Identifier     "DP-0"
    Option         "Primary"     "True"
EndSection

Offline

Board footer

Powered by FluxBB