XF86Config file reading XWindow XServer

zhaozj2021-02-11  231

XF86Config file guide

It is natural that X naturally does not mention the file of XF86Config. Xfree86 is the initial setting of XF86Config to make some X. When you have finished reading this article, you may or feel helpless, because so the big setting is not hung, but also talk. In fact, you don't have to worry, because there are several quite good X setups that have been provided in X, which is the first to XF86Config, and XF86Setup is attached to the redhat, and the latest is XF86Setup. Provides the interface of the graph, more cool, more convenient, more easy, these later I will introduce. When starting X, it is looking for this file in the following path: / etc / xf86config ot / lib / x11 / xf86config.hostname XRoot / lib / x11 / xf86config xroot Represents the path to X11. Xf86config is via many segments consist of. Each section has a fixed format is as follows: Section "SectionName" SectionEntry ... EndSection The section names may be: Files (File pathnames) ServerFlags (Server flags) Keyboard (Keyboard configuration) Pointer (Pointer configuration) Monitor (Monitor description Device (Screen Configuration) Screen (Screen Configuration) File Section is used to specify a formal glyph path and RGB data path. Of course, these paths are also set by the command column. As for the setting of Entry as follows: fontpath "path" fontpath can be multiple, which are listed in different lines, respectively. X11R6 also allows X to set a glyphs from Font Server, such as fontpath "/ usr / x11r6 / lib / x11 / fonts / misc /, tcp / zok: 7100" is used to tell X Server / usr / x11r6 / lib In / x11 / fonts / MISC path, TCP / ZOK This host, the port is 7100 to find the word RGBPath "Path" Set the path to the RGB color Database. ServerFlags Section, some X Server miscellaneous. As follows: NOTRAPSIGNALS This can prevent X Server from being automatically left because of improper error.

