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

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

我已通过 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

答案1

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

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

在此处输入图片描述

然后点击“设为默认”。此后,Ubuntu 应该会自动检测您何时连接外接显示器并自动更改显示设置。

相关内容