Solved How to add monitor section to xorg.conf

I want to configure screen resolution and orientation of second monitor. I add section response for external monitor:

Code:
Section "Monitor"
  Identifier  "Monitor0"
  VendorName  "Monitor Vendor"
  ModelName  "Monitor Model"
EndSection

Section "Monitor"
  Identifier "HDMI3"
  VendorName "Monitor Vendor"
  ModelName "Monitor Model"
EndSection

Xorg now detected correctly output:

Code:
[  2433.926] (II) intel(0): Output LVDS1 using monitor section Monitor0
[  2433.926] (II) intel(0): Output VGA1 has no monitor section
[  2433.930] (II) intel(0): Output HDMI1 has no monitor section
[  2433.939] (II) intel(0): Output DP1 has no monitor section
[  2433.944] (II) intel(0): Output HDMI2 has no monitor section
[  2433.984] (II) intel(0): Output HDMI3 using monitor section HDMI3
[  2433.993] (II) intel(0): Output DP2 has no monitor section
[  2434.002] (II) intel(0): Output DP3 has no monitor section

But i have problem with resolution. LVDS is correctly. 1600x900 but HDMI3 is still 1440x600 What I am doing wrong...
Code:
Section "Screen"
  Identifier "Screen0"
  Device  "Card0"
  Monitor  "Monitor0"
  SubSection "Display"
  Viewport  0 0
  Depth  24
  Modes "1600x900"
  EndSubSection
EndSection

Section "Screen"
  Identifier "Screen0"
  Device "Card0"
  Monitor "HDMI3"
  SubSection "Display"
  Viewport 0 0
  Depth 24
  Modes "1920x1080"
  EndSubSection
EndSection

Any body can help?
 
It doesn't use xorg.conf any more, but instead it uses the directory /usr/local/etc/X11/xorg.conf.d/. See https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-config.html for that.

Why is one "Monitor" section set to HDMI3 and the other to Monitor0? That doesn't seem right, because they are using different types of terms. And both Screens are set to 0. Remove the xorg.conf file, then see what the natural monitor settings are, by running xrandr.

This requires x11/xrandr.

To get a second monitor running, try something like
Code:
xrandr --output LVDS-1 --right-of HDMI-3
(not from root), according to what showed up by running xrandr by itself. Then put this into your desktop script.

From reading the handbook link, xrandr appears able to set the screen resolution, so you may not need to use the xorg.conf.d directory.
 
xorg.conf can still be used, it's just that xorg.conf.d is easier.

I have two monitors, but only one Screen section. Xfce4's Settings/Display can configure how the two screens are arranged. Other window managers might have different controls, or none, and then xrandr(1) can be used. There are also settings in each monitor section for position and rotation, and although these used to work, they were ignored the last time I tried them.

What model is the HDMI3 monitor? Are you certain it is actually a 1920x1080 monitor? Resolution is usually identified by EDID autodetection from the monitor.

Please show the output of xrandr.
 
I know if I can do it using Xrand but I want do do it using Xorg config file.

Xorg.2.log

