XF86CONIFG file details

xiaoxiao2021-03-06  64

The X-WINDOW system provides us with many configuration tools, but eventually generates a profile: XF86Config, which is stored in the / etc / x11 directory. If you can read it directly, then do some small adjustments, it will be very easy. Now let's analyze this profile together. It is divided into many section, each of which is partially configured. First, the File Configuration Section Settings the font path used by the X Window system, below is a configuration example: section "Files" RGBPATH "/ USR / X11R6 / lib / x11 / RGB" fontpath "/ usr / x11r6 / lib / x11 / fonts / TrueType "fontpath" UNIX /: - 1 "endsection where section" files "indicates the Files section, endsection means that this section ends. There are several configuration items: 1) RGBPath: Set the path to the RGB color database. The content of this configuration item is written when installing, definitely not wrong, don't change it. 2) FontPath: The path used to set the font. And the RedHat Linux will use X Font Server to manage all fonts. At this time, you will see the font path is like: "UNIX /: - 1" II, Server Flag Configuration Section Settings x Server kinds of options, including some set function keys, the following is a configuration example: section "ServerFlags" # NoTrapSignals # DontZap # DontZoom # DisableVidModeExtension # AllowNonLocalXvidtune # DisableModInDev # AllowNonLocalModInDev EndSection section "ServerFlags" indicates the start Server Flags measure, EndSection indicates that the measure The end of the following configuration items: 1) NOTRAPSIGNALS: Do not capture the signal, directly DUMP generates a Core file when the error occurs. If this setting is enabled, it will cause the console to unstable, but for the master, the Core file generated by DUMP is conducive to error correction. It is recommended not to enable. 2) DONTZAP: Cancel Use the Ctrl Alt BackSpace Combination Hotkey to exit the functionality of the X Window system. The default is to comment, that is, you can use the Ctrl Alt Backspace combination hotkey to exit the X WINDOW system. It is recommended not to enable. 3) DONTZOOM: Cancel the function of switching the display mode using Ctrl Alt and Ctrl Alt - Combination keys. The default is to comment, that is, the two combinations can be used to switch the display mode. It is recommended not to enable. 4) DisablevidModeExtension: Survey to use the XvidTune program to adjust the screen.

5) AllownonloaclxvidTune: Allowed to use NPIDTUNE programs 6) Disablemodindev: Turn off Dynamic Change Enter Device 7) AlLownonLocalModindev: Allows Non-local Change Keyboards and Mouse settings Note: XvidTune program is an application provided in X Windows, It is used to adjust the program to display the size and location of the screen. Third, the keyboard configuration section sets the various keyboards, you can specify the transfer protocol, language, signal, and character comparison table of the keyboard. The following is a configuration example: section "Keyboard" protocol "Standard" Autoret 500 5 # Servernumlock Leftalt Meta Rightalt Meta ScrollLock Compose RightCtl Control # XkbDisable # XkbModel "pc102" # XkbModel "microsoft" # # # XkbOptions "ctrl: swapcaps" XkbRules "xfree86" XkbModel "pc101" XkbLayout "en_US" EndSection section "Keyboard" indicates the start of Keyboard measure, EndSection representation The end of this section, which includes the following configuration items: 1) Protocol: The transfer protocol used to configure the keyboard. Optional value is: Standard: Standard Transfer Protocol XQueue: Using the X Queon Transfer Protocol The default value is Standard, generally do not need to modify it, everyone's most standard keyboard. 2) Autoret: The format is used to configure the handover, the format is: Autoret 500 5, indicating that when a key is 500 milliseconds (0.5 seconds), starting the button signal 5 times per second. 3) Servernumlock: Let the X Server processes the NUMLOCK signal, the effect is equal to the functionality of the digital key of the keyboard. 4) The following set of configuration items are used to set the function definition of ALT, CTRL, SCROLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLOCK Compose Rightct Meta Scrollock Compose Rightct Meta ScrollLock Compose Rightct Meta Scrolock Compose Rightctl Control. Leftalt is the Alt button on the left. Rightalt is the right Alt key ..., right, the right is functional definition, including: compose: Function equals the general scroll lock button; Control: equals the function of the general CTRL button; Meta: equals the function of the general ALT button; Modelock: equal to the general Caps Lock button Function modeshift: The function of equals the general SHIFT button.

