The file is divided into sections, each of which looks like this:

Section ' SectionName '

 Configuration Directives

EndSection

The most commonly used sections in this file are shown in Table 2-3.

Table 2-3. Common xorg.conf section names

Name Description
Monitor Monitor specifications.
InputDevice Keyboard configuration.
Pointer device configuration (mice, graphics tablets, touch screens).
Device Video card configuration.
Screen Associates a Device with a Monitor and defines the available resolutions and color depth.
ServerLayout Associates one or more Screen sections with two or more InputDevice sections. Different ServerLayouts can be defined to combine devices in different ways for use at different times; for example, a laptop can have a ServerLayout that specifies that the internal+external displays should be used, and another one that specifies only the internal display.
Files Location of auxiliary files such as fonts, drivers, and color tables.
ServerFlags Flags to control the overall operation of the X server. The flags may alternatively be placed in the ServerLayout sections if they apply to some ServerLayouts but not to others.
Extensions Enables/disables extensions to the server capabilities.
Module Loads additional modules. (Modules may provide extensions, but extensions don't have to exist as separate modules.)
Modes Defines special video modes (rarely required).
DRI Direct Render Interface (DRI) device configuration, used for some 3-D gaming.

Here is a typical xorg.conf file:

Section 'ServerLayout'

 Identifier 'single head configuration'

 Screen 0 'Screen0' 0 0

 InputDevice 'Keyboard0' 'CoreKeyboard'

 InputDevice 'Synaptics' 'CorePointer'

 InputDevice 'Mouse0' 'AlwaysCore'

EndSection

Section 'Files'

 FontPath 'unix/:7100'

EndSection

Section 'Module'

 Load 'glx'

 Load 'dri'

 Load 'synaptics'

EndSection

Section 'InputDevice'

 Identifier 'Keyboard0'

 Driver 'kbd' 

 Option 'XkbModel' 'pc105'

 Option 'XkbLayout' 'us'

EndSection

Section 'InputDevice'

 Identifier 'Mouse0'

 Driver 'mouse'

Вы читаете Fedora Linux
Добавить отзыв
ВСЕ ОТЗЫВЫ О КНИГЕ В ИЗБРАННОЕ

0

Вы можете отметить интересные вам фрагменты текста, которые будут доступны по уникальной ссылке в адресной строке браузера.

Отметить Добавить цитату