Introduction to the Xorg. conf file in Linux

Source: Internet
Author: User

Introduction to the Xorg. conf file in Linux

 

First look at a complete Xorg. conf file, as shown below:

#/... /<Br/> # sax generated X11 config file <br/> # created on: 2009-05-31t19: 02: 32 + 0800. <br/> # version: 8.1 <br/> # contact: Marcus Schaefer <sax@suse.de>, 2005 <br/> # contact: sax-user list <pttps://lists.berlios.de/mailman/listinfo/sax-users> <br/> # automatically generated by [isax] (8.1) <br/> # Please do NOT edit this file! <Br/> # <br/> section "Files" <br/> fontpath "/usr/share/fonts/MISC: unscaled "<br/> fontpath"/usr/share/fonts/local "<br/> fontpath"/usr/share/fonts/75 DPI: unscaled "<br/> fontpath"/usr/share/fonts/100 dpi: unscaled "<br/> fontpath"/usr/share/fonts/type1 "<br/> fontpath"/usr/share/fonts/urw "<br/> fontpath"/usr /share/fonts/Speedo "<br/> fontpath"/usr/share/fonts/PEX "<br/> fontpath"/usr/share/fonts/Cyrillic "<br/> fontpath "/usr/share/fonts/latin2/MISC: unscaled "<br/> fontpath"/usr/share/fonts/latin2/75 DPI: unscaled "<br/> fontpath"/usr/share/fonts/latin2/100 dpi: unscaled "<br/> fontpath"/usr/share/fonts/latin2/type1 "<br/> fontpath"/usr/share/fonts/latin7/75 DPI: unscaled "<br/> fontpath"/usr/share/fonts/baekmuk: unscaled "<br/> fontpath"/usr/share/fonts/Japanese: unscaled "<br/> fontpath"/usr/share/fonts/kwintv "<br/> fontpath"/usr/share/fonts/TrueType "<br/> fontpath"/usr /share/fonts/UNI: unscaled "<br/> fontpath"/usr/share/fonts/CID "<br/> fontpath"/usr/share/fonts/UCS/MISC: unscaled "<br/> fontpath"/usr/share/fonts/UCS/75 DPI: unscaled "<br/> fontpath"/usr/share/fonts/UCS/100 dpi: unscaled "<br/> fontpath"/usr/share/fonts/Hellas/MISC: unscaled "<br/> fontpath"/usr/share/fonts/Hellas/75 DPI: unscaled "<br/> fontpath"/usr/share/fonts/Hellas/100 dpi: unscaled "<br/> fontpath"/usr/share/fonts/Hellas/type1 "<br/> fontpath"/usr/share/fonts/MISC/SGI: unscaled "<br/> fontpath"/usr/share/fonts/xtest "<br/> fontpath"/opt/kde3/share/fonts "<br/> fontpath" UNIX/: 7100 "<br/> inputdevices"/dev/gpmdata "<br/> inputdevices"/dev/input/mice "<br/> endsection <br/> section" serverflags "< br/> Option "allowmouseopenfail" "on" <br/> endsection <br/> section "module" <br/> load "extmod" <br/> load "type1" <br/> load "Glx" <br/> load "FreeType" <br/> load "DBE" <br/> load "v4l" <br/> endsection <br/> section "inputdevice" <br/> driver "KBD" <br/> identifier "keyboard [0]" <br/> Option "protocol" "standard" <br/> Option" xkblayout "" us "<br/> Option" xkbmodel "" PC104 "<br/> Option" xkbrules "" xfree86 "<br/> endsection <br/> section" inputdevice" <br/> driver "Mouse" <br/> identifier "mouse [1]" <br/> Option "buttons" "5" <br/> Option "device ""/ dev/input/mice "<br/> Option" name "" imps/2 generic wheel mouse "<br/> Option" protocol "" assumerps/2 "<br/> Option "vendor" "sysp" <br/> Option "zaxismapping" "4 5" <br/> endsection <br/> section "Monitor" <br/> displaysize 305 <br /> horizsync 29-35 <br/> identifier "monitor [0]" <br/> modelname "800x600 @ 56Hz" <br/> vendorname "--> VESA" <br /> vertrefresh 50-60 <br/> usemodes "modes [0]" <br/> endsection <br/> section "Modes" <br/> identifier "modes [0] "<br/> modeline" 800x600 "35.55 800 832 912 1024 600 601 <br/> modeline" 604x620 "768 576 33.74 768 792 872 976 576 <br/> modeline "640x480" 23.86 640 656 720 800 480 481 <br/> endsection <br/> section "screen" <br/> defaultdepth 16 <br/> subsection "display" <br/> depth 15 <br/> Modes "800x600" "768x576" "640x480" <br/> endsubsection <br/> subsection "display" <br/> depth 16 <br/> Modes "800x600" "768x576" "640x480" <br/> endsubsection <br/> subsection "display" <br/> depth 24 <br/> Modes "800x600" "768x576" "640x480" <br/> endsubsection <br/> subsection" display "<br/> depth 8 <br/> Modes" 800x600 "" 768x576 "" 640x480 "<br/> endsubsection <br/> device" Device [0] "<br/> identifier" screen [0] "<br/> monitor" monitor [0] "<br/> endsection <br/> section" device "< br/> boardname "vmware0405" <br/> busid ":15:0" <br/> driver "VMware" <br/> identifier "device [0]" <br/> screen 0 <br/> vendorname "VMware Inc" <br/> endsection <br/> section "serverlayout" <br/> identifier "layout [all]" <br/> inputdevice "keyboard [0] "" corekeyboard "<br/> inputdevice" mouse [1] "" corepointer "<br/> Option" clone "" off "<br/> Option" xinerama" "Off" <br/> screen "screen [0]" <br/> endsection <br/> section "dri" <br/> group "video" <br/> mode 0660 <br/> endsection <br/> section "extensions" <br/> endsection <br/> 

 

