From 74d54236b70d51a7f184a932aa520e64b2cfe4cb Mon Sep 17 00:00:00 2001 From: mayfrost Date: Sun, 30 Dec 2018 11:40:53 -0300 Subject: [PATCH] Update X.md --- X.md | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/X.md b/X.md index 54fab76..dbb9171 100644 --- a/X.md +++ b/X.md @@ -42,7 +42,7 @@ __OPTION 2__ Or you can create specific configuration files under the _"/etc/X11/xorg.conf.d/"_ directory for particular cases. ### SCREEN RESOLUTION -To make changes you generally need to know supported resolutions. +To make changes you generally don't need to know supported resolutions but it helps using defaults. * List supported resolutions `xrandr` * Generate a modeline @@ -57,7 +57,7 @@ EndSection Section "Monitor" Identifier "" Modeline " - Option "PreferredMode" "" + Option "PreferredMode" "" Option "Enable" "True" EndSection @@ -66,11 +66,35 @@ Section "Screen" Monitor "" Device "" SubSection "Display" - Modes "" + Modes "_" EndSubSection EndSection ``` -In _"Modes"_ the resolution you want can contain a framerate appended but needs to be exact. +In _"Modes"_ the resolution you want can contain a framerate appended but needs to be exact. A full example configuration follows: +``` +Section "Device" + Identifier "Device0" + Driver "Intel" +EndSection + +Section "Monitor" + Identifier "HDMI1" + Modeline "1280x720_60.00" 74.50 1280 1344 1472 1664 720 723 728 748 -hsync +vsync + Option "PreferredMode" "1280x720" + Option "Enable" "True" +EndSection + +Section "Screen" + Identifier "Screen0" + Monitor "HDMI1" + Device "Device0" + SubSection "Display" + Modes "1280x720_60.00" + EndSubSection +EndSection + +``` +Notice the framerate appended with an underscore, this comes from the modeline. ### SCREEN TEARING To solve screen tearing you can use any of these config files in its appropriate directory.