You are not logged in.
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.94config:(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"
EndSectionBut
xrandr --output HDMI-0 --pos 0x200 --output DP-0 --pos 1920x0 --primaryworks 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
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
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
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
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
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"
EndSectionDevice 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
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
Please post your xorg log for this configlet.
And also the complete "xrandr -q" output.
Offline
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
Please post your xorg log for this configlet.
Offline
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
1st link below
Offline
Can I upload using curl?
(I didn't understand anything at all about pastebin)
Offline
http://ix.io/4qDF
(Such a cool thing is curl)
Last edited by knarh (2023-03-12 15:23:50)
Offline
[ 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 1280So 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"
EndSectionOffline
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
Section "Device"
Identifier "Nvidia_GPU"
Driver "nvidia"
Option "metamodes" "DFP-1:2560x1400 +1920+0, DFP-0: 1920x1080 +0+200"
EndSectionnvidia determines the primary screen from the metamode order, so swapping them should™ do
Offline
Unfortunatly, it didn't work
Offline
Does xrandr reflect the primary output depending on the metamodes order?
Offline
No,
HDMI-0 connected primary 1920x1080+0+125 (normal left inverted right x axis y axis) 598mm x 336mm.
.
.
.Offline
'key. Add
Section "Monitor"
Identifier "DP-0"
Option "Primary" "True"
EndSectionOffline