Failed to start the X server xorg.conf配置

來源:互聯網
上載者:User
文章目錄
  • cd /ect/X11/xorg.conf
  • vi xorg.conf
  • 找到Section"Monitor"
  •   `````````````
  •   ```````````
  •   ```````````
  •     DPMC(似乎是這個單詞,總之是最後一行) “ture”
  • EndSection
  • Section"Screen"
  •   ····················
  • 將上面的"ture” 改為 "false"
  • 儲存退出即可。
  • --------------------------------------------------
  • You need to edit your /etc/X11/xorg.conf
  • configuration file.
  • In that screen resolution you have to set it properly, 
  • just try to set the screen resolution to 800x600 and see.
  • After editing the conf file also still you are getting 
  • the same error please post the VMware log & Guest mechines X log.。
  • X11重要目錄
  • /etc/X11/xorg.conf檔案
  • ServerLayout
  • Files
  • Module
  • InputDevice
  • Monitor
  • Device
  • Screen
  • DRI
cd /ect/X11/xorg.confvi xorg.conf找到Section"Monitor"  `````````````  ```````````  ```````````    DPMC(似乎是這個單詞,總之是最後一行) “ture”EndSectionSection"Screen"  ····················將上面的"ture” 改為 "false"儲存退出即可。--------------------------------------------------You need to edit your /etc/X11/xorg.confconfiguration file.In that screen resolution you have to set it properly, just try to set the screen resolution to 800x600 and see.After editing the conf file also still you are getting the same error please post the VMware log & Guest mechines X log.。X11重要目錄

與X11R7有關的軟體,大多放在/usr及其子目錄中。以下是較為重要的目錄的說明:

 /usr/bin:存放X Server和不同的X Clients。

 /usr/include:開發X Client和圖形所需的檔案路徑。

 /usr/lib:X Server和X Clients所需的函數庫目錄。

 /usr/lib/X11:儲存多項資源,如字型和檔案等。

 /usr/lib/xorg/modules:包含驅動程式與多種X Server模組。

 /usr/X11/man:儲存X11程式編寫時的手冊說明頁。

/etc/X11/xorg.conf檔案

在安裝時如果沒有設定X Window系統,之後必須先行設定滑鼠、鍵盤、顯示器以及顯示卡等,這樣才能成功啟用X Window系統,而這些設定都記錄在/etc/X11/xorg.conf檔案中。這個檔案的重要性可見一斑。

這個檔案由數個Section/EndSection的區塊組成,而每個區塊的格式如下:

Section "Section名稱"

          選項名稱     "選項值"

           選項名稱     "選項值"

          選項名稱     "選項值"

EndSection

下面將說明/etc/X11/xorg.conf檔案中使用的Section類型及每個類型可用的選項名稱和選項值。

ServerLayout

“ServerLayout”Section主要用於建立X Server啟動時的外觀,如果檔案中包含多個ServerLayout Section,則預設會使用第一個ServerLayout Section的設定。

以下是此區塊的系統預設值,以及可供使用的選項說明:

Section "ServerLayout"

        Identifier                    "Default Layout"

        Screen                        "Default Screen"

        InputDevice                "Generic Keyboard"

        InputDevice                "Configured Mouse"

        InputDevice                "stylus" "SendCoreEvents"

        InputDevice                "cursor" "SendCoreEvents"

        InputDevice                "eraser" "SendCoreEvents"

EndSection

 Identifier:此ServerLayout Section的惟一名稱。

 Screen:“Screen”Section指定的名稱,此名稱左側的數字表示在Multi-head環境下的螢幕數量,如果使用標準的Single-head顯示卡,則此值為0。在此名稱右側的數字分別代表螢幕左上方的X與Y絕對座標,預設值為“0 0”。

 InputDevice:在X Server中的“InputDevice”Section名稱。通常在此僅有兩行設定,即Mouse0和Keyboard0,也就是系統中的第一個滑鼠和鍵盤,而其他的裝置大多可以忽略。

Files

“Files”Section用於設定X Server服務的路徑,如字型和顏色。以下是此區塊的系統預設值,以及可供使用的選項說明:

Section "Files"

        FontPath         "/usr/share/X11/fonts/misc"

        FontPath         "/usr/share/X11/fonts/cyrillic"

        FontPath         "/usr/share/X11/fonts/100dpi/:unscaled"

        FontPath         "/usr/share/X11/fonts/75dpi/:unscaled"

        FontPath         "/usr/share/X11/fonts/Type1"

        FontPath         "/usr/share/X11/fonts/100dpi"

        FontPath         "/usr/share/X11/fonts/75dpi"

        FontPath         "/usr/share/fonts/X11/misc"

        # path to defoma fonts

        FontPath         "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"

EndSection

 RgbPath:RGB資料庫的路徑。這個檔案定義在X中所有有效顏色的名稱,並且指定數值。

 FontPath:設定X Server尋找字型時的路徑。可以同時使用多個路徑,但需用逗號隔開。

Module

“Module”Section主要用來告訴X Server應載入哪些模組。這些模組可以提供額外的服務功能,一般並不需要更改此處的值。此處使用的惟一選項為“Load”,它可用來載入模組。以下是此區塊的系統預設值:

Section "Module"

        Load    "i2c"

        Load    "bitmap"

        Load    "ddc"

        Load    "dri"

        Load    "extmod"

        Load    "freetype"

        Load    "glx"

        Load    "int10"

        Load    "type1"

        Load    "vbe"

EndSection

InputDevice

“InputDevice”Section用於設定滑鼠或鍵盤等輸入裝置,以便通過X Server提供資訊給Linux系統,多數系統至少都存在兩個InputDevice Section(滑鼠和鍵盤)。

