#
# The Xserver(8) recognizes the dimensions of the monitor correctly, but
# later the intel(5) driver sets them to much larger values. I guess this
# is considered a feature, intended to shrink the output on very small
# screens like subnotebooks/tablets/phones. NOTE this sizing stuff is
# slightly complex (pixel size, distance eye-display, etc...).
# Pro:
# + for the GUI it appears like a larger monitor, and more items can be
# placed on the sceen -- this improves the usability of these devices.
# + for developers it's much simpler to agree on a standard resolution
# (nowadays 96 DPI), and write their programs just for that.
# Then the requirements of different use-cases are done by scaling.
# Contra:
# - the server lies (intentionally) about the DPI, thus all the fonts are
# shrinked and often difficult to read, esp. when browsing the internet.
#
# While this may make sense on a smartphone/tablet, I want "the truth" on
# my 14" laptop.
#
# The key is to link the monitor to the card in the device section of the
# graphics card: e.g. in /usr/local/etc/X11/xorg.conf.d/intel-HD-5500.conf
# Option "Monitor-LVDS1" "<Notebook internal LCD>" or
# Option "Monitor-eDP1" "<Notebook internal TFT>"
# Option "Monitor-DP2" "<external monitor (needs setup)>"
# NOTE: beware, naturally in a docking station the numbering changes:
# Option "Monitor-DP2-3" "<external LCD [VGA,docked]>"
#
Section "Monitor"
Identifier "<default monitor>"
#these two should be enabled if DisplaySize is set below
VendorName "CMN"
ModelName "1482"
Option "primary" "yes"
# This monitor does not report power management features...
# Option "DPMS" "off"
# You can grep(1) these values from /var/log/Xorg.0.log
# Although the Xserver(8) detects it, we have to tell intel(5) explicitely
# to use this and not setting the wrong DPI.
DisplaySize 309 174 # also in Xorg.0.log
EndSection
Section "Monitor"
Identifier "<external LCD [Philips]>"
# If you coment out the next two lines, this will match any monitor...
VendorName "PHL" # Philips
ModelName "81d" # Philips 170b
# tell the GPU driver to use this and do not set the wrong DPI.
DisplaySize 338 270 # grep(1) from Xorg.0.log: "Image size"
Option "PreferedMode" "1280x1024"
# For multihead-setup:
Option "primary" "no"
Option "LeftOf" "<default monitor>"
EndSection
Section "Monitor"
Identifier "<external monitor (needs setup)>"
#Option "Ignore" "yes"
Option "primary" "no"
Option "leftOf" "<default monitor>"
# tell the GPU driver to use this and do not set the wrong DPI.
#DisplaySize horiz vert # TODO: grep(1) from Xorg.0.log: "Image size"
EndSection
Section "Screen"
Identifier "<default Screen>"
Device "<Intel HD Graphics 5500>"
Monitor "<default monitor>"
EndSection
Section "Screen"
Identifier "<external Screen [Philips]>"
Device "<Intel HD Graphics 5500>"
Monitor "<external LCD [Philips]>"
EndSection
Section "Screen"
Identifier "<external Screen [unknown]>"
Device "<Intel HD Graphics 5500>"
Monitor "<external monitor (needs setup)>"
EndSection
Section "ServerLayout"
Identifier "<Multi Screen Layout [Philips]>"
Screen 0 "<default Screen>"
Screen 1 "<external Screen [Philips]>" leftOf "<default Screen>"
EndSection
Section "ServerLayout"
Identifier "<Multi Screen Layout [unknown]>"
Screen 0 "<default Screen>"
Screen 1 "<external Screen [unknown]>" leftOf "<default Screen>"
EndSection
Section "ServerLayout"
Identifier "<Default Screen Layout [solo]>"
Screen "<default Screen>"
EndSection
#
# Here we switch between layouts -- TODO: find out out to do that from sddm(8)
#
Section "ServerFlags"
# Option "DefaultServerLayout" "<Default Screen Layout [solo]>"
Option "DefaultServerLayout" "<Multi Screen Layout [Philips]>"
# Option "DefaultServerLayout" "<Multi Screen Layout [unknown]>"
EndSection
Section "Module"
# load "glamoregl" # for Option "AccelMethod" "glarmor"
EndSection
Section "Device"
Identifier "<Intel HD Graphics 5500>"
Driver "intel"
Option "TripleBuffer" "on"
Option "TearFree" "on"
Option "UseEDIDDpi" "yes"
# Option "AccelMethod" "glamor" # Default: UXA
# These are now in monitors.conf
Option "Monitor-eDP-1" "<default monitor>"
Option "Monitor-DP-1" "<external monitor (needs setup)>"
Option "Monitor-DP-2" "<external LCD [Philips]>"
Option "Monitor-HDMI-1" "<external LCD [Philips]>"
Option "Monitor-HDMI-2" "<external LCD [Philips]>"
EndSection
# RTFM xorg.conf(5) says: one "Device" section for each head.
# That's definitely bullshit! This fails:
#Section "Device"
# Identifier "<Intel HD Graphics 5500 [Philips]>"
# Driver "intel"
# Screen 1
# Option "TearFree" "on"
# Option "Monitor-DP2-1" "<external LCD [Philips]>"
#EndSection
#Section "Device"
# Identifier "<Intel HD Graphics 5500 [VGA,internal]>"
# Driver "intel"
# Screen 2
# Option "TearFree" "on"
# Option "Monitor-DP2" "<external monitor (needs setup)>"
#EndSection