Code:
[  481.819] (II) intel(0): EDID for output HDMI3
[  481.819] (II) intel(0): Manufacturer: BNQ  Model: 785a  Serial#: 21573
[  481.819] (II) intel(0): Year: 2010  Week: 51
[  481.819] (II) intel(0): EDID Version: 1.3
[  481.819] (II) intel(0): Digital Display Input
[  481.819] (II) intel(0): Max Image Size [cm]: horiz.: 48  vert.: 27
[  481.819] (II) intel(0): Gamma: 2.20
[  481.819] (II) intel(0): DPMS capabilities: Off
[  481.819] (II) intel(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
[  481.819] (II) intel(0): Default color space is primary color space
[  481.819] (II) intel(0): First detailed timing is preferred mode
[  481.819] (II) intel(0): redX: 0.651 redY: 0.334  greenX: 0.286 greenY: 0.600
[  481.819] (II) intel(0): blueX: 0.152 blueY: 0.075  whiteX: 0.313 whiteY: 0.329
[  481.819] (II) intel(0): Supported established timings:
[  481.819] (II) intel(0): 720x400@70Hz
[  481.819] (II) intel(0): 640x480@60Hz
[  481.819] (II) intel(0): 640x480@67Hz
[  481.819] (II) intel(0): 640x480@72Hz
[  481.819] (II) intel(0): 640x480@75Hz
[  481.819] (II) intel(0): 800x600@56Hz
[  481.819] (II) intel(0): 800x600@60Hz
[  481.819] (II) intel(0): 800x600@72Hz
[  481.819] (II) intel(0): 800x600@75Hz
[  481.819] (II) intel(0): 832x624@75Hz
[  481.819] (II) intel(0): 1024x768@60Hz
[  481.819] (II) intel(0): 1024x768@70Hz
[  481.819] (II) intel(0): 1024x768@75Hz
[  481.819] (II) intel(0): 1280x1024@75Hz
[  481.819] (II) intel(0): 1152x864@75Hz
[  481.819] (II) intel(0): Manufacturer's mask: 0
[  481.819] (II) intel(0): Supported standard timings:
[  481.819] (II) intel(0): #0: hsize: 1152  vsize 720  refresh: 60  vid: 113
[  481.819] (II) intel(0): #1: hsize: 1152  vsize 864  refresh: 75  vid: 20337
[  481.819] (II) intel(0): #2: hsize: 1280  vsize 720  refresh: 60  vid: 49281
[  481.819] (II) intel(0): #3: hsize: 1280  vsize 800  refresh: 60  vid: 129
[  481.819] (II) intel(0): #4: hsize: 1280  vsize 960  refresh: 60  vid: 16513
[  481.819] (II) intel(0): #5: hsize: 1440  vsize 900  refresh: 60  vid: 149
[  481.819] (II) intel(0): #6: hsize: 1440  vsize 900  refresh: 75  vid: 3989
[  481.819] (II) intel(0): #7: hsize: 1680  vsize 1050  refresh: 60  vid: 179
[  481.819] (II) intel(0): Supported detailed timing:
[  481.819] (II) intel(0): clock: 148.5 MHz  Image Size:  478 x 269 mm
[  481.819] (II) intel(0): h_active: 1920  h_sync: 2008  h_sync_end 2052 h_blank_end 2200 h_border: 0
[  481.819] (II) intel(0): v_active: 1080  v_sync: 1084  v_sync_end 1089 v_blanking: 1125 v_border: 0
[  481.819] (II) intel(0): Serial No: MCA01837026
[  481.819] (II) intel(0): Ranges: V min: 50 V max: 76 Hz, H min: 24 H max: 83 kHz, PixClock max 215 MHz
[  481.819] (II) intel(0): Monitor name: BenQG2222HDL
[  481.819] (II) intel(0): EDID (in hex):
[  481.819] (II) intel(0):    00ffffffffffff0009d15a7845540000
[  481.819] (II) intel(0):    3314010380301b782ee615a655499927
[  481.820] (II) intel(0):    135054bfef807100714f81c081008140
[  481.820] (II) intel(0):    9500950fb300023a801871382d40582c
[  481.820] (II) intel(0):    4500de0d1100001e000000ff004d4341
[  481.820] (II) intel(0):    30313833373032360a20000000fd0032
[  481.820] (II) intel(0):    4c185315000a202020202020000000fc
[  481.820] (II) intel(0):    0042656e51473232323248444c0a0007
[  481.820] (II) intel(0): Printing probed modes for output HDMI3
[  481.820] (II) intel(0): Modeline "1920x1080"x60.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[  481.820] (II) intel(0): Modeline "1680x1050"x59.9  119.00  1680 1728 1760 1840  1050 1053 1059 1080 +hsync -vsync (64.7 kHz e)
[  481.820] (II) intel(0): Modeline "1280x1024"x75.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[  481.820] (II) intel(0): Modeline "1440x900"x75.0  136.75  1440 1536 1688 1936  900 903 909 942 -hsync +vsync (70.6 kHz e)
[  481.820] (II) intel(0): Modeline "1440x900"x59.9  88.75  1440 1488 1520 1600  900 903 909 926 +hsync -vsync (55.5 kHz e)
[  481.820] (II) intel(0): Modeline "1280x960"x60.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz e)
[  481.820] (II) intel(0): Modeline "1280x800"x59.9  71.00  1280 1328 1360 1440  800 803 809 823 +hsync -vsync (49.3 kHz e)
[  481.820] (II) intel(0): Modeline "1152x864"x75.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz e)
[  481.820] (II) intel(0): Modeline "1280x720"x60.0  74.44  1280 1336 1472 1664  720 721 724 746 -hsync +vsync (44.7 kHz)
[  481.820] (II) intel(0): Modeline "1152x720"x60.0  67.28  1152 1208 1328 1504  720 721 724 746 -hsync +vsync (44.7 kHz)
[  481.820] (II) intel(0): Modeline "1024x768"x75.1  78.80  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.1 kHz e)
[  481.820] (II) intel(0): Modeline "1024x768"x70.1  75.00  1024 1048 1184 1328  768 771 777 806 -hsync -vsync (56.5 kHz e)
[  481.820] (II) intel(0): Modeline "1024x768"x60.0  65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[  481.820] (II) intel(0): Modeline "832x624"x74.6  57.28  832 864 928 1152  624 625 628 667 -hsync -vsync (49.7 kHz e)
[  481.820] (II) intel(0): Modeline "800x600"x72.2  50.00  800 856 976 1040  600 637 643 666 +hsync +vsync (48.1 kHz e)
[  481.820] (II) intel(0): Modeline "800x600"x75.0  49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz e)
[  481.820] (II) intel(0): Modeline "800x600"x60.3  40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[  481.820] (II) intel(0): Modeline "800x600"x56.2  36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz e)
[  481.820] (II) intel(0): Modeline "640x480"x75.0  31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz e)
[  481.820] (II) intel(0): Modeline "640x480"x72.8  31.50  640 664 704 832  480 489 491 520 -hsync -vsync (37.9 kHz e)
[  481.820] (II) intel(0): Modeline "640x480"x66.7  30.24  640 704 768 864  480 483 486 525 -hsync -vsync (35.0 kHz e)
[  481.820] (II) intel(0): Modeline "640x480"x60.0  25.20  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[  481.820] (II) intel(0): Modeline "720x400"x70.1  28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz e)


