Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Create 2nd screen in Xorg
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
plisket
n00b
n00b


Joined: 07 Mar 2019
Posts: 16
Location: Москва

PostPosted: Fri Mar 22, 2019 6:02 pm    Post subject: Create 2nd screen in Xorg Reply with quote

I have 2 monitors and Xorg create one huge screen for them. But i want 2 different screens.
How to configure it?

In Xorg.0.log info that HDMI-2 has not monitor section, but it has.
xrandr:

Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 8192 x 8192
HDMI-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080     60.00*+  50.00    59.94 
   1920x1080i    60.00    50.00    59.94 
   1680x1050     59.88 
   1280x1024     75.02    60.02 
   1440x900      59.90 
   1280x960      60.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 
HDMI-2 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080     60.00*+  50.00    59.94 
   1920x1080i    60.00    50.00    59.94 
   1680x1050     59.88 
   1280x1024     75.02    60.02 
   1440x900      59.90 
   1280x960      60.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 
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-3 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
cat /etc/X11/xorg.conf.d/30screen.conf:

Section "Device"
    Identifier  "Device0"
    Option      "Monitor-HDMI-1" "HDMI1"
#    BusID       "PCI:00:02.0"
#    Driver      "i915"
EndSection

Section "Device"
    Identifier  "Device1"
    Option      "Monitor-HDMI-2" "HDMI2"
#    BusID       "PCI:00:02.0"
EndSection


Section "ServerLayout"
     Identifier "Twin Head"
     Screen "Screen0"
     Screen "Screen1" RightOf "Screen0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "HDMI1"
EndSection

Section "Screen"
    Identifier "Screen1"
    Device "Device1"
    Monitor "HDMI2"
EndSection

Section "Monitor"
  Identifier "HDMI1"
  Option      "Primary" "true"
#  Option "DPMS" "true"
EndSection

Section "Monitor"
  Identifier "HDMI2"
#  Option      "LeftOf" "HDMI1"
#  Option "DPMS" "true"
EndSection
cat /var/log/Xorg.0.log:

X.Org X Server 1.19.5
Release Date: 2017-10-12
[509221.081] X Protocol Version 11, Revision 0
[509221.081] Build Operating System: Linux 4.13.3-gentoo--qemu-and-ttyusb x86_64 Gentoo
[509221.081] Current Operating System: Linux ivm-pc 4.13.3-gentoo--qemu-and-ttyusb #13 SMP Mon Aug 6 15:17:41 MSK 2018 x86_64
[509221.081] Kernel command line: BOOT_IMAGE=/vmlinuz-4.13.3-gentoo--qemu-and-ttyusb root=/dev/sda3 ro
[509221.081] Build Date: 24 July 2018  06:16:01PM
[509221.081] 
[509221.081] Current version of pixman: 0.34.0
[509221.081]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[509221.081] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[509221.081] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Mar 19 16:03:41 2019
[509221.081] (==) Using config directory: "/etc/X11/xorg.conf.d"
[509221.081] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[509221.081] (==) ServerLayout "Twin Head"
[509221.081] (**) |-->Screen "Screen0" (0)
[509221.081] (**) |   |-->Monitor "HDMI1"
[509221.081] (**) |   |-->Device "Device0"
[509221.081] (**) |-->Screen "Screen1" (1)
[509221.081] (**) |   |-->Monitor "HDMI2"
[509221.081] (**) |   |-->Device "Device1"
[509221.081] (==) Automatically adding devices

<...>


[509221.118] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[509221.118] (==) modeset(0): RGB weight 888
[509221.118] (==) modeset(0): Default visual is TrueColor
[509221.118] (II) Loading sub module "glamoregl"
[509221.118] (II) LoadModule: "glamoregl"
[509221.118] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
[509221.119] (II) Module glamoregl: vendor="X.Org Foundation"
[509221.119]    compiled for 1.19.5, module version = 1.0.0
[509221.119]    ABI class: X.Org ANSI C Emulation, version 0.4
[509221.119] (II) glamor: OpenGL accelerated X.org driver based.
[509221.140] (II) glamor: EGL version 1.4 (DRI2):
[509221.141] (II) modeset(0): glamor initialized
[509221.219] (II) modeset(0): Output HDMI-1 using monitor section HDMI1
[509221.219] (**) modeset(0): Option "Primary" "true"
[509221.298] (II) modeset(0): Output HDMI-2 has no monitor section
[509221.298] (II) modeset(0): Output DP-1 has no monitor section
[509221.307] (II) modeset(0): Output HDMI-3 has no monitor section


[Moderator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
VinzC
Advocate
Advocate


Joined: 17 Apr 2004
Posts: 4974
Location: Dark side of the mood

PostPosted: Wed Mar 27, 2019 8:15 am    Post subject: Re: Create 2nd screen in Xorg Reply with quote

From your setup
Code:
Screen "Screen1" RightOf "Screen0"
indeed causes one (logical) display to appear next to the main one, making your desktop span over 2 monitors. This is expected from the configuration files as they are.

What do you mean
plisket wrote:
I want 2 different screens
by the way?
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
NTU
Apprentice
Apprentice


Joined: 17 Jul 2015
Posts: 163

PostPosted: Fri Mar 29, 2019 10:38 pm    Post subject: Reply with quote

Have you tried removing your configs from /etc/X11/xorg.conf.d and instead used a graphical front-end for setting up your display preferences? LXRandR and such exist for a reason.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 2880
Location: Illinois, USA

PostPosted: Sat Mar 30, 2019 12:53 am    Post subject: Re: Create 2nd screen in Xorg Reply with quote

VinzC wrote:
What do you mean
plisket wrote:
I want 2 different screens
by the way?

I think he means like VT7 on one screen and VT8 on the other.
Back to top
View user's profile Send private message
VinzC
Advocate
Advocate


Joined: 17 Apr 2004
Posts: 4974
Location: Dark side of the mood

PostPosted: Sat Apr 06, 2019 9:10 am    Post subject: Re: Create 2nd screen in Xorg Reply with quote

VinzC wrote:
What do you mean
plisket wrote:
I want 2 different screens
by the way?

Tony0945 wrote:
I think he means like VT7 on one screen and VT8 on the other.

Aha, is that beast not a multi-seat configuration? (I may mix up things at this point...)
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3689
Location: Dallas area

PostPosted: Sat Apr 06, 2019 10:51 am    Post subject: Reply with quote

From when I had 2 monitor set up (with 2 video cards, though I think you can do it with 2 outputs from 1 card with modifications)

Code:
Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nouveau"
    VendorName     "NVIDIA Corporation"
    BusID          "PCI:1:0:0"
    Option         "Backingstore" "true"
    Option          "DRI" "3"
    Option         "ZaphodHeads" "HDMI-1"
    Screen         0
EndSection

Section "Monitor"
    Identifier    "Monitor0"
    DisplaySize   598 336
    ModelName     "27mp35"
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "radeon"
    VendorName     "AMD"
    BusID          "PCI:4:0:0"
    Option         "Backingstore" "true"
    Option         "ZaphodHeads" "HDMI-1"
    Screen         0
EndSection

Section "Monitor"
    Identifier    "Monitor1"
    DisplaySize   476 268
    ModelName     "22mp47"
EndSection

_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 7.3.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum