如何将外接显示器设置为默认值?

sof*_*ter 6 xorg external-monitor

我已通过 HDMI 将外接显示器连接到我的笔记本电脑。目前,当我选择“两者中的相同图像”时,我的桌面要么扩展到外​​部显示器(具有原始分辨率),要么同时扩展到两个低分辨率。

如何确保默认使用外接显示器而笔记本电脑显示器只是空白。

我通过执行以下操作生成了 xorg.conf 文件:

X-配置

以下是我的用户文件夹中生成的 xorg.conf.new 文件的内容。我应该在任何地方复制这个吗?我应该编辑内容吗?

Section "ServerLayout"
    Identifier      "X.org Configured"
    Screen          0 "Screen0" 0 0     
    InputDevice     "Mouse0" "CorePointer"
    InputDevice     "Keyboard0" "CoreKeyboard" 
EndSection

Section "Files"
    ModulePath      "/usr/lib/xorg/modules"
    FontPath        "/usr/share/fonts/X11/misc"
    FontPath    "/usr/share/fonts/X11/cyrillic"
    FontPath        "/usr/share/fonts/X11/100dpi/:unscaled"
    FontPath        "/usr/share/fonts/X11/75dpi/:unscaled"
    FontPath        "/usr/share/fonts/X11/Type1"
    FontPath    "/usr/share/fonts/X11/100dpi"
    FontPath    "/usr/share/fonts/X11/75dpi"
    FontPath    "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
    FontPath        "built-ins" 
EndSection

Section "Module"
    Load    "glx"
    Load    "dri2"
    Load    "record"
    Load    "extmod"
    Load    "dbe"
    Load    "dri" 
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver          "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver          "mouse"
    Option      "Protocol" "auto"
    Option          "Device" "/dev/input/mice"
    Option      "ZAxisMapping" "4 5 6 7" 
EndSection

Section "Monitor"
    Identifier      "Monitor0"
    VendorName      "Monitor Vendor"
    ModelName       "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<fHz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "NoAccel"               # [<bool>]
        #Option     "SWcursor"              # [<bool>]
        #Option     "ColorKey"              # <i>
        #Option     "CacheLines"            # <i>
        #Option     "Dac6Bit"               # [<bool>]
        #Option     "DRI"                   # [<bool>]
        #Option     "NoDDC"                 # [<bool>]
        #Option     "ShowCache"             # [<bool>]
        #Option     "XvMCSurfaces"          # <i>
        #Option     "PageFlip"              # [<bool>]  Identifier  "Card0"
    Driver      "intel"     BusID      
"PCI:0:2:0" EndSection

Section "Screen"
    Identifier  "Screen0"
    Device      "Card0"
    Monitor     "Monitor0"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
 EndSection
Run Code Online (Sandbox Code Playgroud)

Sep*_*älä 2

我看到你有英特尔驱动程序。您根本不再需要 xorg.conf。

只需插入外部显示器,进入显示器设置并按照您想要的方式配置显示器:

在此输入图像描述

然后单击“设为默认”。此后,每当您连接外部显示器时,Ubuntu 都会自动检测并自动更改显示设置。