ServerLayout
The ServerLayout
section binds together the input and output devices controlled by the X server. At a minimum, this section must specify one output device and one input device. By default, a monitor (output device) and keyboard (input device) are specified.
The following example illustrates a typical ServerLayout
section:
Article "ServerLayout" Identifier "Default Layout" Screen 0 "Screen0" 0 0 InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndArticle
The following entries are commonly used in the ServerLayout
section:
Identifier
- Specifies a unique name for thisServerLayout
section.
Screen
- Specifies the name of aScreen
section to be used with the X server. More than oneScreen
option may be present.The following is an example of a typical
Screen
entry:Screen 0 "Screen0" 0 0
The first number in this example
Screen
entry (0
) indicates that the first monitor connector or head on the video card uses the configuration specified in theScreen
section with the identifier"Screen0"
.An example of a
Screen
section with the identifier"Screen0"
can be found in "Screen
".If the video card has more than one head, another
Screen
entry with a different number and a differentScreen
section identifier is necessary .The numbers to the right of
"Screen0"
give the absolute X and Y coordinates for the upper-left corner of the screen (0 0
by default).InputDevice
- Specifies the name of anInputDevice
section to be used with the X server.It is advisable that there be at least two
InputDevice
entries: one for the default mouse and one for the default keyboard. The optionsCorePointer
andCoreKeyboard
indicate that these are the primary mouse and keyboard.Option "
- An optional entry which specifies extra parameters for the section. Any options listed here override those listed in the<option-name>
"ServerFlags
section.Replace
<option-name>
with a valid option listed for this section in thexorg.conf
man page.
It is possible to put more than one ServerLayout
section in the /etc/X11/xorg.conf
file. By default, the server only reads the first one it encounters, however.
If there is an alternative ServerLayout
section, it can be specified as a command line argument when starting an X session.