Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
12-13-2021, 05:16 PM
#1
LQ Newbie
Registered: Dec 2021
Posts: 7
Rep:
Using Xorg.conf how to setup non duplicate Monitors?
Hi, I'm having issues setting up 4 monitors. They are all the same brand/model monitors. For some reason, I can only manage to show chrome in the top left monitor and when you maximize it. It will snap on that monitor only. Or I can see a duplicate in all four monitors. For example, if I open a window, it will show 4 times, once in each monitor. I would like to span a window full screen in all four monitors using Xorg.conf.
Here's my current xorg.conf
Code:
Section "Monitor"
Identifier "DisplayPort-0"
Option "Position" "0 0"
EndSection
Section "Monitor"
Identifier "DisplayPort-1"
Option "RightOf" "DisplayPort-0"
EndSection
Section "Monitor"
Identifier "DisplayPort-2"
Option "Below" "DisplayPort-0"
EndSection
Section "Monitor"
Identifier "DisplayPort-3"
Option "Below" "DisplayPort-1"
EndSection
# END OF MONITOR SECTION
# MAP Monitors to the outputs
Section "Device"
Identifier "Device0"
Driver "amdgpu"
Option "Monitor-DisplayPort-0" "DisplayPort-0"
Screen 0
EndSection
Section "Device"
Identifier "Device1"
Driver "amdgpu"
Option "Monitor-DisplayPort-1" "DisplayPort-1"
Screen 1
EndSection
Section "Device"
Identifier "Device2"
Driver "amdgpu"
Option "Monitor-DisplayPort-2" "DisplayPort-2"
Screen 2
EndSection
Section "Device"
Identifier "Device3"
Driver "amdgpu"
Option "Monitor-DisplayPort-3" "DisplayPort-3"
Screen 3
EndSection
# END of Monitor outputs
#Screen Sections
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "DisplayPort-0"
Option "ModeDebug" "true"
DefaultDepth 24
SubSection "Display"
Depth 24
Virtual 7180 4320
EndSubSection
EndSection
Here's my xrandr -q output
Code:
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
DisplayPort-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 527mm x 296mm
1920x1080 60.00*+ 50.00 59.94
1680x1050 59.88
1400x1050 59.95
1600x900 60.00
1280x1024 75.02 60.02
1440x900 59.90
1280x960 60.00
1280x800 59.91
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x480 60.00 59.94
640x480 75.00 72.81 66.67 60.00 59.94
720x400 70.08
DisplayPort-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 527mm x 296mm
1920x1080 60.00*+ 50.00 59.94
1680x1050 59.88
1400x1050 59.95
1600x900 60.00
1280x1024 75.02 60.02
1440x900 59.90
1280x960 60.00
1280x800 59.91
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x480 60.00 59.94
640x480 75.00 72.81 66.67 60.00 59.94
720x400 70.08
DisplayPort-2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 527mm x 296mm
1920x1080 60.00*+ 50.00 59.94
1680x1050 59.88
1400x1050 59.95
1600x900 60.00
1280x1024 75.02 60.02
1440x900 59.90
1280x960 60.00
1280x800 59.91
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x480 60.00 59.94
640x480 75.00 72.81 66.67 60.00 59.94
720x400 70.08
DisplayPort-3 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 527mm x 296mm
1920x1080 60.00*+ 50.00 59.94
1680x1050 59.88
1400x1050 59.95
1600x900 60.00
1280x1024 75.02 60.02
1440x900 59.90
1280x960 60.00
1280x800 59.91
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x480 60.00 59.94
640x480 75.00 72.81 66.67 60.00 59.94
720x400 70.08
Here's my lspci -v
Code:
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] (rev 83) (prog-if 00 [VGA controller])
Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series]
--
03:00.7 Non-VGA unclassified device: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/Renoir Non-Sensor Fusion Hub KMDF driver
12-13-2021, 06:31 PM
#2
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Have you tried xrandr instead of xorg.conf? It's usually simpler to figure out:
Code:
xrandr --output DisplayPort-0 --primary --output DisplayPort-1 --above DisplayPort-0 --output DisplayPort-2 --right-of DisplayPort-2 --output DisplayPort-3 --right-of DisplayPort-0
in a startup script might be all you need if there's nothing to interfere with it in /etc/X11/ or from your DE.
12-13-2021, 06:44 PM
#3
LQ Newbie
Registered: Dec 2021
Posts: 7
Original Poster
Rep:
Hi, My goal is to do it with xorg.conf instead of creating a script for this. Can it be possible to do this with xorg.conf?
12-13-2021, 07:24 PM
#4
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
It's possible most likely, if there's no Xorg bug to stop you, but I've never that I can recall had good luck doing it that way with more than two displays.
A script can be placed in the /etc/X11/ tree, making it function globally, as would xorg.conf if you could build it right.
IME, in an extended desktop, most apps will maximize only to the display on which started, or to the display on which a window uses the most space. To get it to cover the whole extended desktop has required dragging the borders.
12-14-2021, 02:24 AM
#5
LQ 5k Club
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371
Quote:
I would like to span a window full screen in all four monitors using Xorg.conf.
This is known as "Xinerama " mode.
What follows is a skeletal guide. YMMV.
Your xorg.conf will need a ServerLayout section.
Code:
Section "ServerFlags"
Option "DefaultServerLayout" "Layout0"
EndSection
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
Screen 2 "Screen2" Below "Screen0"
Screen 3 "Screen3" Below "Screen1"
Option "Xinerama" "1" # enable XINERAMA extension. Default is disabled.
EndSection
You will need a separate Screen section for each monitor.
Code:
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "DisplayPort-0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "DisplayPort-1"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen2"
Device "Device2"
Monitor "DisplayPort-2"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen3"
Device "Device3"
Monitor "DisplayPort-3"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
You will need separate Device sections to link to the screens
Code:
Section "Device"
Identifier "Device0"
Driver "amdgpu"
BusID "PCI:3:0:0"
Screen 0
EndSection
Section "Device"
Identifier "Device1"
Driver "amdgpu"
BusID "PCI:3:0:0"
Screen 1
EndSection
Section "Device"
Identifier "Device2"
Driver "amdgpu"
BusID "PCI:3:0:0"
Screen 2
EndSection
Section "Device"
Identifier "Device3"
Driver "amdgpu"
BusID "PCI:3:0:0"
Screen 3
EndSection
For the Monitor sections, remove the "Option ..." lines.
This
ArchWiki page has useful background.
Last edited by allend; 12-14-2021 at 02:25 AM .
1 members found this post helpful.
12-14-2021, 09:43 AM
#6
LQ Newbie
Registered: Dec 2021
Posts: 7
Original Poster
Rep:
Hey Allend, thanks for your help. I already checked that Wiki page a bunch of time and this configure i have tried it already. The screen only appears on the top left monitor and the other 3 monitors are black. The window when maximize only snaps to the top left monitor.
Here's the xorg.conf that I have,
Code:
Section "ServerFlags"
Option "DefaultServerLayout" "Layout0"
EndSection
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
Screen 2 "Screen2" Below "Screen0"
Screen 3 "Screen3" Below "Screen1"
Option "Xinerama" "1" # enable XINERAMA extension. Default is disabled.
EndSection
Section "Monitor"
Identifier "DisplayPort-0"
EndSection
Section "Monitor"
Identifier "DisplayPort-1"
EndSection
Section "Monitor"
Identifier "DisplayPort-2"
EndSection
Section "Monitor"
Identifier "DisplayPort-3"
EndSection
# END OF MONITOR SECTION
# MAP Monitors to the outputs
Section "Device"
Identifier "Device0"
Driver "amdgpu"
BusID "PCI:3:0:0"
Screen 0
EndSection
Section "Device"
Identifier "Device1"
Driver "amdgpu"
BusID "PCI:3:0:0"
Screen 1
EndSection
Section "Device"
Identifier "Device2"
Driver "amdgpu"
BusID "PCI:3:0:0"
Screen 2
EndSection
Section "Device"
Identifier "Device3"
Driver "amdgpu"
BusID "PCI:3:0:0"
Screen 3
EndSection
# END of Monitor outputs
#Screen Sections
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "DisplayPort-0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "DisplayPort-1"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen2"
Device "Device2"
Monitor "DisplayPort-2"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen3"
Device "Device3"
Monitor "DisplayPort-3"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
Here's Xorg Logs
https://pastebin.com/7YTEvW2i
edit: removed quotes and replace it with CODE. Added the xorg logs in pastebin.
Last edited by unxcellent; 12-14-2021 at 12:50 PM .
Reason: edit: removed quotes and replace it with CODE. Added the xorg logs in pastebin.
12-14-2021, 11:38 AM
#7
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
unxcellent, please use code tags, not quote tags, when pasting text files or command output. Code tags preserve formatting, and can be quoted. Also, pastebin large files, such as Xorg.0.log, e.g.:
Code:
cat /var/log/Xorg.0.log | pastebinit
Pastebins generally don't have size limits that cut off the end of large files. Your log seems to have been truncated.
12-14-2021, 11:56 AM
#8
LQ Guru
Registered: Oct 2004
Distribution: Arch
Posts: 5,138
Better than pastebin. No adds or scripts.
Code:
curl -F'file=@/home/<user>/.local/share/xorg/Xorg.0.log' https://0x0.st
cat /home/<user>/.local/share/xorg/Xorg.0.log | curl -F 'sprunge=<-' http://sprunge.us
https://github.com/rupa/sprunge
https://git.0x0.st/mia/0x0
12-14-2021, 12:48 PM
#9
LQ Newbie
Registered: Dec 2021
Posts: 7
Original Poster
Rep:
hey guys. Sorry about that, I should have review it. Here's the Xorg logs in pastebinit
https://pastebin.com/7YTEvW2i
12-14-2021, 05:41 PM
#10
LQ 5k Club
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371
Thanks for the Xorg.0.log. It shows that the displays are all being recognised, but are all sending output to "1920x1080 +0+0".
My suggestion is to try setting the size of the display canvas and positioning each display on that canvas.
Code:
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "DisplayPort-0"
DefaultDepth 24
SubSection "Display"
Depth 24
ViewPort 0 0
Virtual 3840 2160
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "DisplayPort-1"
DefaultDepth 24
SubSection "Display"
Depth 24
ViewPort 1920 0
Virtual 3840 2160
EndSubSection
EndSection
Section "Screen"
Identifier "Screen2"
Device "Device2"
Monitor "DisplayPort-2"
DefaultDepth 24
SubSection "Display"
Depth 24
ViewPort 0 1080
Virtual 3840 2160
EndSubSection
EndSection
Section "Screen"
Identifier "Screen3"
Device "Device3"
Monitor "DisplayPort-3"
DefaultDepth 24
SubSection "Display"
Depth 24
ViewPort 1920 1080
Virtual 3840 2160
EndSubSection
EndSection
Last edited by allend; 12-14-2021 at 05:44 PM .
12-14-2021, 06:58 PM
#11
LQ Newbie
Registered: Dec 2021
Posts: 7
Original Poster
Rep:
Okay, I have done the above before as well. Still show on the top left monitor only. But now that I'm looking at the logs I noticed there's no mention of `Virtual` or its resolution on the Xorg logs. For example, I set the configuration
Code:
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "DisplayPort-0"
DefaultDepth 24
SubSection "Display"
Depth 24
ViewPort 0 0
Virtual 3840 2160
EndSubSection
EndSection
but in the Xorg logs there is no error or mention of the resolution 3840x2160. The logs keep showing what you saw which is "1920x1080 +0+0".
something else I just noticed is that, if Xinerama is enable and you tried to run xrandr -q it will display this error. If you disable Xinerama the error will go away.
"RandR extension missing"
Here's the latest xorg.conf and xorg.logs
Code:
Section "ServerFlags"
Option "DefaultServerLayout" "Layout0"
EndSection
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
Screen 2 "Screen2" Below "Screen0"
Screen 3 "Screen3" Below "Screen1"
Option "Xinerama" "1" # enable XINERAMA extension. Default is disabled.
EndSection
Section "Monitor"
Identifier "DisplayPort-0"
EndSection
Section "Monitor"
Identifier "DisplayPort-1"
EndSection
Section "Monitor"
Identifier "DisplayPort-2"
EndSection
Section "Monitor"
Identifier "DisplayPort-3"
EndSection
# END OF MONITOR SECTION
# MAP Monitors to the outputs
Section "Device"
Identifier "Device0"
Driver "amdgpu"
BusID "PCI:3:0:0"
Screen 0
EndSection
Section "Device"
Identifier "Device1"
Driver "amdgpu"
BusID "PCI:3:0:0"
Screen 1
EndSection
Section "Device"
Identifier "Device2"
Driver "amdgpu"
BusID "PCI:3:0:0"
Screen 2
EndSection
Section "Device"
Identifier "Device3"
Driver "amdgpu"
BusID "PCI:3:0:0"
Screen 3
EndSection
# END of Monitor outputs
#Screen Sections
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "DisplayPort-0"
DefaultDepth 24
SubSection "Display"
Depth 24
ViewPort 0 0
Virtual 3840 2160
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "DisplayPort-1"
DefaultDepth 24
SubSection "Display"
Depth 24
ViewPort 1920 0
Virtual 3840 2160
EndSubSection
EndSection
Section "Screen"
Identifier "Screen2"
Device "Device2"
Monitor "DisplayPort-2"
DefaultDepth 24
SubSection "Display"
Depth 24
ViewPort 0 1080
Virtual 3840 2160
EndSubSection
EndSection
Section "Screen"
Identifier "Screen3"
Device "Device3"
Monitor "DisplayPort-3"
DefaultDepth 24
SubSection "Display"
Depth 24
ViewPort 1920 1080
Virtual 3840 2160
EndSubSection
EndSection
I also tried with couple of Virtual resolution with no avail. Such as 7680x4320, etc.
Xorg logs
https://pastebin.com/C0JiMiTv
Last edited by unxcellent; 12-14-2021 at 07:01 PM .
12-14-2021, 07:06 PM
#12
LQ 5k Club
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371
Try commenting out the "Monitor ..." lines in the Screen sections.
12-14-2021, 07:34 PM
#13
LQ Newbie
Registered: Dec 2021
Posts: 7
Original Poster
Rep:
I commented the Monitor option on the screen section. Window still maximize on the top left monitor. The logs now display the following,
Code:
[ 3252.386] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Dec 14 20:31:15 2021
[ 3252.386] (==) Using config file: "/etc/X11/xorg.conf"
[ 3252.386] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 3252.386] (**) Option "defaultserverlayout" "Layout0"
[ 3252.386] (**) ServerLayout "Layout0"
[ 3252.386] (**) |-->Screen "Screen0" (0)
[ 3252.386] (**) | |-->Monitor "<default monitor>"
[ 3252.387] (**) | |-->Device "Device0"
[ 3252.387] (==) No monitor specified for screen "Screen0".
Using a default monitor configuration.
[ 3252.387] (**) |-->Screen "Screen1" (1)
[ 3252.387] (**) | |-->Monitor "<default monitor>"
[ 3252.387] (**) | |-->Device "Device1"
[ 3252.387] (==) No monitor specified for screen "Screen1".
Using a default monitor configuration.
[ 3252.387] (**) |-->Screen "Screen2" (2)
[ 3252.387] (**) | |-->Monitor "<default monitor>"
[ 3252.387] (**) | |-->Device "Device2"
[ 3252.387] (==) No monitor specified for screen "Screen2".
Using a default monitor configuration.
[ 3252.387] (**) |-->Screen "Screen3" (3)
[ 3252.387] (**) | |-->Monitor "<default monitor>"
[ 3252.388] (**) | |-->Device "Device3"
[ 3252.388] (==) No monitor specified for screen "Screen3".
Using a default monitor configuration.
[ 3252.388] (**) Option "Xinerama" "1"
[ 3252.388] (==) Automatically adding devices
[ 3252.388] (==) Automatically enabling devices
[ 3252.388] (==) Automatically adding GPU devices
[ 3252.388] (==) Automatically binding GPU devices
[ 3252.388] (**) Xinerama: enabled
Also still shows,
[ 3252.484] (II) AMDGPU(0): Output DisplayPort-0 using initial mode 1920x1080 +0+0
12-14-2021, 08:01 PM
#14
LQ 5k Club
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371
Another try at getting positioning to work.
Code:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" 1920 0
Screen 2 "Screen2" 0 1080
Screen 3 "Screen3" 1920 1080
Option "Xinerama" "1" # enable XINERAMA extension. Default is disabled.
EndSection
2 members found this post helpful.
12-20-2021, 10:02 AM
#15
LQ Newbie
Registered: Dec 2021
Posts: 7
Original Poster
Rep:
Hi, sorry for the late reply (busy holiday and stuff). Thanks Allend, this did the trick. and now it works fine!
1 members found this post helpful.
All times are GMT -5. The time now is 10:17 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News