From 237346d4de301da3c5d473317e817f29d860b975 Mon Sep 17 00:00:00 2001 From: Victor Timofei Date: Mon, 21 Jun 2021 19:28:03 +0300 Subject: [PATCH] Version control my Xorg config --- .config/xorg.conf.d/07-intel.conf | 12 ++++++++++++ .config/xorg.conf.d/08-amdgpu.conf | 21 +++++++++++++++++++++ .config/xorg.conf.d/10-monitors.conf | 25 +++++++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 .config/xorg.conf.d/07-intel.conf create mode 100644 .config/xorg.conf.d/08-amdgpu.conf create mode 100644 .config/xorg.conf.d/10-monitors.conf diff --git a/.config/xorg.conf.d/07-intel.conf b/.config/xorg.conf.d/07-intel.conf new file mode 100644 index 0000000..2126cbf --- /dev/null +++ b/.config/xorg.conf.d/07-intel.conf @@ -0,0 +1,12 @@ +Section "Device" + Identifier "intel" + Driver "intel" + Option "AccelMethod" "sna" + Option "TearFree" "true" + Option "DRI" "3" +EndSection + +Section "Screen" + Identifier "intel" + Device "intel" +EndSection diff --git a/.config/xorg.conf.d/08-amdgpu.conf b/.config/xorg.conf.d/08-amdgpu.conf new file mode 100644 index 0000000..94101f8 --- /dev/null +++ b/.config/xorg.conf.d/08-amdgpu.conf @@ -0,0 +1,21 @@ +Section "ServerLayout" + Identifier "layout" + Screen 0 "AMD" + Inactive "intel" +EndSection + +Section "Device" + Identifier "AMD" + Driver "amdgpu" + BusID "PCI:0:1:0" + Option "TearFree" "true" + Option "DRI" "3" + Option "AccelMethod" "glamor" +EndSection + +Section "Screen" + Identifier "AMD" + Device "AMD" + GPUDevice "AMD" + Monitor "HDMI1" +EndSection diff --git a/.config/xorg.conf.d/10-monitors.conf b/.config/xorg.conf.d/10-monitors.conf new file mode 100644 index 0000000..39ece26 --- /dev/null +++ b/.config/xorg.conf.d/10-monitors.conf @@ -0,0 +1,25 @@ +Section "Monitor" + # Monitor Identify + Identifier "eDP1" + + # Setting Resolution and Modes + Option "PreferredMode" "1366x768" + Option "TargetRefresh" "60" + + Option "LeftOf" "HDMI1" + + Option "Position" "0 1008" +EndSection + +Section "Monitor" + # Monitor Identify + Identifier "HDMI1" + + # Setting Resolution and Modes + Option "PreferredMode" "3840x2160" + Option "TargetRefresh" "60" + + Option "RightOf" "eDP1" + + Option "Position" "2049 0" +EndSection