以下是此區塊的系統預設值,以及可供使用的選項說明:

Section "InputDevice"

        Identifier         "Generic Keyboard"

        Driver                        "kbd"

        Option            "CoreKeyboard"

        Option            "XkbRules"     "xorg"

        Option            "XkbModel"    "pc105"

        Option            "XkbLayout"    "us"

        Option            "XkbOptions" "lv3:ralt_switch"

EndSection

Section "InputDevice"

        Identifier         "Configured Mouse"

        Driver                        "mouse"

        Option            "CorePointer"

        Option            "Device"                    "/dev/input/mice"

        Option            "Protocol"                  "ExplorerPS/2"

        Option            "ZAxisMapping"                    "4 5"

        Option            "Emulate3Buttons"      "true"

EndSection

Section "InputDevice"

    Driver        "wacom"

    Identifier    "stylus"

    Option        "Device"        "/dev/wacom"    # Change to

                                                  # /dev/input/event

                                                 # for USB

    Option        "Type"          "stylus"

    Option        "ForceDevice"   "ISDV4"         # Tablet PC ONLY

EndSection

Section "InputDevice"

    Driver        "wacom"

    Identifier    "eraser"

    Option        "Device"        "/dev/wacom"    # Change to

                                                # /dev/input/event

                                                # for USB

    Option        "Type"          "eraser"

    Option        "ForceDevice"   "ISDV4"        # Tablet PC ONLY

EndSection

Section "InputDevice"

    Driver        "wacom"

    Identifier    "cursor"

    Option        "Device"        "/dev/wacom"    # Change to

                                                  # /dev/input/event

                                                 # for USB

    Option        "Type"          "cursor"

    Option        "ForceDevice"   "ISDV4"         # Tablet PC ONLY

EndSection

 Identifier:設定裝置的名稱。通常這些名稱後面都會加上一個數字,第一個裝置的數字為0。例如,第一個鍵盤的Identifier為Keyboard0。

 Driver:告訴X Server應該從哪裡載入驅動程式。

在大多數的InputDevice Section中,尚有為數不等以“Option”為首的選項,並且包含特定的選項值。如果要啟用這些選項功能,只要將每行開頭的注釋符號“#”去除即可。

Monitor

“Monitor”Section用於設定系統使用的顯示器類型,設定此處選項時應特別留意,因為不適當的設定可能會給顯示器造成損害。

以下是此區塊的系統預設值,以及可供使用的選項說明:

Section "Monitor"

   Identifier    "Generic Monitor"

   Option                            "DPMS"

   HorizSync             28-51

   VertRefresh                      43-60

EndSection

 Identifier:顯示器的惟一名稱。在這些名稱後面都會加上一個數字,而第一個顯示器的代表數字為0(Monitor0)。

 VendorName:顯示器製造商名稱。

 ModelName:顯示器類型名稱。

 HorizSync:與顯示器相容的水平重新整理頻率範圍,其單位為kHz。這個設定值會同時指出是否在此顯示器中使用特定的Modeline值。

 VertRefresh:與顯示器相容的垂直重新整理頻率範圍,其單位為kHz。這個設定值會同時指出是否在此顯示器中使用特定的Modeline值。

Device

“Device”Section用於設定顯示卡的資訊內容,在此檔案中至少需要包含一個以上的Device Section。如果系統中包含多張顯示卡,或一張顯示卡上有多種設定值,則可以使用多個Device Section設定。

以下是此區塊的系統預設值,以及可供使用的選項說明:

Section "Device"

        Identifier                    "VMWare Inc [VMware SVGA II] PCI Display Adapter"

        Driver                        "vmware"

        BusID                        "PCI:0:15:0"

EndSection

 Identifier:顯示卡的惟一名稱。

 Driver:用來告訴X Server應從何處載入顯示卡的驅動程式。

 VendorName:顯示卡製造商名稱。

 BoardName:顯示卡類型名稱。

 BusID:顯示卡的匯流排位置,這個選項適用於多顯示卡環境。

Screen

“Screen”Section合并了Device和Monitor的部分,以便能夠形成成對的設定內容。在此檔案中至少需要包含一個以上的Screen Section。

以下是此區塊的系統預設值,以及可供使用的選項說明:

Section "Screen"

   Identifier           "Default Screen"

   Device                         "VMWare Inc [VMware SVGA II] PCI Display Adapter"

   Monitor            "Generic Monitor"

   DefaultDepth                 24

   SubSection                  "Display"

         Depth                     1

         Modes                    "1024×768" "800×600" "640×480"

   EndSubSection

   SubSection                   "Display"

         Depth                         4

         Modes             "1024×768" "800×600" "640×480"

   EndSubSection

   SubSection "                Display"

         Depth                         8

         Modes             "1024×768" "800×600" "640×480"

   EndSubSection

   SubSection                       "Display"

         Depth                         15

         Modes             "1024×768" "800×600" "640×480"

   EndSubSection

   SubSection                       "Display"

         Depth                        16

         Modes             "1024×768" "800×600" "640×480"

   EndSubSection

   SubSection                       "Display"

         Depth                         24

         Modes             "1024×768" "800×600" "640×480"

   EndSubSection

EndSection

 Identifier:定義一個“Screen”名稱,以便在“ServerLayout”Section中進行參照。

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

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

 DefaultDepth:預設的色深(Color Depth)位元。

DRI

Direct Rendering Infrastructure(DRI)是一種介面,它讓3D軟體可以使用新型顯示裝置的3D硬體加速功能。除此之外,DRI也能改善2D硬體加速的效能。但通常並不使用這個選項功能,除非在“Module”Section中開啟DRI設定。以下是此區塊的系統預設值:

Section "DRI"

   Mode     0666

EndSection

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.