xrandr:

Code:
Screen 0: minimum 320 x 200, current 3520 x 1080, maximum 8192 x 8192
LVDS1 connected 1600x900+0+0 (normal left inverted right x axis y axis) 310mm x 174mm
  1600x900  59.90*+  39.93
  1024x768  60.00
  800x600  60.32  56.25
  640x480  59.94
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
HDMI3 connected 1920x1080+1600+0 (normal left inverted right x axis y axis) 478mm x 269mm
  1920x1080  60.00*+
  1680x1050  59.88
  1280x1024  75.02
  1440x900  74.98  59.90
  1280x960  60.00
  1280x800  59.91
  1152x864  75.00
  1280x720  59.97
  1152x720  59.97
  1024x768  75.08  70.07  60.00
  832x624  74.55
  800x600  72.19  75.00  60.32  56.25
  640x480  75.00  72.81  66.67  60.00
  720x400  70.08
DP2 disconnected (normal left inverted right x axis y axis)
DP3 disconnected (normal left inverted right x axis y axis)
 
According to the xrandr output, that monitor is already running at 1920x1080. The extra Screen section might be the cause of the problems.
 
I see if nope... And KDE show me 1440x900... Xorg log tell the same:

Code:
[  721.305] (II) intel(0): Output LVDS1 using initial mode 1600x900
[  721.305] (II) intel(0): Output HDMI3 using initial mode 1440x900
 
Could be KDE with video settings, numerous other things. Please try just plain X with the twm default.
 
Ok I split screen, and I now know if Xorg read only one section response "Screen" I still do not know how to set resolution of second monitor in one Section "Monitor" Second section is not reading. I check it.

My actually Xorg.conf:

Code:
Section "Monitor"
   Identifier  "Monitor0"
   VendorName  "Monitor Vendor"
   ModelName  "Monitor Model"
EndSection

Section "Monitor"
   Identifier "HDMI3"
   VendorName "Monitor Vendor"
   ModelName "Monitor Model"
   Option "RightOf" "Monitor0"
EndSection

Section "Screen"
   Identifier "Screen0"
   Device "Card0"
   Monitor "Monitor0"
 SubSection "Display"
   Modes "1600x900"
 EndSubSection
EndSection

Section "Screen"
   Identifier "Screen0"
   Device "Card0"
   Monitor "HDMI3"
 SubSection "Display"
   Modes "1920x1080"
 EndSubSection
EndSection


_________________________________________________________-
Code:
Screen 0: minimum 320 x 200, current 1600 x 900, maximum 8192 x 8192
LVDS1 connected 1600x900+0+0 (normal left inverted right x axis y axis) 310mm x 174mm
  1600x900  59.90*+  39.93 
  1024x768  60.00 
  800x600  60.32  56.25 
  640x480  59.94 
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
HDMI3 connected 1440x900+0+0 (normal left inverted right x axis y axis) 478mm x 269mm
  1920x1080  60.00 +
  1680x1050  59.88 
  1280x1024  75.02 
  1440x900  74.98*  59.90 
  1280x960  60.00 
  1280x800  59.91 
  1152x864  75.00 
  1280x720  59.97 
  1152x720  59.97 
  1024x768  75.08  70.07  60.00 
  832x624  74.55 
  800x600  72.19  75.00  60.32  56.25 
  640x480  75.00  72.81  66.67  60.00 
  720x400  70.08 