Next is the configuration of XKB: 5) XkbDisable: Turn off the keyboard extension attribute, that is, it does not specify its type and corresponding language 6) XKBCompat: Setup keyboard compatibility, the default is "default", including "Basic" Setting, press "MouseKeys", "Accessx", "Accessx", "Accessx", "Accessx", "AccessX", "AccessX", "AccessX", "Accessx", "MISC", "ISO9995", and the relevant file configuration is placed in the / usr / x11r6 / lib / x11 / xkb / compat directory. 7) XKBGEMETRY: Specify keyboard structure, different keyboards have different hardware structures unless used for special keyboards such as Amiga, Atari, Macintosh, otherwise the default value "PC" should be used without setting. Its related options are in / usr / x11r6 / lib / x11 / xkb / geometry directory. 8) XKBKEYCODES: Specifies the information sent by the keyboard button, the default value is "xfree86", and the rest of the available settings is located in the / usr / x11r6 / lib / x11 / xkb / keycodes directory. 9) XKBKEYMAP: Specify the keyboard configuration type setting file, the available files in the / usr / x11r6 / lib / x11 / xkb directory. If this option is set equally, XkbKKEyCodes, XKBTYPES, XKBCompact, Xkbsymbols, and XkBGeometry are set up. 10) XKBLAYOUT: Set the keyboard output language system, use the default value "US" to use American English. Optional value: De: German fr: French IT: Italian JP: Japanese Ru: Russian 11) Xkbmodel: Set the model of the keyboard, common is "PC101", "PC102". If you use a keyboard with a Microsoft flag, change it to "PC104". 12) XKBOPTIONS: Setup keyboard options, usually do not need any option settings unless you want to exchange the definition of the button. For example, "Ctrl: Swapcaps" can change Ctrl to Caps Lock. 13) Xkbrules: Specifies the keyboard specification file used by X Window unless there is special needs (using SGI's keyboard), otherwise the default value should be used: "Xfree86", other optional values ​​in / usr / x11r6 / lib / x11 / Under the XKB / Rules directory. 14) Xkbsymbols: Define the word code corresponding to the keyboard buttons, and other keyboard leather words are endless. Using "US" using "US", the ASCII, the word code table control file is placed in / usr / x11r6 / lib / x11 / xkb / symbol directory, and the user can modify it. 15) XKBTYPES: Set the type of keyboard, the default is "default", and all options are given in the / usr / x11r6 / lib / x11 / xkb / type content. 16) XKBVARIANT: Sets the keyboard variable, usually no need to set it. Fourth, the mouse configuration section sets standard input devices such as mice, touch screens.

The following is a configuration example: Section "Pointer" Protocol "PS / 2" Device "/ dev / mouse" # Protocol "Xqueue" # BaudRate 9600 # SampleRate 150 Emulate3Buttons Emulate3Timeout 50 # ChordMiddle EndSection As before, Section "Pointer" on behalf of the The beginning of the section, endsection represents the end of the section.

In this configuration section, there is a total of the following configuration items: 1) Protocol: Set the transfer protocol used by the mouse, the protocol that can be used is: Auto: Let X WINDOW self-detection, but may not be accurate Busmouse: Bus type mouse, early serial mouse GLIDEPOINT: Using the Alps serial version of the GLIDepoint touch screen and its compatible product GLIDEPOINTPS / 2: Using the Alps PS2 version of the GLIDepoint touch screen and its compatible product IMPS / 2: use Microsoft PS / 2 version of Intellimouse and its compatible product Intellimouse: use Microsoft serial port version Intellimouse and its compatible product Logitech: Using the old Logitech serial mouse, the new version has been changed to "Microsoft" protocol Microsoft: serial mouse mouse Mmhittab used in 1992: Use the old Logitech serial port MMSeries: Mouseman mouse Mouseman mouse Mouseman using old version of Logitech: Mouseman mouse Mousemanplusps / 2 using the mid-term Logitech: Using the LogitechPS / 2 version of the Tianli and its compatible product MouseSystem: Use the MouseSystem Transfer Protocol to use this option NetMosueps / 2: Using the Genius PS / 2 version of the NetMouse network mouse and its compatible product NetScrollps / 2: using the Genius PS / 2 version of the NetScroll roller mouse and its compatible product OSMouse: Use the operating system controlled mouse, not let X WINDOW control mouse PS / 2: Now the most widely used PS / 2 mouse sysmouse: Let FreeBSD can use the peripheral code to / dev / sysmouse mouse device thinkingmouse: Use the Kensington serial version of the Thinking Mouse ThinkingMouseps / 2: Using the PS / 2 version Thinking Mouse and Its Compatible Product xQueue: If you use the X queue transfer protocol in the keyboard device segment, you also need 2) Device: Used to set peripheral code for connecting the mouse, usually / dev / mouse 3) Baudrate : Used to set the baud rate, only for some Logitech mouse, when using the Acecad drawing board, you need to set it to 9600 4) SampleRate: Used to set the sampling rate, only for some Logitec H mouse effective 5) Emulated3Buttons: Triple key mouse simulation into three-key mouse 6) Emulate3Timeout: Set the analog three-way timeout 7) ChordMiddle: If it is a logitech mouse, then use this configuration item instead of Emulate3Buttons 5. Display configuration section settings The level of the display, vertical scanning frequency, and the correspondence between the respective display mode and the scanning frequency. X Server will configure the display mode specified by the user according to the settings of the display, and automatically find the most appropriate display refresh rate in dozens of correspondence.

