最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Linux系統(tǒng)中xorg.conf文件詳細(xì)介紹

 更新時(shí)間:2013年08月29日 09:17:20   作者:  
以下是對(duì)Linux系統(tǒng)中的xorg.conf文件進(jìn)行了詳細(xì)的分析介紹,需要的朋友可以過(guò)來(lái)參考下

先看一個(gè)完整的xorg.conf文件,如下:

復(fù)制代碼 代碼如下:

# /.../
# SaX generated X11 config file
# Created on: 2009-05-31T19:02:32+0800.
#
# Version: 8.1
# Contact: Marcus Schaefer <sax@suse.de>, 2005
# Contact: SaX-User list <https://lists.berlios.de/mailman/listinfo/sax-users>
#
# Automatically generated by [ISaX] (8.1)
# PLEASE DO NOT EDIT THIS FILE!
#
Section "Files"
  FontPath     "/usr/share/fonts/misc:unscaled"
  FontPath     "/usr/share/fonts/local"
  FontPath     "/usr/share/fonts/75dpi:unscaled"
  FontPath     "/usr/share/fonts/100dpi:unscaled"
  FontPath     "/usr/share/fonts/Type1"
  FontPath     "/usr/share/fonts/URW"
  FontPath     "/usr/share/fonts/Speedo"
  FontPath     "/usr/share/fonts/PEX"
  FontPath     "/usr/share/fonts/cyrillic"
  FontPath     "/usr/share/fonts/latin2/misc:unscaled"
  FontPath     "/usr/share/fonts/latin2/75dpi:unscaled"
  FontPath     "/usr/share/fonts/latin2/100dpi:unscaled"
  FontPath     "/usr/share/fonts/latin2/Type1"
  FontPath     "/usr/share/fonts/latin7/75dpi:unscaled"
  FontPath     "/usr/share/fonts/baekmuk:unscaled"
  FontPath     "/usr/share/fonts/japanese:unscaled"
  FontPath     "/usr/share/fonts/kwintv"
  FontPath     "/usr/share/fonts/truetype"
  FontPath     "/usr/share/fonts/uni:unscaled"
  FontPath     "/usr/share/fonts/CID"
  FontPath     "/usr/share/fonts/ucs/misc:unscaled"
  FontPath     "/usr/share/fonts/ucs/75dpi:unscaled"
  FontPath     "/usr/share/fonts/ucs/100dpi:unscaled"
  FontPath     "/usr/share/fonts/hellas/misc:unscaled"
  FontPath     "/usr/share/fonts/hellas/75dpi:unscaled"
  FontPath     "/usr/share/fonts/hellas/100dpi:unscaled"
  FontPath     "/usr/share/fonts/hellas/Type1"
  FontPath     "/usr/share/fonts/misc/sgi:unscaled"
  FontPath     "/usr/share/fonts/xtest"
  FontPath     "/opt/kde3/share/fonts"
  FontPath     "unix/:7100"
  InputDevices "/dev/gpmdata"
  InputDevices "/dev/input/mice"
EndSection
Section "ServerFlags"
  Option       "AllowMouseOpenFail" "on"
EndSection
Section "Module"
  Load         "extmod"
  Load         "type1"
  Load         "glx"
  Load         "freetype"
  Load         "dbe"
  Load         "v4l"
EndSection
Section "InputDevice"
  Driver       "kbd"
  Identifier   "Keyboard[0]"
  Option       "Protocol" "Standard"
  Option       "XkbLayout" "us"
  Option       "XkbModel" "pc104"
  Option       "XkbRules" "xfree86"
EndSection
Section "InputDevice"
  Driver       "mouse"
  Identifier   "Mouse[1]"
  Option       "Buttons" "5"
  Option       "Device" "/dev/input/mice"
  Option       "Name" "ImPS/2 Generic Wheel Mouse"
  Option       "Protocol" "explorerps/2"
  Option       "Vendor" "Sysp"
  Option       "ZAxisMapping" "4 5"
EndSection
Section "Monitor"
  DisplaySize  305 230
  HorizSync    29-35
  Identifier   "Monitor[0]"
  ModelName    "800X600@56HZ"
  VendorName   "--> VESA"
  VertRefresh  50-60
  UseModes     "Modes[0]"
EndSection
Section "Modes"
  Identifier   "Modes[0]"
  Modeline  "800x600" 35.55 800 832 912 1024 600 601 604 620
  Modeline  "768x576" 33.74 768 792 872 976 576 577 580 596
  Modeline  "640x480" 23.86 640 656 720 800 480 481 484 497
EndSection
Section "Screen"
  DefaultDepth 16
  SubSection "Display"
    Depth      15
    Modes      "800x600" "768x576" "640x480"
  EndSubSection
  SubSection "Display"
    Depth      16
    Modes      "800x600" "768x576" "640x480"
  EndSubSection
  SubSection "Display"
    Depth      24
    Modes      "800x600" "768x576" "640x480"
  EndSubSection
  SubSection "Display"
    Depth      8
    Modes      "800x600" "768x576" "640x480"
  EndSubSection
  Device       "Device[0]"
  Identifier   "Screen[0]"
  Monitor      "Monitor[0]"
EndSection
Section "Device"
  BoardName    "VMWARE0405"
  BusID        "0:15:0"
  Driver       "vmware"
  Identifier   "Device[0]"
  Screen       0
  VendorName   "VMWare Inc"
EndSection
Section "ServerLayout"
  Identifier   "Layout[all]"
  InputDevice  "Keyboard[0]" "CoreKeyboard"
  InputDevice  "Mouse[1]" "CorePointer"
  Option       "Clone" "off"
  Option       "Xinerama" "off"
  Screen       "Screen[0]"
