XF86CONIFG file details
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, File Configuration Section
Set 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 that the Files section starts, endsection indicates the end of this section. There are several configuration items between them:
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 (Font Server) to manage all fonts, then you will see the font path is like: "Unix /: - 1"
Second, Server Flag Configuration Section
Set the various options for X Server, including some function keys, below is a configuration example:
Section "ServerFlags"
# NOTRAPSIGNALS
# DONTZAP
# Dontzoom
# Disablevidmodeextension
# Allownonlocalxvidtune
# Disablemodindev
# Allownonlocalmodindev
Endsection
Section "Serverflags" means that the start of the Server Flags section, endsection indicates the end of the section, where is 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: Allows the use of a non-local XVIDTune program
6) Disablemodindev: Close Dynamic change input device settings
7) AlLownonLocalModindev: Allows local change keyboard and mouse settings
Note: The XvidTune program is an application provided in X Windows that is used to adjust the screen display size and location. Third, the keyboard configuration section
Set a variety of 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"
Xkbleout "en_us"
Endsection
Section "Keyboard" indicates the beginning of the KEYBOARD section, and EndSecion indicates the end of the section, with 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 Queue Transfer Protocol
The default is STANDARD, which is generally not required, and most of you are standard keyboards.
2) Autoret: Used to configure the processing that holds a key, the format is:
AUTOREPEAT milliseconds
Such as: Autoret 500 5, means that when a key is 500 milliseconds (0.5 seconds), the button signal is automatically sent, 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 the ALT, CTRL, SHIFT, SCROLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLOCK:
Leftalt meta
Rightalt Meta
Scrolllock Compose
Rightctl Control
The left is the key name. Leftalt is the Alt key on the left. Rightalt is the Alt key on the right ..., and the right side is the function definition, including:
Compose: Function equals the general scroll lock button;
Control: The function is equal to the general CTRL button;
Meta: The function is equal to the general ALT button;
Modelock: The function of equals the general Caps Lock button
Modeshift: The functionality that is equal to the general SHIFT button.
Next is the configuration of xkb:
5) xkbdisable: Turn off the keyboard extension attribute, that is, the type of type and corresponding language is not specified.
6) XKBCompat: Set keyboard compatibility, the default is "default", contains "Basic" settings, press "MouseKeys", "Accessx", "MISC", "ISO9995", "ISO9995", "ISO9995", "ISC", "ISO9995", "JAPAN", related files Configure 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 is:
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, mouse configuration section
Set standard input devices such as mice, touch screens. Below is a configuration example:
Section "Pointer"
Protocol "PS / 2"
Device "/ dev / mouse"
# Protocol "xqueue"
# Baudrate 9600
# SampleDerate 150
Emulate3Buttons
Emulate3Timeout 50
# Chordmiddle
Endsection
As with the previous, Section "Pointer" represents the beginning of the section, and EndSection represents the section ends. In this configuration section, there are 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 Alps serial port version of GLIDEPOINT touch screen and its compatible products
GLIDEPOINTPS / 2: Using the Alps PS2 version of the GLIDEPOINT touch screen and its compatible products
IMPS / 2: INTELLIMOUSE and its compatible products using Microsoft PS / 2
Intelligelimouse: Intellimouse and its compatible products using Microsoft serial port
Logitech: Using the old Logitech serial mouse, the new version has changed to the "Microsoft" protocol
Microsoft: serial mouse used in 5-8 years since 1992
Mmhittab: HitTablet phone board with old Logitech serial port
MMSERIES: Mouseman mouse using old Logitech serial port
Mouseman: Mouseman mouse using the medium Logitech serial port
MousemanPlusps / 2: Tenki and its compatible products using LogitechPS / 2 versions
MOUSESYSTEM: Use this option using the serial mouse using the MOUSESYSTEM transport protocol
NetMosueps / 2: Using Genius PS / 2 version of NetMouse network mouse and its compatible products
Netscrollps / 2: NetScroll roller mouse with Genius PS / 2 and its compatible products
OSMouse: Use the mouse controlled by the operating system instead of letting X Window control mouse
PS / 2: Mouse in the most widely used PS / 2 interface now
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: Use the THINKING mouse with PS / 2 version and its compatible products
XQueue: If you let the keyboard use the X queue transfer protocol in the keyboard device segment, here is also
2) Device: Used to set peripheral device code to connect the mouse, usually / dev / mouse
3) Baudrate: Used to set the baud rate, only valid 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 valid for some Logitech mouse
5) Emulate3Buttons: Mock the double key mouse to become a three-key mouse
6) Emulate3Timeout: Set the simulation three-way timeout
7) ChordMiddle: If it is a Logitech mouse, then use this configuration item instead of emulate3Buttons
V. Display configuration section
Set the horizontal, vertical scan frequency, and define 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. Below 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
EndsectionSECTION "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 Hsync
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 1264768 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 shown above, 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 together:
1) Identifier, Vendorname, ModelName: These three configuration items are used to identify different monitors, and the first name is arbitrarily written, you can know it yourself, and two can be casually new, but write "unkown" 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.
Six, graphics card configuration section
Set the model, chipset, crystal chip, and memory. Below is a configuration example:
Section "Device"
Identifier "ATI Mach64"
Vendorname "unknown"
BoardName "Unknown"
#Chipset "generic"
VideoReram 1024
# Clocks 25.2 28.3
Endsection
The configuration options are as follows:
1) Identifier: Used to identify graphics
2) Chipset: Used to identify graphics chip groups
3) VIDEORAM: Used to identify memory
4) Clocks: Crystal Chip
Seven, screen configuration section
Settings the X Server, graphics cards, and displays that will be used, as well as settings, color depth, resolution, and virtual desktop. Below is a configuration example:
Section "Screen"
Driver "accel"
Device "ATI Mach64"
Monitor "CPQ1355"
DefaultColorDepth 16
Subsection "Display"
DEPTH 16
Modes "800x600" "640x480" ViewPort 0 0
Endsubsection
Subsection "Display"
DEPTH 8
Modes "1152x864" "1024x768" "800x600" "640x480"
Viewport 0 0
Endsubsection
# Blanktime 3
# StandBytime 10
# Suspendtime 30
#Offtime 50
Endsection
1) DRIVER: Select the X Server driver, in this case is Accel
2) Device: Select the graphics used to use, the name here should be consistent with the Identifier of the graphics card configuration section.
3) MONITOR: Select the display used, the name here should be consistent with the IDentifier of the display configuration section
4) BlankTime: Sets the time that enters the screen protection, unit is divided.
5) StandBytime: Set the time when the display enters the standby state, unit is divided
6) SUSPENDTIME: Sets the time when the display enters the suspend state, unit is divided
7) OFFTIME: Sets the time of the display, in this section, and the Display sub-section, start with the subsection "Display" as the beginning, and end with the endsubSecion. Each sub-section sets a display mode that sets two display modes in this example (these modes can be switched with "Ctrl" " ", "Ctrl" "" in X WINDOW.
Each DISPLAY sub-section can have the following configuration items:
1) DEPTH: Color depth, such as 16 generations 16-bit color, 8 generations 8-bit color
2) MODES: The resolution you can use, if 16-bit color can be used in this configuration, two resolutions can be used "800x600" "640x480"
3) Viewport: When using a virtual desktop, set the upper left corner coordinate of the start screen.
4) Virtual: Set the virtual desktop, follow the resolution, such as the Virtual 1600 1400 indicates a desktop that is a 1600x1400 size.