Linux system xorg.conf files in detail _unix Linux

Source: Internet
Author: User

First look at a complete xorg.conf file, as follows:

Copy Code code as follows:

# /.../
# SaX generated X11 config file
# Created on:2009-05-31t19:02:32+0800.
#
# version:8.1
# Contact:marcus Schaefer <sax@suse.de>, 2005
# Contact:sax-user List #
# automatically generated by [Isax] (8.1)
# Please don't EDIT this file!
#
section "Files"
Fontpath "/usr/share/fonts/misc:unscaled"
Fontpath "/usr/share/fonts/local"
Fontpath "/usr/share/fonts/75dpi:unscaled"
Fontpath "/usr/share/fonts/100dpi:unscaled"
Fontpath "/usr/share/fonts/type1"
Fontpath "/USR/SHARE/FONTS/URW"
Fontpath "/usr/share/fonts/speedo"
Fontpath "/usr/share/fonts/pex"
Fontpath "/usr/share/fonts/cyrillic"
Fontpath "/usr/share/fonts/latin2/misc:unscaled"
Fontpath "/usr/share/fonts/latin2/75dpi:unscaled"
Fontpath "/usr/share/fonts/latin2/100dpi:unscaled"
Fontpath "/usr/share/fonts/latin2/type1"
Fontpath "/usr/share/fonts/latin7/75dpi:unscaled"
Fontpath "/usr/share/fonts/baekmuk:unscaled"
Fontpath "/usr/share/fonts/japanese:unscaled"
Fontpath "/usr/share/fonts/kwintv"
Fontpath "/usr/share/fonts/truetype"
Fontpath "/usr/share/fonts/uni:unscaled"
Fontpath "/usr/share/fonts/cid"
Fontpath "/usr/share/fonts/ucs/misc:unscaled"
Fontpath "/usr/share/fonts/ucs/75dpi:unscaled"
Fontpath "/usr/share/fonts/ucs/100dpi:unscaled"
Fontpath "/usr/share/fonts/hellas/misc:unscaled"
Fontpath "/usr/share/fonts/hellas/75dpi:unscaled"
Fontpath "/usr/share/fonts/hellas/100dpi:unscaled"
Fontpath "/usr/share/fonts/hellas/type1"
Fontpath "/usr/share/fonts/misc/sgi:unscaled"
Fontpath "/usr/share/fonts/xtest"
Fontpath "/opt/kde3/share/fonts"
Fontpath "Unix/:7100"
InputDevices "/dev/gpmdata"
InputDevices "/dev/input/mice"
Endsection
section "Serverflags"
Option "Allowmouseopenfail" "on"
Endsection
section "Module"
Load "Extmod"
Load "Type1"
Load "GLX"
Load "FreeType"
Load "DBE"
Load "V4L"
Endsection
section "InputDevice"
Driver "KBD"
Identifier "Keyboard[0]"
Option "Protocol" "Standard"
Option "Xkblayout" "Us"
Option "XkbModel" "pc104"
Option "Xkbrules" "XFree86"
Endsection
section "InputDevice"
Driver "Mouse"
Identifier "Mouse[1]"
Option "Buttons" "5"
Option "Device" "/dev/input/mice"
Option "Name" "Imps/2 Generic Wheel Mouse"
Option "Protocol" "EXPLORERPS/2"
Option "Vendor" "SYSP"
Option "Zaxismapping" "4 5"
Endsection
section "Monitor"
Displaysize 305 230
Horizsync 29-35
Identifier "Monitor[0]"
ModelName "800x600@56hz"
VendorName "--> VESA"
Vertrefresh 50-60
Usemodes "Modes[0]"
Endsection
section "Modes"
Identifier "Modes[0]"
Modeline "800x600" 35.55 800 832 912 1024 600 601 604 620
Modeline "768x576" 33.74 768 792 872 976 576 577 580 596
Modeline "640x480" 23.86 640 656 720 800 480 481 484 497
Endsection
Section ' Screen '
Defaultdepth 16
Subsection "Display"
Depth 15
Modes "800x600" "768x576" "640x480"
Endsubsection
Subsection "Display"
Depth 16
Modes "800x600" "768x576" "640x480"
Endsubsection
Subsection "Display"
Depth 24
Modes "800x600" "768x576" "640x480"
Endsubsection
Subsection "Display"
Depth 8
Modes "800x600" "768x576" "640x480"
Endsubsection
Device "Device[0]"
Identifier "Screen[0]"
Monitor "Monitor[0]"
Endsection
section "Device"
Boardname "VMWARE0405"
Busid "0:15:0"
Driver "VMware"
Identifier "Device[0]"
Screen 0
VendorName "VMWare Inc"
Endsection
section "Serverlayout"
Identifier "Layout[all]"
InputDevice "keyboard[0]" "Corekeyboard"
InputDevice "mouse[1]" "Corepointer"
Option "Clone" "Off"
Option "Xinerama" "Off"
Screen "screen[0]"
Endsection
section "DRI"
Group "Video"
Mode 0660
Endsection
section "Extensions"
Endsection