On the other hand, it will end X and then generate this file in a wrong place. In general, unless the unity of X is unrecognized, otherwise we can use this option. Dontzap can cancel via Ctrl Alt Backspace leaves the function. Dontzoom We can use Ctrl Alt KeyPad-Plus and Ctrl Alt Keypad-minus to adjust the resolution of X. If you turn this feature after turning on the dontzoom option. Keyboard Section is of course used to set up Some keyboard settings. Protocol "KBD-Protocol" KBD-Protocol can be Standard or XQueue. Autoret Delay Rate Change the speed of Keyboard reciprocation. But not all the level can be used. ServerNumLock Let the X Server control Numlock key. such that the total application uses number pad LeftAlt mapping RightAlt mapping AltGr mapping ScrollLock mapping RightCtl mapping allows to set the default value of key in the above may be .mapping:. Meta Compose ModeShift ModeLock ScrollLock Control XLeds led applications that allow client AP 3 LED keys (Scroll Lock, Caps Lock & Num Lock). The value of the LED is 1 to 3. VTSYSREQ can make non-sysv but support VT Switching systems use sysv-style vt switch sequence. Pointer Section to specify the cursor device And parameters. Protocol "protocol-type" specifies the protocol of the cursor device, protocol-type as follows: BUSMOUSE LOGITECH Microsoft MMSeries Mouseman MouseSystems PS / 2 MMHITTAB XQueue Osmouse Device "Pointer-Dev" Set the X Server application that device (such as / dev / TTY00 or / dev / mouse, but if you use xQueue or OSMOUSE, you don't have to specify. Baudr ATE Rate Sets the balance rate of the sequence. Some mouse can set the rate at its own, and the other is set via the computer. The internal value is 1200. Emulate3Buttons allows the two-button MOUSE to simulate the three-button mouse. Mode. It is used simultaneously to press two keys. Emulate3Timeout Timeout When the three key is simulated, the Server waits for the two-button at the same time. The internal value is 50ms (MilliseConds). ChordMiddle When the Middle button is pressed, send the Left Right event. SampleRate Rate Cleardtr Clearrts These three Entry are only available in some mouse (Logitech and MouseSystem). Monitor Sections is used to define the specification of the display and the model it can use. There are multiple monitor-section exists in Xf86config. Identifier ID "Specifies the name of this monitor. Each Monitor Section can only have a unique display name. Vendorname" vendor "setting the name of the display manufacturing company. ModelName" Model "

The MODEL. HORIZSYNC HORIZSYNC-RANGE The horizontal scan of the display. Its value can be separated by a comma. If it is □, it can be connected to the minus. The unit is the vertical cover of the KHz. VertRefresh VertRefresh-Range display. Valid Separate, if it is □, it can be connected by a minus. The unit is KHz. Gamma gamma-value (s) Gamma color adjustment value. Can be a single value or three separate RGB values. But not all X Server can Use this feature. Since the Mode "name" VIDEO MODE setting, EndMode ends. The contents are as follows: DotClock Clock Htimings HDISP HSYNCSTART HSYNCEND HTOTAL VTIMINGS VDISP VSYNCSTART VSYNCEND VTOTAL FLAGS "flag" ... flag's options are: "Interlace": The monitor is a cross-scanned " hsync" and "-hsync" in dual scanning: Adjust the HSYNC signal " vsync" and "-vsync": Adjust the vsync signal "Composite": Specify the display Provided Composite Sync " sync" and "-vsync": Adjust the vsync signal modeline "name" mode-description can merge the above function in a row. Device Sections can set a graphics device (display card). There are more in XF86Config. Device Section. Identifier "ID String" sets the name so that the Screen Section can definitely. Each Device section can have a name. Vendorname "vendor" Show card manufacturer's name BoardName "Model" display card model chipset "Chipset-Type" specifies the chipset display card. But don't use us to set it because X Server will automatically detect. Ramdac "ramdac-type" specifies RAMDAC, but the same reason, we don't have to go Set it. DACSPEED Speed ​​unless the rate and the RAMDAC are disconnected, otherwise it is also rational. CLOC Ks Clock ... Sets the display card's clock. It is recommended to set it. Videoram MEM displays the memory size of the card. X will automatically detect. Screen Sections is used to set the display cards and displays used by X Server. Driver "Driver-name" Each Screen Section must be started by Driver Entry, which must be unique .Driver-name is as follows: Accel mono svga VGA2 VGA16 Accel is used to accelerate card .mono monochrome. VGA2 and VGA16 are Using 2 BITS and 4BITS color. Device "device-id" Used DEVICE MONITOR-ID "Used Monitor Screenno Scrnum Screen's Number Screenno Scrnum Screen's Number. Blanktime Time screen protection. Time minutes does not show it. It is within 10 minutes. SUSPENDTIME TIME power saving time. After the minute, the screen entered the power saving mode. It is within 15 minutes. OFFTIME TIME power-on time. After the minute, the screen enters the power outage mode. Subsection "Display"

Set color BIT number, virtual screen size, resolution, and other. # File generated by xf86config. # My XF86config file # # Copyright (c) 1994 by the xfree86 project, Inc. # # ****** *********************************************************** ************* # Refer to the xf86config (4/5) man page for details about the format of # this file .-------------- - This is the focus. # ************************************************************ ************************** # files section. Setting RGB files and glyphs of paths # ******** *********************************************************** ************ Section "Files" # In this special mention you don't have to add an attachment name, because the internal value it will identify RGBPath "/ usr / x11r6 / lib / x11 / rgb" # 接 加 加 字 路 f "/ usr / x11r6 / lib / x11 / fonts / misc /" fontpath "/ USR / X11R6 / lib / x11 / fonts / type1 /" fontpath "/ usr / x11r6 / lib / x11 / fonts / Spetedo / "fontpath" / usr / x11r6 / lib / x11 / fonts / 75dpi / "fontpath" / usr / x11r6 / lib / x11 / fonts / 100dpi / "fontpath" / usr / x11r6 / lib / x11 / fonts / Chinese / "------> If you have XCIN CRXVT or CXWIN, the Chinese characters are in this shape. Of course, don't forget to add this path, otherwise it is an endsection # ****** *********************************************************** ************* # Some x Server parameters can be set here (submarine) # ***************************************** *************************************** Section "serverflags" # server is not exactly, automatically Generating Ctrl Alt BS to exit Server's function cancellation # dontzap # CTRL Alt OR - Replace the resolution of the resolution # DONTZOOM endsection # *********** *********************************************************** ******** # Keyboard Section # ************************************************** ******************************** Section "Keyboard" protocol "standard" # can be used with xQueue The last line comment, keep the next line, otherwise comment falls down, keeps the last line # protocol "xqueue"

# Set the keyboard 500 5 # servernumlock # Specifies the few LEDs to let Client self-control # xleds 1 2 3 # Set the following keys # ipalt meta # Rightalt Modeshift # Rightctl compose # ScrollLock Modelock endsection # ** *********************************************************** ********** # Pointer Section. Set the microbiograph # ********************** ********************************************* Section "Pointer "Protocol" Microsoft "DEVICE" / dev / mouse "# If you use xQueue, you can get the last line comment, keep the next line, otherwise comment falls down, keeps the last line # protocol" xqueue "# Specific Logitech Mouse Bow Rate # Baudrate 9600 # Sampled 150 # Two - click Mouse Mouse Simulation Three-click Mouse # Simulated Triple Buttons Emulate3Buttons Emulate3Timeout 50 # Give Some Logitech Triple Mobs Mouse # chordmiddle Endsection #************************************************************ ************* # Monitor Section Display Setting # ******************** *********************************************** Section "Monitor" Identifier "Generic MultiSync" vendorname "unknown" ModelName "Unknown" # horizsync unit is kHz # Please change the set value HorizSync 30-64 # Vertrefresh unit is HZ # also change the set value Vertrefresh 50-100 # modes can have two ways setting, 1. All sets of rows 2. Branch setting # below the following two modes are the same # modeline "1024x768i" 45 1024 1048 1208 1264 768 776 784 817 Interlace # Mode "1024x768i" # dotclock 45 # htimings 1024 1048 1208 1264 # vtimings 768 776 784 817 # Flags "interlace" # endmode # xf86config will automatically set some standard Mode. If the mode is not in the display Size, then X will delete #, so you don't have to delete it in advance (unless you can't display your monitor) # In these modes, X naturally find the most suitable to use # 640x400 @ 70 Hz , 31.5 kHz hsync Modeline "640x400" 25.175 640 664 760 800 400 409 411 450 # 640x480 @ 60 Hz, 31.5 kHz hsync Modeline "640x480" 25.175 640 664 760 800 480 491 493 525 # 800x600 @ 56 Hz, 35.15 kHz hsync ModeLine " 800x600 "

36 800 824 896 1024 600 601 603 625 # 1024x768 @ 87 Hz interlaced, 35.5 kHz hsync Modeline "1024x768" 44.9 1024 1048 1208 1264 768 776 784 817 Interlace # 640x480 @ 72 Hz, 36.5 kHz hsync Modeline "640x480" 31.5 640 680 720 864 480 488 491 521 # 800x600 @ 60 hz, 37.8 khz hsync model "800x600" 40 800 840 968 1056 600 601 605 628 hsync vsync # 800x600 @ 72 hz, 48.0 kHz hsync model "800x600" 50 800 856 976 1040 600 637 643 666 hsync vsync # 1024x768 @ 60 Hz, 48.4 kHz hsync Modeline "1024x768" 65 1024 1032 1176 1344 768 771 777 806 -hsync -vsync # 1024x768 @ 70 Hz, 56.5 kHz hsync Modeline "1024x768" 75 1024 1048 1184 1328 768 771 777 806 -hsync -vsync # 1280x1024 @ 87 Hz interlaced, 51 kHz hsync Modeline "1280x1024" 80 1280 1296 1512 1568 1024 1025 1037 1165 Interlace # 1024x768 @ 76 Hz, 62.5 kHz hsync Modeline "1024x768" 85 1024 1032 1152 1360 768 784 787 823 # 1280x1024 @ 61 HZ, 64.2 kHz Hsync Modeline "1280x1024" 110 1280 1328 1512 1712 1024 1025 1028 1054 # 1280x1024 @ 74 Hz, 78.85 kHz hsync Modeline "1280x1024" 135 1280 1312 1456 1712 1024 1027 1030 1064 # 1280x1024 @ 76 Hz, 81.13 kHz hsync Modeline "1280x1024" 135 1280 1312 1416 1664 1024 1027 1030 1064 # Low-res Doublescan modes # If your chipset does not Support Douplascan, You get a 'squashed' # resolution like 320x400. # 320x200 @ 70 Hz, 31.5 kHz Hsync, 8: 5 Aspect Ratio Modeline "320x200" 12.588 320 336 384 400 200 204 205 225 DoubleScan # 320x240 @ 60 Hz, 31.5 KHZ HSYNC, 4: 3 Aspect Ratio Modeline "320x240" 12.588 320 336 384 400 240 245 246 262 DoubleScan # 320x240 @

72 HZ, 36.5 KHZ HSYNC Modeline "320x240" 15.750 320 336 384 400 240 244 246 262 Douplascan # 400x300 @ 56 Hz, 35.2 KHz Hsync, 4: 3 Aspect Ratio Modeline "400x300" 18 400 416 448 512 300 301 602 312 DoubleScan # 400x300 @ 60 HZ, 37.8 KHZ HSYNC Modeline "400x300" 20 400 416 480 528 300 301 303 314 Douplascan # 400x300 @ 72 HZ, 48.0 KHz Hsync Modeline "400x300" 25 400 424 488 520 300 319 322 333 DoubleScan # 480x300 @ 56 HZ , 35.2 kHz hsync, 8: 5 aspect ratio ModeLine "480x300" 21.656 480 496 536 616 300 301 302 312 Doublescan # 480x300 @ 60 Hz, 37.8 kHz hsync Modeline "480x300" 23.890 480 496 576 632 300 301 303 314 Doublescan # 480x300 @ 63 Hz, 39.6 kHz hsync Modeline "480x300" 25 480 496 576 632 300 301 303 314 Doublescan # 480x300 @ 72 Hz, 48.0 kHz hsync Modeline "480x300" 29.952 480 504 584 624 300 319 322 333 Doublescan EndSection # ***** *********************************************************** ************** # Graphics Device Section. Show card setting # ******************************** *********************** *********** # Standard VGA Device: Standard VGA Settings Section "Device" Identifier "Generic VGA" Vendorname "unknown" BoardName "unknown" chipset " generic "# VideoRam 256 # Clocks 25.2 28.3 EndSection # Sample Device for accelerated server: accelerators □ Example set # Section" Device "# Identifier" Actix GE32 2MB "# VendorName" Actix "# BoardName" GE32 "# Ramdac" ATT20C490 "# DACSPEED 110 # Option" DAC_8_bit "# clocks 25.0 28.0 40.0 0.0 50.0 77.0 36.0 45.0 # Clocks 130.0 120.0 80.0 31.0 110.0 65.0 75.0 94.0 # endsection section device" Identifier "

My video card "vendorname" unknown "BoardName" unknown "#VideoRam 1024 # INSERT Clocks line meaning ie if appropriate endsection # ****************************************************************************************************************************************************************************** *********************************** * SCREEN Sections screen setting #************************************************************ *********** # The Color Svga Server sets the SVGA Setting Section "Screen" Driver "SVGA" Device "generic vga" #device "My Video Card "Monitor" Generic Multisync "Subsection" Display "Depth 8 #Modes" 640x480 "" 800x600 "" 1024x768 "ViewPort 0 0 Virtual 320 200 #Virtual 1024 768 EndSubsection EndSection # the 16-color VGA server 16 color VGA setting Section" Screen "Driver" vga16 "Device" Generic VGA "Monitor" Generic Multisync "Subsection" Display "Modes" 640x480 "" 800x600 "ViewPort 0 0 Virtual 800 600 EndSubsection EndSection # The Mono server black and white set Section" Screen "Driver" vga2 " Device "Generic VGA" Monitor "Generic MultiSync" Subsection "Display" MODES "640x480" "800x600" Viewport 0 0 Virtual 800 600 EndSubsection endsection # the acu Celerated Servers (S3, Mach32, Mach8, 8514, P9000, AGX, W32, Mach64) Acceleration Card Settings Section "Screen" Driver "ACEL" Device "My Video Card" Monitor "Generic MultiSync" Subsection "Display" Depth 8 MODES "800x600" "1024x768" "640x480" ViewPort 0 0 Virtual 1024 900 EndSubsection Subsection "Display" Depth 16 Modes "640x480" "800x600" ViewPort 0 0 Virtual 800 600 EndSubsection Subsection "Display" Depth 32 Modes "640x400"

转载请注明原文地址:https://www.9cbs.com/read-3629.html

New Post(0)