在 Ubuntu 18.04 上更新 nvidia-drivers 使我的笔记本电脑显示器无法访问,但外部显示器正在工作

Cre*_*tor 5 multiple-monitors xorg ubuntu

在 Ubuntu 18.04 上更新 nvidia-drivers 使我的笔记本电脑显示器无法访问,但外部显示器正在工作。我当前的显示驱动程序是用于 GTX 1070 的 nvidia-410,这是推荐的选项。

奇怪的是外部 4K 显示器工作正常,但笔记本电脑屏幕不工作。笔记本电脑屏幕刚开始时打开,然后在记录后停止,只有外部显示器工作。如果未连接外部显示器,则登录屏幕后笔记本电脑屏幕将关闭/冻结。

我可以确认 xorg.conf 没有 lvds 条目,甚至 xrandr -q 的输出也不显示 lvds display。请帮忙。作为参考,我的xorg.conf 是

Section  "ServerLayout"

    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    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
Run Code Online (Sandbox Code Playgroud)

输出xrandr -q说:-

Screen 0: minimum 8 x 8, current 3840 x 2160, maximum 32767 x 32767
HDMI-0 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 621mm x 341mm  
   3840x2160     60.00*+  59.94    50.00    30.00    29.97    23.98  
   1920x1080     60.00    59.94    50.00    29.97    23.98    60.00    50.04  
   1680x1050     59.95  
   1440x900      59.89  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x800      59.81  
   1280x768      59.87  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  
DP-0 disconnected (normal left inverted right x axis y axis)  
DP-1 disconnected (normal left inverted right x axis y axis)
Run Code Online (Sandbox Code Playgroud)

而是xrandr --listdisplays:-

Monitors: 1  0: +*HDMI-0 3840/621x2160/341+0+0  HDMI-0
Run Code Online (Sandbox Code Playgroud)

如您所见,LVDS 无处不在。

为了显示 nvidia 驱动程序在外部显示器上正常工作,nvidia-smi 的输出能够运行并提供有关外部显示器的正确信息。

Mik*_*ike 4

删除/etc/X11/xorg.conf

花了几个小时试图解决这个问题,结果就是这样。