The above code finds that the xorg.conf file is
section "XXXX"
.........
Endsection

. Here we explain the meaning of each node.

One, input equipment--keyboard

Copy Code code as follows:

section "InputDevice"
Driver "KBD"
Identifier "Keyboard[0]"
Option "Protocol" "Standard"
Option "Xkblayout" "Us"
Option "XkbModel" "pc104"
Option "Xkbrules" "XFree86"
Endsection

Second, input equipment--mouse
Copy Code code as follows:

section "InputDevice"
Driver "Mouse"
Identifier "Mouse[1]"
Option "Buttons" "5"
Option "Device" "/dev/input/mice"
Option "Name" "Imps/2 Generic Wheel Mouse"
Option "Protocol" "EXPLORERPS/2"
Option "Vendor" "SYSP"
Option "Zaxismapping" "4 5"
Endsection

Third, monitor
Copy Code code as follows:

section "Monitor"
Displaysize 305 230
Horizsync 29-35
Identifier "Monitor[0]"
ModelName "800x600@56hz"
VendorName "--> VESA"
Vertrefresh 50-60
Usemodes "Modes[0]"
Endsection

among them,
Identifier: The unique name of the display. After these names, a number is added, and the first display is represented by 0 (Monitor[0]).

VendorName: Display manufacturer name.

ModelName: Display type name.

Horizsync: The horizontal refresh frequency range that is compatible with the monitor, in khz. This setting value also indicates whether a specific Modeline value is used in this monitor.

Four, graphics card

Copy Code code as follows:

section "Device"
Boardname "VMWARE0405"
Busid "0:15:0"
Driver "VMware"
Identifier "Device[0]"
Screen 0
VendorName "VMWare Inc"
Endsection

Five, screen
A monitor and a video card form a screen, described with section "screen", such as:
Copy Code code as follows:

Section ' Screen '
Defaultdepth 16
Subsection "Display"
Depth 15
Modes "800x600" "768x576" "640x480"
Endsubsection
Subsection "Display"
Depth 16
Modes "800x600" "768x576" "640x480"
Endsubsection
Subsection "Display"
Depth 24
Modes "800x600" "768x576" "640x480"
Endsubsection
Subsection "Display"
Depth 8
Modes "800x600" "768x576" "640x480"
Endsubsection
Device "Device[0]"
Identifier "Screen[0]"
Monitor "Monitor[0]"
Endsection

which
Identifier: Defines a "screen" name to be referenced in the "Serverlayout" section.

Device: Specifies the name in the "Device" section.

Monitor: Specifies the name in the "Monitor" section.

Defaultdepth: The default color depth (color Depth) number of digits.

Modes "800x600" "768x576" "640x480" means that the system will default to the resolution of 800x600 to fit, if the match fails, then select 768x576 resolution to continue.

VI. Modes

Copy Code code as follows:

section "Modes"
Identifier "Modes[0]"
Modeline "800x600" 35.55 800 832 912 1024 600 601 604 620
Modeline "768x576" 33.74 768 792 872 976 576 577 580 596
Modeline "640x480" 23.86 640 656 720 800 480 481 484 497
Endsection

Corresponds to the Modes in the screen section.

Seven, Serverlayout

Copy Code code as follows:

section "Serverlayout"
Identifier "Layout[all]"
InputDevice "keyboard[0]" "Corekeyboard"
InputDevice "mouse[1]" "Corepointer"
Option "Clone" "Off"
Option "Xinerama" "Off"
Screen "screen[0]"
Endsection

The Serverlayout section is primarily used to build the appearance of X server startup, where:

Identifier: The unique name of this serverlayout section.

Screen: Name specified in ' Screen ' section

InputDevice: The "inputdevice" section name in X server. There are usually only two lines set here, namely Mouse[0] and Keyboard[0], the first mouse and keyboard in the system, and most of the other devices can be ignored.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.