首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >外部监视器未连接

外部监视器未连接
EN

Ask Ubuntu用户
提问于 2019-10-20 01:46:05
回答 1查看 1.1K关注 0票数 3

我最近把Ubuntu18.04和windows 10一起安装在我的笔记本电脑上。不幸的是,连接到HDMI-1的外部监视器没有在Ubuntu上工作(未被检测到)。我几乎什么都试过了这里这里。它与HDMI到VGA_适配器连接。我的显卡是GeForce GTX 1650,我试着从NVidia下载驱动程序。另外,正如您在图片中所看到的,在屏幕显示设置中,它甚至没有显示屏幕布局。

在Ubuntu14.04(我的旧笔记本电脑)上,我过去曾通过使用以下方法解决过类似的问题:

代码语言:javascript
复制
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

但是,这也没用。有什么想法吗?

更新:我运行了X -configure (只运行主屏幕),提到了这里,还运行了nvidia-xconfig (只有HDMI )。不知何故,nvidia似乎取得了最近创建的文件xorg.conf.new,并从中获得了自己的xorg.conf。不过,如果我拔掉HDMI,一切都是空白的。至少现在我可以在nvidia x server settings应用程序窗口上看到一个屏幕布局(HDMI)和内容(以前是空白的)。

下面是最新的xorg.conf文件:

代码语言:javascript
复制
# 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: : integer, : float, : "True"/"False",
        ### : "String", : " Hz/kHz/MHz",
        ### : "%"
        ### [arg]: arg optional
        #Option     "Accel"                 # []
        #Option     "AccelMethod"           # 
        #Option     "Backlight"             # 
        #Option     "CustomEDID"            # 
        #Option     "DRI"                   # 
        #Option     "Present"               # []
        #Option     "ColorKey"              # 
        #Option     "VideoKey"              # 
        #Option     "Tiling"                # []
        #Option     "LinearFramebuffer"     # []
        #Option     "HWRotation"            # []
        #Option     "VSync"                 # []
        #Option     "PageFlip"              # []
        #Option     "SwapbuffersWait"       # []
        #Option     "TripleBuffer"          # []
        #Option     "XvPreferOverlay"       # []
        #Option     "HotPlug"               # []
        #Option     "ReprobeOutputs"        # []
        #Option     "XvMC"                  # []
        #Option     "ZaphodHeads"           # 
        #Option     "VirtualHeads"          # 
        #Option     "TearFree"              # []
        #Option     "PerCrtcPixmaps"        # []
        #Option     "FallbackDebug"         # []
        #Option     "DebugFlushBatches"     # []
        #Option     "DebugFlushCaches"      # []
        #Option     "DebugWait"             # []
        #Option     "BufferCache"           # []
    Identifier     "Card0"
    Driver         "nvidia"
    BusID          "PCI:0:2:0"
EndSection

Section "Device"

        ### Available Driver options are:-
        ### Values: : integer, : float, : "True"/"False",
        ### : "String", : " Hz/kHz/MHz",
        ### : "%"
        ### [arg]: arg optional
        #Option     "SWcursor"              # []
        #Option     "HWcursor"              # []
        #Option     "NoAccel"               # []
        #Option     "ShadowFB"              # []
        #Option     "VideoKey"              # 
        #Option     "WrappedFB"             # []
        #Option     "GLXVBlank"             # []
        #Option     "ZaphodHeads"           # 
        #Option     "PageFlip"              # []
        #Option     "SwapLimit"             # 
        #Option     "AsyncUTSDFS"           # []
        #Option     "AccelMethod"           # 
        #Option     "DRI"                   # 
    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输出:

EN

回答 1

Ask Ubuntu用户

发布于 2019-10-20 16:47:35

最后,我让它在双屏幕上工作。我做了很多步骤,这是一个让你怀疑“它是如何工作的?”的解决方案之一。我的最后一步是:

1-我启用/选择了gdm3而不是lightdm作为管理器:

代码语言:javascript
复制
sudo gdm3
sudo dpkg-reconfigure gdm3

2-按照步骤这里登录到恢复模式。

3-完全删除文件rm -rf /etc/X11/xorg.conf

运行X -configure,但不能将创建/root/xorg.conf.new的文件替换为/etc/X11/xorg.conf

5-重新启动到正常模式,我期待一些混乱的东西,但突然双监视器是活跃的,工作良好。

目前,它的工作没有任何xorg.conf文件。

我现在有点害怕去触摸它,虽然我认为我应该尝试重新创建xorg.conf文件,也许是通过nvidia?!我希望这能对其他有类似问题的人有所帮助。

另外,如果我启用了bios上的安全引导,则bios回到零,并且双监视器无法工作,尽管该ubuntu运行正常。也许,需要将驱动程序签入内核或什么的,我不确定。

如果有人知道到底发生了什么,我很高兴听到。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1182278

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档