QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2063|回复: 0

XF86Config说明

[复制链接]
发表于 2004-8-19 21:11:41 | 显示全部楼层 |阅读模式
文件的每节都是由下述的部分组成:

Section "SectionName"
  SectionEntry
  …
EndSection

SectionName包括:

Files      文件路径名
ServerFlags    服务器标志
Module      动态模块加载
InputDevice    输入设备描述
Device      图形设备描述
VideoAdaptor    Xv视频卡描述
Monitor      监视器描述
Modes       视频模式描述
Screen      屏幕配置
ServerLayout    全面的层叠
DRI      DRI特定的配置
Vendor      供应商特定的配置


出于向下兼容的目的,下列项虽已废除但是配置文件仍能识别。在新的配置文件中,应使用新的InputDevice项。
Keyboard 键盘配置
Pointer 指针/鼠标配置
老的XInput节已经被废除。

ServerLayout在最高层。它们绑定的输入输出设备会在这一节里使用。输入设备由InputDevice描述,
输出设备通常有多个独立的组件组成。多个组件组成Screen节。每个Screen节将图形板和监视器绑定在一起。
显示卡由Device节描述,监视器由Monitor节描述。
RGBPath "path"
rgb颜色数据库的路径,缺省值为:/usr/X11R6/lib/X11/rgb。


Option "AllowMouseOpenFail" "boolean"
即使鼠标设备不能被打开/初始化也允许X服务器启动




1)Layout主节点包括Mouse/Keyboard和Screen

Section "ServerLayout"

  Identifier "Layout0"
  Screen "Screen0"
  #Screen "Screen1" Below "Screen0"
  InputDevice "Mouse0" "CorePointer"
  InputDevice "Keyboard0" "CoreKeyboard"

EndSection


2)扩展支持

Section "ServerFlags"

option "Xinerama" "on"和dri有冲突

EndSection

3)定义mouse

主设备号可以在/proc/devices找到。每一个物理设备由设备驱动程序控
制且被分配一个次设备号

Section "InputDevice"
  Identifier "Mouse0"
  Driver "mouse"
  Option "Protocol"  "ImPS/2"    (键位说明)
  Option "ZAxisMapping"  "4 5"
  Option "Device"   "/dev/input/mice" (如果是ps/2的接口)
EndSection
Emulate3Buttons是否模拟3键鼠标

4)定义字体

ection "Files"

RgbPath  "/usr/X11R6/lib/X11/rgb"
  FontPath  "/usr/X11R6/lib/X11/fonts/local/"
  FontPath  "/usr/X11R6/lib/X11/fonts/misc/"
  FontPath  "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
  FontPath  "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
  FontPath  "/usr/X11R6/lib/X11/fonts/Type1/"
  FontPath  "/usr/X11R6/lib/X11/fonts/Speedo/"
  FontPath  "/usr/X11R6/lib/X11/fonts/75dpi/"
  FontPath  "/usr/X11R6/lib/X11/fonts/100dpi/"

#FontPath   "unix/:7100"
EndSection

5)定义显卡
Section "Device"
Identifier "Videocard0"
  Option "DesktopSetup"    "0x00000000"
Driver  "fglrx"(说明驱动/usr/X11R6/lib/modules/drivers)
VendorName "ATI"
BoardName  "ATI Radeon 7000"
BusID  "PCI:1:0:0" (lspci和scanpci -v得到)
Screen0
EndSection

6)定义ddcprobe(显示器)
Section "Monitor"

Identifier  "Monitor0"
VendorName  "Sony"
ModelName  "Sony CPD-G520"
HorizSync  30.0 - 121.0 改刷新率 (横显示器 )
VertRefresh 48.0 - 160.0 改刷新率 (纵显示器-分辨率 )
Option  "dpms"
EndSection

7)附加的模块

Section "Module"
Load "dbe" 
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
#Load "dri"

EndSection

说明对DRI的使用者

#Section "DRI"
#Group  10
#Mode  0666
#EndSection

定义关联

Section "Screen"
Identifier "Screen1" 
Device   "Videocard0" 定义显卡
Monitor  "Monitor1"  显示器
DefaultDepth   24  色深
SubSection "Display"  
Viewport  0 0    虚拟屏
Depth   24
Modes  "1024x768"  屏幕分辨率
EndSubSection
EndSection

VideoRam mem
此选项指定图形卡的RAM数量,以KB为单位。X服务程序会自动探测显示卡,所以此字段一定不要指定。'
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-5-10 06:23 , Processed in 0.104654 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表