DP2 disconnected (normal left inverted right x axis y axis)
DP3 disconnected (normal left inverted right x axis y axis)
 
Please rename or delete your xorg.conf and start X without it. If you need to enter monitor orientation and the desktop software does not do that itself, try just a single monitor file for only that setting in xorg.conf.d:

/usr/local/etc/X11/xorg.conf.d/monitors.conf:
Code:
Section "Monitor"
        Identifier "HDMI3"
        Option     "Rotate" "Right"
EndSection
 
Which part? If you would post the complete Xorg.0.log on pastebin or someplace similar, we might have a chance.
 
Ok. Working Thanks for help! If I use Rotate, screen of HDMI3 is rotate, means Xorg do 9:16 from 16:9, Vertical Video Syndrome, but I suppose if You know it. Look: http://i.imgur.com/F2di4He.jpg
But Xorg detect section for HDMI3, so I set one more section for LVDS1:

/usr/local/etc/X11/xorg.conf.d/monitors.conf
Code:
Section "Monitor"
  Identifier "HDMI3"
  Option "RightOf" "LVDS1"
EndSection

Section "Monitor"
  Identifier "LVDS1"
  Option "LeftOf" "HDMI3"
EndSection


And resolution: (Identifier on this section is no needed, for me)

/usr/local/etc/X11/xorg.conf.d/screen-resolution.conf
Code:
Section "Screen"
  Identifier "HDMI3"
  SubSection "Display"
  Modes "1920x1080"
  EndSubSection
EndSection

Section "Screen"
  Identifier "LVDS1"
  SubSection "Display"
  Modes "1600x900"
  EndSubSection
EndSection

Now Xorg.0.log looks that, and working correctly (I do not check another screen resolution today on this setting).

Code:
[  20.624] (II) intel(0): Output LVDS1 using monitor section LVDS1
[  20.624] (**) intel(0): Option "LeftOf" "HDMI3"
[  20.625] (II) intel(0): Output VGA1 has no monitor section
[  20.629] (II) intel(0): Output HDMI1 has no monitor section
[  20.638] (II) intel(0): Output DP1 has no monitor section
[  20.643] (II) intel(0): Output HDMI2 has no monitor section
[  20.683] (II) intel(0): Output HDMI3 using monitor section HDMI3
[  20.683] (**) intel(0): Option "RightOf" "LVDS1"
[  20.692] (II) intel(0): Output DP2 has no monitor section
[  20.701] (II) intel(i0): Output DP3 has no monitor section

Code:
[  20.740] (II) intel(0): Output LVDS1 using initial mode 1600x900
[  20.740] (II) intel(0): Output HDMI3 using initial mode 1920x1080

Important. If all section HDMI3 and LVDS1 is replacing (HDMI3 is first in file) then Xorg do now work correctly. I do not know why, but I suppose it.
 
Last edited:
Someone change name of screen detection adding - beetween interface name and order number, so this config will be not working, so:

/usr/local/etc/X11/xorg.conf.d/monitors.conf
Code:
Section "Monitor"
  Identifier "HDMI-3"
  Option "RightOf" "LVDS-1"
  Option "Primary" "false"
EndSection

Section "Monitor"
  Identifier "LVDS-1"
  Option "LeftOf" "HDMI-3"
  Option "Primary" "true"
EndSection

/usr/local/etc/X11/xorg.conf.d/screen-resolution.conf

Code:
Section "Screen"
  Identifier "HDMI-3"
  SubSection "Display"
  Modes "1920x1080"
  EndSubSection
EndSection

Section "Screen"
  Identifier "LVDS-1"
  SubSection "Display"
  Modes "1600x900"
  EndSubSection
EndSection
 
Someone change name of screen detection adding - beetween interface name and order number, so this config will be not working, so:

/usr/local/etc/X11/xorg.conf.d/monitors.conf
Code:
Section "Monitor"
  Identifier "HDMI-3"
  Option "RightOf" "LVDS-1"
  Option "Primary" "false"
EndSection

Section "Monitor"
  Identifier "LVDS-1"
  Option "LeftOf" "HDMI-3"
  Option "Primary" "true"
EndSection

/usr/local/etc/X11/xorg.conf.d/screen-resolution.conf

Code:
Section "Screen"
  Identifier "HDMI-3"
  SubSection "Display"
  Modes "1920x1080"
  EndSubSection
EndSection

Section "Screen"
  Identifier "LVDS-1"
  SubSection "Display"
  Modes "1600x900"
  EndSubSection
EndSection
The - is not consistent in the drivers used. One driver needs a -, and another one doesn't. wblock@ once suggested filing a bug for it at xorg, so both would be the same.
 
Back
Top