на главную | войти | регистрация | DMCA | контакты | справка | donate |      

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
А Б В Г Д Е Ж З И Й К Л М Н О П Р С Т У Ф Х Ц Ч Ш Щ Э Ю Я


моя полка | жанры | рекомендуем | рейтинг книг | рейтинг авторов | впечатления | новое | форум | сборники | читалки | авторам | добавить



Листинг 20.2. Пример файла XF86Config

Section "Files"

 RgbPath "/usr/X11R6/lib/X11/rgb"

 FontPath "/usr/X11R6/lib/X11/fonts/cyrillic" FontPath "unix/:-1"

EndSection


Section "ServerFlags"

EndSection


Section "Keyboard"

 Protocol "Standard"

 AutoRepeat 250 30

 LeftAlt Meta

 RightAlt Meta

 ScrollLock Compose

 RightCtl Control

 XkbDisable

 XkbKeycodes "xfree86"

 XkbTypes "default"

 XkbCompat "default"

 XkbSymbols "us(pc105)"

 XkbGeometry "pc"

 XkbRules "xfree86"

 XkbModel "pc105"

 XkbLayout ""

EndSection


Section "Pointer"

 Protocol "PS/2"

 Device "/dev/psaux"

 Emulate3Buttons

 Emulate3Timeout 50

EndSection


Section "Monitor"

 Identifier "My Monitor"

 VendorName "Samsung"

 ModelName "SyncMaster 550s"

 HorizSync 30-61

 VertRefresh 50-120

 ModeLine "1024x768" 75.00 1024 1048 1184 1328 768 771 777 806 –hsync –vsync

 ModeLine "1024x768" 65.00 1024 1048 1184 1344 768 771 777 806 –hsync –vsync

# 1024x768, 70.0Hz; hfreg=56.476002, vfreq=70.069000

 ModeLine "1024x768" 75.00 1024 1048 1184 1328 768 771 777 806 –hsync –vsync

# 1024x768, 75.0Hz; hfreq=60.022999, vfreq=75.028999

 ModeLine "1024x768" 78.75 1024 1040 1136 1312 768 769 772 800 +hsync +vsync

# 1024x768, 75.0Hz; hfreq=60.022999, vfreq=75.028999

 ModeLine "1024x768" 78.75 1024 1040 1136 1312 768 769 772 800 +hsync +vsync

# 1280x1024, 75.0Hz; hfreq=79.975998, vfreq=75.025002

 ModeLine "1280x1024" 135.00 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync

# Далее следует очень длинный список различных режимов работы

# монитора — ModeLine

# Я не привел его в листинге

EndSection


Section "Device"

 Identifier "Generic VGA"

 Chipset "generic"

EndSection


Section "Device"

 Identifier "RIVA TNT2"

 VendorName "Unknown"

 BoardName "Unknown"

 # Chipset "RIVATNT2"

 # VideoRam 8192

 Option "power_saver"

EndSection


Section "Screen"

 Driver "svga"

 Device "RIVA TNT2"

 Monitor My Monitor

 DefaultColorDepth 32

 Subsection "Display"

  Depth 8

  Modes "1024x768" "800x600" "640x400"

  Viewport 0 0

 EndSubsection

 Subsection "Display"

  Depth 16

  Modes "1024x768" "800x600" "640x480"

  ViewPort 0 0

 EndSubsection

 Subsection "Display"

  Depth 24

  Modes "1024x768" "800x600" "640x480"

  ViewPort 0 0 EndSubsection

  Subsection "Display"

   Depth 32

   Modes "1024x768" "800x600" "640x480"

   ViewPort 0 0

  EndSubsection

EndSection


Section "Screen"

 Driver "vga16"

 Device "Generic VGA"

 Monitor " My Monitor "

 Subsection "Display"

  Modes "640x480" "800x600"

  ViewPort 0 0

 EndSubsection

EndSection


Section "Screen"

 Driver "vga2"

 Device "Generic VGA"

 Monitor " My Monitor "

 Subsection "Display"

  Modes "640x480" "800x600"

  ViewPort 0 0

 EndSubsection

EndSection


Section "Screen"

 Driver "accel"

 Device "RIVA TNT2"

 Monitor "My Monitor"

 DefaultColorDepth 32

 Subsection "Display"

  Depth 8

  Modes "1024x768" "800x600" "640x400"

  ViewPort 0 0

 EndSubsection

 Subsection "Display"

  Depth 16

  Modes "1024x768" "800x600" "640x480"

  ViewPort 0 0

 EndSubsection

 Subsection "Display"

  Depth 24

  Modes "1024x768" "800x600" "640x480"

  Viewport 0 0

 EndSubsection

 Subsection "Display"

  Depth 32

  Modes "1024x768" "800x600" "640x480"

  Viewport 0 0

 EndSubsection

EndSection


Section "Screen"

 Driver "fbdev"

 Device "RIVA TNT2"

 Monitor " My Monitor "

 DefaultColorDepth 32

 Subsection "Display"

  Depth 8

  Modes "default"

  Viewport 0 0

 EndSubsection

 Subsection "Display"

  Depth 16

  Modes "default"

  Viewport 0 0

 EndSubsection

 Subsection "Display"

  Depth 24

  Modes "default"

  Viewport 0 0

 EndSubsection

 Subsection "Display"

  Depth 32

  Modes "default"

  Viewport 0 0

 EndSubsection

EndSection

В секции Files указаны основные каталоги, необходимые для работы X Window. Обратите внимание на строку:

FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"

После установки русских шрифтов эту строку в файл конфигурации нужно добавить самостоятельно, после чего перезапустить сервер X — нажать комбинацию Ctrl+Alt+Backspace и заново запустить сервер с помощью команды System. Если ваша система настроена на автоматический запуск, завершите сеанс в вашем оконном менеджере и в окне регистрации в системе нажмите на кнопку «System». После чего выберите Restart X Server и нажмите на кнопку «OK».

Следующая секция — ServerFlags. В ней определяются глобальные переменные сервера. Часто эта секция пуста (все закомментировано).

В секции Keyboard конфигурируется клавиатура, а секция Pointer — мышь. В секции Monitor описываются параметры монитора. Один из них идентификатор — My Monitor. Значение этого параметра потом указывается в секции Screen. В секции Screen делаются ссылки на используемую видеоплату (секция Device) и на монитор, а также на используемые режимы работы монитора. Здесь же устанавливается глубина цвета:

Depth 32


20.2. Конфигурационный файл XF86Config | Linux- сервер своими руками | 20.3. Настройка X Window