The following is a configuration example: Section "Monitor" Identifier "Generic Monitor" VendorName "Unknown" ModelName "Unknown" HorizSync 31.5 VertRefresh 60 ModeLine "640x480" 25.175 640 664 760 800 480 491 493 525 EndSection Section "Monitor" Identifier "cpq1355" VendorName "Unknown" ModelName "Unknown" HorizSync 30 - 60 VertRefresh 50 - 125 # Mode "1024x768i" # DotClock 45 # HTimings 1024 1048 1208 1264 # VTimings 768 776 784 817 # Flags "Interlace" # endMode # --- 640x480 --- # 640x480 @ 60 Hz, 31.5 kHz hsync Modeline "640x480" 25.175 640 664 760 800 480 491 493 525 # 640x480 @ 72 Hz, 36.5 kHz hsync Modeline "640x480" 31.5 640 680 720 864 480 488 491 521 # 640x480 @ 75 Hz, 37.50 kHz hsync ModeLine "640x480" 31.5 640 656 720 840 480 481 484 500 -HSync -VSync # 640x480 @ 85 Hz, 43.27 kHz hsync Modeline "640x480" 36 640 696 752 832 480 481 484 509 -HSync -VSync # 640x480 @ 100 HZ, 53.01 KHZ HSYNC Modeline "640x480" 45.8 640 672 768 864 480 488 494 530 - HSYNC -VSYNC # --- 800x600 --- # 800x600 @ 56 Hz, 35.15 kHz H Sync Modeline "800x600" 36 800 824 896 1024 600 601 603 625 # 800x600 @ 60 HZ, 37.8 KHz Hsync Modeline "800x600" 40 800 840 968 1056 600 601 605 628 Hsync vsync # 800x600 @ 72 HZ, 48.0 kHz Hsync Modeline "800x600" 50 800 856 976 1040 600 637 643 666 HSYNC vsync # 800x600 @ 85 HZ, 55.84 kHz Hsync Modeline "800x600" 60.75 800 864 928 1088 600 616 621 657 - HSYNC -VSYNC # 800x600 @ 100 Hz, 64.02 kHz Hsync Modeline "800x600" 69.65 800 864 928 1088 600 604 610 640 - HSYNC -VSYNC # --- 1024x768 --- # 1024x768 @

60 Hz, 48.4 kHz hsync Modeline "1024x768" 65 1024 1032 1176 1344 768 771 777 806 -hsync -vsync # 1024x768 @ 87 Hz interlaced, 35.5 kHz hsync Modeline "1024x768" 44.9 1024 1048 1208 1264 768 776 784 817 Interlace # 1024x768 @ 70 Hz, 56.5 kHz hsync Modeline "1024x768" 75 1024 1048 1184 1328 768 771 777 806 -hsync -vsync # 1024x768 @ 76 Hz, 62.5 kHz hsync Modeline "1024x768" 85 1024 1032 1152 1360 768 784 787 823 # 1024x768 @ 85 Hz , 70.24 kHz hsync Modeline "1024x768" 98.9 1024 1056 1216 1408 768 782 788 822 -HSync -VSync # 1024x768 @ 100Hz, 80.21 kHz hsync Modeline "1024x768" 115.5 1024 1056 1248 1440 768 771 781 802 -HSync -VSync EndSection as above Show, there can be multiple Monitor configuration sections in a configuration file to configure multiple displays. Select back later. Each Monitor configuration section should start using the section "Monitor" to end with EndSection. Let's take a look at the configuration options: 1) Identifier, vendorname, ModelName: These three configuration items are used to identify different displays, the first name is arbitrarily written, you know it yourself, and you can just casually New, but written as "unkown" is best. 2) HorizSync: Set the horizontal scan frequency, its default unit is KHz, which can separate multiple independent values ​​with a comma, or use the shape as "30-64" to represent a range. The specific value should be written based on the data on the instructions of the display. 3) VERREFRESH: Sets the vertical scan frequency, its default unit is Hz, indicating that the way is consistent with HorizSync, it is recommended to write according to the data on the instructions of the display. Sixth, the graphics card configuration subsection card model, chipset, crystal chip, and memory. Below is a configuration example: section "Device" Identifier "ATI Mach64" Vendorname "Unknown" BoardName "Unknown" #Chipset "Generic" Videoram 1024 # Clocks 25.2 28.3 Endsection Its configuration options are as follows: 1) Identifier: Used to identify graphics 2) CHIPSET: Used to identify graphics chip group 3) Videoram: Used to identify memory 4) Clocks: Crystal chip seven, screen configuration section settings will be used in the X Server, graphics card and display, and display mode, color depth, resolution And virtual desktop settings.

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

New Post(0)