这三个文件 xorg.conf、xorg.conf.failsafe 和 xorg.conf.nvidia-xconfig-original 有什么区别

这三个文件 xorg.conf、xorg.conf.failsafe 和 xorg.conf.nvidia-xconfig-original 有什么区别

它们有何不同?它们的功能是什么?我是 ubuntu 新手,我正在使用 ubuntu 12.04LTS。

以下是其内容。

xorg配置文件

 # nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 304.88  (buildmeister@swio-display-x86-rhel47-14)  Wed Mar 27 15:36:45 PDT 2013

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

xorg.conf.failsafe

Section "Device"
    Identifier  "Configured Video Device"
    Driver      "vesa"
EndSection

Section "Monitor"
    Identifier  "Configured Monitor"
EndSection

Section "Screen"
    Identifier  "Default Screen"
    Monitor     "Configured Monitor"
    Device      "Configured Video Device"
EndSection
  • 为什么是xorg.conf.nvidia-xconfig-原始空的?
  • 为什么 xorg.conf.failsafe 列出维萨作为司机?

答案1

xorg.conf 是正在使用的(如果可用)。它不再需要,这就是原始文件为空的原因;通常,它甚至不存在,但某些安装脚本(例如 nvidia)会在进行更改时创建备份副本。

因此,故障安全副本可以正常工作,但分辨率和功能会降低。它可能是由旧安装程序创建的,因为我认为 nvidia 不会创建它。但我不再使用 nvidia 驱动程序,所以我可能是弄错了。如果您多次运行 nvidia 脚本,您将得到更多备份。

如果视频出现问题,例如根本没有 GUI,您通常可以使用终端进入目录并重命名文件以更改行为。理论上,您可以将 xorg.conf 重命名为 xorg.conf.1 或任何其他名称,然后将故障安全版本复制到 xorg.conf。

askubuntu 上有一些很好的信息,例如这:

答案2

man xorg.conf会给你提供很多这方面的信息:

NAME
   xorg.conf, xorg.conf.d - configuration files for Xorg X server

INTRODUCTION
   Xorg  supports  several  mechanisms for supplying/obtaining configuration
   and run-time parameters: command line options, environment variables, the
   xorg.conf  and xorg.conf.d configuration files, auto-detection, and fall‐
   back defaults. When the same information is supplied  in  more  than  one
   way,  the highest precedence mechanism is used. The list of mechanisms is
   ordered from highest precedence to lowest. Note that not  all  parameters
   can  be  supplied via all methods. The available command line options and
   environment variables (and some defaults) are described in the Xserver(1)
   and  Xorg(1) manual pages. Most configuration file parameters, with their
   defaults, are described below. Driver and module  specific  configuration
   parameters are described in the relevant driver or module manual page.

xorg.conf.failsafe文件适用于您的机器出现问题,需要以故障安全模式启动的情况。因此,使用通用 VESA 视频驱动程序。同样,如需更多信息,您可以致电man vesa

DESCRIPTION
       vesa  is  an Xorg driver for generic VESA video cards.  It can drive most
       VESA-compatible video cards, but only makes use  of  the  basic  standard
       VESA  core  that is common to these cards.  The driver supports depths 8,
       15 16 and 24.

最后,对于xorg.conf.nvidia-xconfig-original文件,您将再次在手册页中找到足够的信息。man nvidia-xconfig

   --restore-original-backup
          Restore  a  backup of the X configuration that was made before any
          changes were made by nvidia-xconfig, if such a  backup  is  avail‐
          able. This type of backup is made by nvidia-xconfig before it mod‐
          ifies an X configuration file that it has not previously  touched;
          this  is  assumed  to be an X configuration file that predates the
          involvement of the NVIDIA X driver. As an example,  nvidia-xconfig
          will  copy  an  X  configuration  file  at  /etc/X11/xorg.conf  to
          /etc/X11/xorg.conf.nvidia-xconfig-original the first time it makes
          changes to that file.

相关内容