EndSection
Section "DRI"
    Group      "video"
    Mode       0660
EndSection
Section "Extensions"
EndSection

通過(guò)上述代碼會(huì)發(fā)現(xiàn)xorg.conf文件由
Section "xxxx"
.........
EndSection

對(duì)組成.下面我們主要解釋一下每個(gè)節(jié)點(diǎn)的含義。

一、輸入設(shè)備--鍵盤(pán)

復(fù)制代碼 代碼如下:

Section "InputDevice"
  Driver       "kbd"
  Identifier   "Keyboard[0]"
  Option       "Protocol" "Standard"
  Option       "XkbLayout" "us"
  Option       "XkbModel" "pc104"
  Option       "XkbRules" "xfree86"
EndSection

二、輸入設(shè)備--鼠標(biāo)
復(fù)制代碼 代碼如下:

Section "InputDevice"
  Driver       "mouse"
  Identifier   "Mouse[1]"
  Option       "Buttons" "5"
  Option       "Device" "/dev/input/mice"
  Option       "Name" "ImPS/2 Generic Wheel Mouse"
  Option       "Protocol" "explorerps/2"
  Option       "Vendor" "Sysp"
  Option       "ZAxisMapping" "4 5"
EndSection

三、顯示器
復(fù)制代碼 代碼如下:

Section "Monitor"
  DisplaySize  305 230
  HorizSync    29-35
  Identifier   "Monitor[0]"
  ModelName    "800X600@56HZ"
  VendorName   "--> VESA"
  VertRefresh  50-60
  UseModes     "Modes[0]"
EndSection

其中,
Identifier:顯示器的惟一名稱。在這些名稱后面都會(huì)加上一個(gè)數(shù)字,而第一個(gè)顯示器的代表數(shù)字為0(Monitor[0])。

VendorName:顯示器制造商名稱。

ModelName:顯示器類型名稱。

HorizSync:與顯示器兼容的水平刷新頻率范圍,其單位為kHz。這個(gè)設(shè)置值會(huì)同時(shí)指出是否在此顯示器中使用特定的Modeline值。

四、顯卡

復(fù)制代碼 代碼如下:

Section "Device"
  BoardName    "VMWARE0405"
  BusID        "0:15:0"
  Driver       "vmware"
  Identifier   "Device[0]"
  Screen       0
  VendorName   "VMWare Inc"
EndSection

五、Screen
一個(gè)顯示器和一個(gè)顯卡組成一個(gè)screen,用Section "Screen"描述,如:
復(fù)制代碼 代碼如下:

Section "Screen"
  DefaultDepth 16
  SubSection "Display"
    Depth      15
    Modes      "800x600" "768x576" "640x480"
  EndSubSection
  SubSection "Display"
    Depth      16
    Modes      "800x600" "768x576" "640x480"
  EndSubSection
  SubSection "Display"
    Depth      24
    Modes      "800x600" "768x576" "640x480"
  EndSubSection
  SubSection "Display"
    Depth      8
    Modes      "800x600" "768x576" "640x480"
  EndSubSection
  Device       "Device[0]"
  Identifier   "Screen[0]"
  Monitor      "Monitor[0]"
EndSection

其中
 Identifier:定義一個(gè)“Screen”名稱,以便在“ServerLayout”Section中進(jìn)行參照。

 Device:指定“Device”Section中的名稱。

 Monitor:指定“Monitor”Section中的名稱。

 DefaultDepth:默認(rèn)的色深(Color Depth)位數(shù)。

 Modes "800x600" "768x576" "640x480" 表示系統(tǒng)會(huì)默認(rèn)先按照800x600的分辨率去適配,如果適配失敗,則選擇768x576的分辨率繼續(xù)。

六、Modes

復(fù)制代碼 代碼如下:

Section "Modes"
  Identifier   "Modes[0]"
  Modeline      "800x600" 35.55 800 832 912 1024 600 601 604 620
  Modeline      "768x576" 33.74 768 792 872 976 576 577 580 596
  Modeline      "640x480" 23.86 640 656 720 800 480 481 484 497
EndSection

和screen章節(jié)中的Modes對(duì)應(yīng)。

七、ServerLayout

復(fù)制代碼 代碼如下:

Section "ServerLayout"
  Identifier   "Layout[all]"
  InputDevice  "Keyboard[0]" "CoreKeyboard"
  InputDevice  "Mouse[1]" "CorePointer"
  Option       "Clone" "off"
  Option       "Xinerama" "off"
  Screen       "Screen[0]"
EndSection

ServerLayout”Section主要用于建立X Server啟動(dòng)時(shí)的外觀,其中:

Identifier:此ServerLayout Section的惟一名稱。

Screen:“Screen”Section指定的名稱

InputDevice:在X Server中的“InputDevice”Section名稱。通常在此僅有兩行設(shè)置,即Mouse[0]和Keyboard[0],也就是系統(tǒng)中的第一個(gè)鼠標(biāo)和鍵盤(pán),而其他的設(shè)備大多可以忽略。

相關(guān)文章

最新評(píng)論

房产| 双峰县| 枞阳县| 革吉县| 介休市| 武川县| 忻州市| 固始县| 谢通门县| 依安县| 教育| 康乐县| 武功县| 明星| 嫩江县| 黎平县| 宾阳县| 东安县| 文成县| 张家界市| 全南县| 托克托县| 平罗县| 安图县| 嘉祥县| 宁津县| 阳东县| 定西市| 和硕县| 喀什市| 凤翔县| 平陆县| 修文县| 奉节县| 云梦县| 确山县| 彭州市| 海兴县| 洛隆县| 西林县| 富裕县|