Xorg configuration: Difference between revisions

From wikinotes
(Created page with "Xorg is mostly self-configuring now, but you can still configure it with files. = Locations = <blockquote> {| class="wikitable" |- | <code>/etc/X11/xorg.conf</code> || X conf...")
 
 
Line 15: Line 15:
<blockquote>
<blockquote>
<source lang="bash">
<source lang="bash">
sudo Xorg -configure :1  # autoconfigure xorg in /root/xorg.conf.new
sudo Xorg -configure :1  # autoconfigure xorg in /root/xorg.conf.new (change to :2 if already running xorg)
</source>
</source>
</blockquote><!-- Auto-Configure -->
</blockquote><!-- Auto-Configure -->

Latest revision as of 01:50, 17 April 2022

Xorg is mostly self-configuring now, but you can still configure it with files.

Locations

/etc/X11/xorg.conf X configuration
/etc/X11/xorg.conf.d/*.conf Add/override configuration

Auto-Configure

sudo Xorg -configure :1  # autoconfigure xorg in /root/xorg.conf.new (change to :2 if already running xorg)

Syntax

Example

# example with 3x monitor setup [1920x1080][2560x1440][1920x1080]

Section "Monitor"
	Identifier "DP-1"
	Option "Disable" "false"
	Option "Rotate" "normal"
	Option "Position" "0 0"
	Option "TargetRefresh" "60"
	Option "PreferredMode" "1920x1080"
EndSection

Section "Monitor"
	Identifier "DP-3"
	Option "Primary" "true"
	Option "Disable" "false"
	Option "Rotate" "normal"
	Option "Position" "1920 0"
	Option "TargetRefresh" "60"
	Option "PreferredMode" "2560x1440"
EndSection

Section "Monitor"
	Identifier "DP-2"
	Option "Disable" "false"
	Option "Rotate" "normal"
	Option "Position" "4480 0"
	Option "TargetRefresh" "60"
	Option "PreferredMode" "1920x1080"
EndSection

Components

InputDevice
Device
Monitor/Output
Screen
Desktops/Workspaces