外部显示器未连接

我最近在我的笔记本电脑上安装了Ubuntu 18.04,并同时安装了Windows 10。不幸的是,我连接到HDMI-1的外接显示器在Ubuntu上无法工作(未检测到)。我已经尝试了几乎所有方法这里这里。它是通过HDMI转VGA适配器连接的。我的显卡是GeForce GTX 1650,我尝试从NVidia下载这个驱动程序。而且,正如您在图片中看到的,屏幕显示设置甚至没有显示屏幕布局。
在Ubuntu 14.04(我的旧笔记本电脑)上,我曾经通过使用类似的方法解决过类似的问题:
echo $myNewMode
## Output: "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
xrandr --addmode eDP-1 $myNewModeName
xrandr --output eDP-1 --mode $myNewModeName --output HDMI-1 --auto --right-of eDP-1

但是,这也不起作用。有什么建议吗?

enter image description here

更新:我运行了X -configure(只有主屏幕能工作),如这里所述,然后我运行了nvidia-xconfig(只有HDMI能工作)。不知何故,似乎NVIDIA选择了最近创建的文件xorg.conf.new并从中生成了自己的xorg.conf。但是,如果我拔掉HDMI,一切都是空白的。至少现在我可以看到一个屏幕布局(HDMI)和nvidia x server settings应用窗口中的内容(之前是空白的)enter image description here 以下是最新的xorg.conf文件:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 440.26

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
    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        "built-ins"
EndSection

Section "Module"
    Load           "glx"
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 "Monitor"
    Identifier     "Monitor1"
    VendorName     "Monitor Vendor"
    ModelName      "Monitor Model"
EndSection

Section "Device"

        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"                 # [<bool>]
        #Option     "AccelMethod"           # <str>
        #Option     "Backlight"             # <str>
        #Option     "CustomEDID"            # <str>
        #Option     "DRI"                   # <str>
        #Option     "Present"               # [<bool>]
        #Option     "ColorKey"              # <i>
        #Option     "VideoKey"              # <i>
        #Option     "Tiling"                # [<bool>]
        #Option     "LinearFramebuffer"     # [<bool>]
        #Option     "HWRotation"            # [<bool>]
        #Option     "VSync"                 # [<bool>]
        #Option     "PageFlip"              # [<bool>]
        #Option     "SwapbuffersWait"       # [<bool>]
        #Option     "TripleBuffer"          # [<bool>]
        #Option     "XvPreferOverlay"       # [<bool>]
        #Option     "HotPlug"               # [<bool>]
        #Option     "ReprobeOutputs"        # [<bool>]
        #Option     "XvMC"                  # [<bool>]
        #Option     "ZaphodHeads"           # <str>
        #Option     "VirtualHeads"          # <i>
        #Option     "TearFree"              # [<bool>]
        #Option     "PerCrtcPixmaps"        # [<bool>]
        #Option     "FallbackDebug"         # [<bool>]
        #Option     "DebugFlushBatches"     # [<bool>]
        #Option     "DebugFlushCaches"      # [<bool>]
        #Option     "DebugWait"             # [<bool>]
        #Option     "BufferCache"           # [<bool>]
    Identifier     "Card0"
    Driver         "nvidia"
    BusID          "PCI:0:2:0"
EndSection

Section "Device"

        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "SWcursor"              # [<bool>]
        #Option     "HWcursor"              # [<bool>]
        #Option     "NoAccel"               # [<bool>]
        #Option     "ShadowFB"              # [<bool>]
        #Option     "VideoKey"              # <i>
        #Option     "WrappedFB"             # [<bool>]
        #Option     "GLXVBlank"             # [<bool>]
        #Option     "ZaphodHeads"           # <str>
        #Option     "PageFlip"              # [<bool>]
        #Option     "SwapLimit"             # <i>
        #Option     "AsyncUTSDFS"           # [<bool>]
        #Option     "AccelMethod"           # <str>
        #Option     "DRI"                   # <i>
    Identifier     "Card1"
    Driver         "nvidia"
    BusID          "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Card0"
    Monitor        "Monitor0"
    DefaultDepth    24
    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

Section "Screen"
    Identifier     "Screen1"
    Device         "Card1"
    Monitor        "Monitor1"
    DefaultDepth    24
    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

最新的xrandr输出: xrandr

评论不适合进行长时间讨论;此对话已被移至聊天室 - Thomas Ward
1个回答

终于,我成功地在双屏上实现了它。我经历了许多步骤,其中一种解决方案令人惊讶地让你想知道“它是如何工作的?”我的最后一步是:
1 - 我启用/选择了gdm3而不是lightdm作为管理器:
sudo gdm3
sudo dpkg-reconfigure gdm3

2 - 按照这里的步骤登录恢复模式。
3 - 完全删除文件rm -rf /etc/X11/xorg.conf
4 - 运行X -configure,但不要替换已创建的文件/root/xorg.conf.new/etc/X11/xorg.conf
5 - 重新启动进入正常模式,我本来以为会出现问题,但是双显示器突然就正常工作了。
目前,它可以在没有任何xorg.conf文件的情况下运行。

enter image description here enter image description here enter image description here enter image description here

我现在有点害怕去碰它,尽管我认为我应该尝试重新创建xorg.conf文件,也许通过nvidia!我希望这对其他遇到类似问题的人有用。

另外,如果我在BIOS中启用安全引导,系统就会回到初始状态,双显示器不工作,尽管Ubuntu正常运行。也许需要将驱动程序签名到内核或其他地方,我不确定。

如果有人对实际发生的事情有任何想法,我会很高兴听到。