Through the above Code, we will find that the Xorg. conf file is composed

Section "XXXX"

.........

Endsection

The following describes the meaning of each node.

1. Enter the device-keyboard

Section "inputdevice" <br/> driver "KBD" <br/> identifier "keyboard [0]" <br/> Option "protocol" "standard" <br/> Option" xkblayout "" us "<br/> Option" xkbmodel "" PC104 "<br/> Option" xkbrules "" xfree86 "<br/> endsection <br/> 

2. Enter the device-Mouse

Section "inputdevice" <br/> driver "Mouse" <br/> identifier "mouse [1]" <br/> Option "buttons" "5" <br/> Option" device ""/dev/input/mice "<br/> Option" name "" imps/2 generic wheel mouse "<br/> Option" protocol "" assumerps/2 "< br/> Option "vendor" "sysp" <br/> Option "zaxismapping" "4 5" <br/> endsection <br/> 

Iii. Display

Section "Monitor" <br/> displaysize 305 230 <br/> horizsync 29-35 <br/> identifier "monitor [0]" <br/> modelname "800x600 @ 56Hz "<br/> vendorname" --> VESA "<br/> vertrefresh 50-60 <br/> usemodes" modes [0] "<br/> endsection <br/> 

Where,

 

Identifier: Unique name of the monitor. Add a number after these names, and the first display represents 0 (monitor [0]).

Vendorname: name of the display manufacturer.

Modelname: name of the display type.

Horizsync: the horizontal refresh frequency range compatible with the display, in kHz. This setting value also specifies whether a specific modeline value is used in this display.

Iv. graphics card

Section "device" <br/> boardname "vmware0405" <br/> busid "" <br/> driver "VMware" <br/> identifier "device [0]" <br/> screen 0 <br/> vendorname "VMware Inc" <br/> endsection <br/> 

5. Screen

A display and a video card form a screen, which is described by section "screen", such:

Section "screen" <br/> defaultdepth 16 <br/> subsection "display" <br/> depth 15 <br/> Modes "800x600" "768x576 "" 640x480 "<br/> endsubsection <br/> subsection" display "<br/> depth 16 <br/> Modes" 800x600 "" 768x576 "" 640x480 "<br/> endsubsection <br/> subsection" display "<br/> depth 24 <br/> Modes" 800x600 "" 768x576 "" 640x480 "<br/> endsubsection <br/> subsection" display "<br/> depth 8 <br/> Modes" 800x600 "" 768x576 "" 640x480 "<br/> endsubsection <br/> device" device [0] "<br/> identifier" screen [0] "<br/> monitor" monitor [0] "< br/> endsection <br/> 

 

Where,

 

Identifier: defines a "screen" name for reference in the "serverlayout" section.

Device: specify the name in the "device" section.

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

Defaultdepth: the default number of digits in color depth.

Modes "800x600" "768x576" "640x480" indicates that the system will first adapt to the X resolution by default. If the adaptation fails, select the 768x576 resolution to continue.

6. Modes

Section "Modes" <br/> identifier "modes [0]" <br/> modeline "800x600" 35.55 800 832 912 1024 600 <br/> modeline" 768x576 "33.74 768 792 872 976 576 577 580 <br/> modeline" 596x640 "480 23.86 640 656 720 800 480 <br/> endsection <br/> 

Corresponds to modes in the screen section.

7. serverlayout

Section "serverlayout" <br/> identifier "layout [all]" <br/> inputdevice "keyboard [0]" "corekeyboard" <br/> inputdevice "mouse [1]" "corepointer" <br/> Option "clone" "off" <br/> Option "xinerama" "off" <br/> screen "screen [0]" <br/> endsection <br/> 

The "serverlayout" section is mainly used to create the appearance of X server at startup, where:

 

Identifier: the unique name of this serverlayout section.

Screen: Name specified by "screen" section

Inputdevice: name of the "inputdevice" section in X server. Generally, there are only two rows, namely, mouse [0] and keyboard [0], that is, the first mouse and keyboard in the system, while most other devices can ignore them.

 

 

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.