对我来说不起作用的是:

对我来说不起作用的是:

问题如标题所述。当我使用主板图形进行安全加载时,屏幕在登录期间和之后都正常工作。

当我使用我的 nvidea 驱动程序(nvidea-418)时,笔记本电脑屏幕一直工作直到我登录,在我输入密码后,它会在大约十分之一秒后冻结,然后我的外接显示器启动。

整个 xorg 日志文件太大,无法粘贴,但我认为包含相关部分的内容是:

[   239.369] (--) Log file renamed from "/var/log/Xorg.pid-2609.log" to "/var/log/Xorg.0.log"
[   239.370] 
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
[   239.370] Build Operating System: Linux 4.4.0-143-generic x86_64 Ubuntu
[   239.370] Current Operating System: Linux ubuntu 5.0.0-13-generic #14-Ubuntu SMP Mon Apr 15 14:59:14 UTC 2019 x86_64
[   239.370] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.0.0-13-generic root=UUID=1cecb776-9479-4233-9676-d8d303f4c25d ro quiet splash vt.handoff=1
[   239.370] Build Date: 03 April 2019  09:03:57AM
[   239.370] xorg-server 2:1.20.4-1ubuntu3 (For technical support please see http://www.ubuntu.com/support) 
[   239.370] Current version of pixman: 0.36.0
[   239.370]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[   239.370] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   239.371] (==) Log file: "/var/log/Xorg.0.log", Time: Mon May  6 11:34:50 2019
[   239.371] (==) Using config file: "/etc/X11/xorg.conf"
[   239.371] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   239.373] (==) ServerLayout "Layout0"
[   239.373] (**) |-->Screen "Screen0" (0)
[   239.373] (**) |   |-->Monitor "Monitor0"
[   239.374] (**) |   |-->Device "Device0"
[   239.374] (**) |-->Input Device "Keyboard0"
[   239.374] (**) |-->Input Device "Mouse0"
[   239.374] (==) Automatically adding devices
[   239.374] (==) Automatically enabling devices
[   239.374] (==) Automatically adding GPU devices
[   239.374] (==) Automatically binding GPU devices
[   239.374] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   239.374] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[   239.374]    Entry deleted from font path.
[   239.374] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[   239.374]    Entry deleted from font path.
[   239.374] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[   239.374]    Entry deleted from font path.
[   239.374] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[   239.374]    Entry deleted from font path.
[   239.374] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[   239.374]    Entry deleted from font path.
[   239.374] (==) FontPath set to:
    /usr/share/fonts/X11/misc,
    /usr/share/fonts/X11/Type1,
    built-ins
[   239.374] (==) ModulePath set to "/usr/lib/xorg/modules"
[   239.375] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[   239.375] (WW) Disabling Keyboard0
[   239.375] (WW) Disabling Mouse0
[   239.375] (II) Loader magic: 0x5575291c1020
[   239.375] (II) Module ABI versions:
[   239.375]    X.Org ANSI C Emulation: 0.4
[   239.375]    X.Org Video Driver: 24.0
[   239.375]    X.Org XInput driver : 24.1
[   239.375]    X.Org Server Extension : 10.0
[   239.376] (++) using VT number 2

[   239.379] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_35
[   239.380] (II) xfree86: Adding drm device (/dev/dri/card1)
[   239.382] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 12 paused 0
[   239.382] (II) xfree86: Adding drm device (/dev/dri/card0)
[   239.384] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 13 paused 0
[   239.387] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/x86_64-linux-gnu/nvidia-418/xorg,/usr/lib/xorg/modules"
[   239.387] (**) OutputClass "Nvidia Prime" ModulePath extended to "/x86_64-linux-gnu/nvidia/xorg,/usr/lib/x86_64-linux-gnu/nvidia-418/xorg,/usr/lib/xorg/modules"
[   239.387] (**) OutputClass "Nvidia Prime" setting /dev/dri/card1 as PrimaryGPU
[   239.390] (--) PCI: (0@0:2:0) 8086:591b:1558:9501 rev 4, Mem @ 0xdd000000/16777216, 0xa0000000/536870912, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[   239.390] (--) PCI:*(1@0:0:0) 10de:1ba1:1558:9501 rev 161, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[   239.390] (II) LoadModule: "glx"
[   239.392] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   239.394] (II) Module glx: vendor="X.Org Foundation"
[   239.394]    compiled for 1.20.4, module version = 1.0.0
[   239.394]    ABI class: X.Org Server Extension, version 10.0
[   239.394] (II) LoadModule: "nvidia"
[   239.394] (II) Loading /usr/lib/x86_64-linux-gnu/nvidia-418/xorg/nvidia_drv.so
[   239.398] (II) Module nvidia: vendor="NVIDIA Corporation"
[   239.398]    compiled for 4.0.2, module version = 1.0.0
[   239.399]    Module class: X.Org Video Driver
[   239.399] (II) NVIDIA dlloader X Driver  418.56  Fri Mar 15 12:37:35 CDT 2019
[   239.399] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   239.400] (II) systemd-logind: releasing fd for 226:1
[   239.401] (II) Loading sub module "fb"
[   239.401] (II) LoadModule: "fb"
[   239.402] (II) Loading /usr/lib/xorg/modules/libfb.so
[   239.403] (II) Module fb: vendor="X.Org Foundation"
[   239.403]    compiled for 1.20.4, module version = 1.0.0
[   239.403]    ABI class: X.Org ANSI C Emulation, version 0.4
[   239.403] (II) Loading sub module "wfb"
[   239.403] (II) LoadModule: "wfb"
[   239.403] (II) Loading /usr/lib/xorg/modules/libwfb.so
[   239.404] (II) Module wfb: vendor="X.Org Foundation"
[   239.404]    compiled for 1.20.4, module version = 1.0.0
[   239.404]    ABI class: X.Org ANSI C Emulation, version 0.4
[   239.404] (II) Loading sub module "ramdac"
[   239.404] (II) LoadModule: "ramdac"
[   239.404] (II) Module "ramdac" already built-in
[   239.405] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[   239.405] (==) NVIDIA(0): RGB weight 888
[   239.405] (==) NVIDIA(0): Default visual is TrueColor
[   239.405] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[   239.406] (II) Applying OutputClass "nvidia" options to /dev/dri/card1
[   239.406] (II) Applying OutputClass "Nvidia Prime" options to /dev/dri/card1
[   239.406] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
[   239.406] (**) NVIDIA(0): Option "IgnoreDisplayDevices" "CRT"
[   239.406] (**) NVIDIA(0): Enabling 2D acceleration
[   239.406] (II) Loading sub module "glxserver_nvidia"
[   239.406] (II) LoadModule: "glxserver_nvidia"
[   239.407] (II) Loading /usr/lib/x86_64-linux-gnu/nvidia-418/xorg/libglxserver_nvidia.so
[   239.434] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[   239.434]    compiled for 4.0.2, module version = 1.0.0
[   239.434]    Module class: X.Org Server Extension
[   239.434] (II) NVIDIA GLX Module  418.56  Fri Mar 15 12:36:35 CDT 2019
[   239.462] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:1:0:0
[   239.462] (--) NVIDIA(0):     DFP-0 (boot)
[   239.462] (--) NVIDIA(0):     DFP-1
[   239.462] (--) NVIDIA(0):     DFP-2
[   239.462] (--) NVIDIA(0):     DFP-3
[   239.462] (--) NVIDIA(0):     DFP-4
[   239.464] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 1070 with Max-Q Design (GP104-A) at
[   239.464] (II) NVIDIA(0):     PCI:1:0:0 (GPU-0)
[   239.464] (--) NVIDIA(0): Memory: 8388608 kBytes
[   239.464] (--) NVIDIA(0): VideoBIOS: 86.04.6e.00.12
[   239.464] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[   239.494] (--) NVIDIA(GPU-0): Samsung C34J79x (DFP-0): connected
[   239.494] (--) NVIDIA(GPU-0): Samsung C34J79x (DFP-0): Internal TMDS
[   239.494] (--) NVIDIA(GPU-0): Samsung C34J79x (DFP-0): 600.0 MHz maximum pixel clock
[   239.494] (--) NVIDIA(GPU-0): 
[   239.494] (--) NVIDIA(GPU-0): DFP-1: disconnected
[   239.494] (--) NVIDIA(GPU-0): DFP-1: Internal DisplayPort
[   239.494] (--) NVIDIA(GPU-0): DFP-1: 1440.0 MHz maximum pixel clock
[   239.494] (--) NVIDIA(GPU-0): 
[   239.494] (--) NVIDIA(GPU-0): DFP-2: disconnected
[   239.494] (--) NVIDIA(GPU-0): DFP-2: Internal TMDS
[   239.494] (--) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
[   239.494] (--) NVIDIA(GPU-0): 
[   239.494] (--) NVIDIA(GPU-0): DFP-3: disconnected
[   239.494] (--) NVIDIA(GPU-0): DFP-3: Internal DisplayPort
[   239.494] (--) NVIDIA(GPU-0): DFP-3: 1440.0 MHz maximum pixel clock
[   239.494] (--) NVIDIA(GPU-0): 
[   239.494] (--) NVIDIA(GPU-0): DFP-4: disconnected
[   239.494] (--) NVIDIA(GPU-0): DFP-4: Internal TMDS
[   239.494] (--) NVIDIA(GPU-0): DFP-4: 165.0 MHz maximum pixel clock
[   239.494] (--) NVIDIA(GPU-0): 
[   239.499] (==) NVIDIA(0): 
[   239.499] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[   239.499] (==) NVIDIA(0):     will be used as the requested mode.
[   239.499] (==) NVIDIA(0): 
[   239.500] (II) NVIDIA(0): Validated MetaModes:
[   239.500] (II) NVIDIA(0):     "DFP-0:nvidia-auto-select"
[   239.500] (II) NVIDIA(0): Virtual screen size determined to be 3440 x 1440
[   239.511] (--) NVIDIA(0): DPI set to (109, 110); computed from "UseEdidDpi" X config
[   239.512] (--) NVIDIA(0):     option
[   239.512] (II) NVIDIA: Using 24576.00 MB of virtual memory for indirect memory
[   239.512] (II) NVIDIA:     access.
[   239.537] (II) NVIDIA(0): Setting mode "DFP-0:nvidia-auto-select"
[   239.571] (==) NVIDIA(0): Disabling shared memory pixmaps
[   239.571] (==) NVIDIA(0): Backing store enabled
[   239.571] (==) NVIDIA(0): Silken mouse enabled
[   239.571] (**) NVIDIA(0): DPMS enabled
[   239.572] (WW) NVIDIA(0): Option "PrimaryGPU" is not used
[   239.572] (II) Loading sub module "dri2"
[   239.572] (II) LoadModule: "dri2"
[   239.572] (II) Module "dri2" already built-in
[   239.572] (II) NVIDIA(0): [DRI2] Setup complete
[   239.572] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[   239.572] (II) Initializing extension Generic Event Extension
[   239.572] (II) Initializing extension SHAPE
[   239.572] (II) Initializing extension MIT-SHM
[   239.572] (II) Initializing extension XInputExtension
[   239.573] (II) Initializing extension XTEST
[   239.573] (II) Initializing extension BIG-REQUESTS
[   239.573] (II) Initializing extension SYNC
[   239.573] (II) Initializing extension XKEYBOARD
[   239.573] (II) Initializing extension XC-MISC
[   239.573] (II) Initializing extension SECURITY
[   239.573] (II) Initializing extension XFIXES
[   239.573] (II) Initializing extension RENDER
[   239.573] (II) Initializing extension RANDR
[   239.574] (II) Initializing extension COMPOSITE
[   239.574] (II) Initializing extension DAMAGE
[   239.574] (II) Initializing extension MIT-SCREEN-SAVER
[   239.574] (II) Initializing extension DOUBLE-BUFFER
[   239.574] (II) Initializing extension RECORD
[   239.574] (II) Initializing extension DPMS
[   239.574] (II) Initializing extension Present
[   239.574] (II) Initializing extension DRI3
[   239.574] (II) Initializing extension X-Resource
[   239.574] (II) Initializing extension XVideo
[   239.574] (II) Initializing extension XVideo-MotionCompensation
[   239.574] (II) Initializing extension SELinux
[   239.574] (II) SELinux: Disabled on system
[   239.574] (II) Initializing extension GLX
[   239.575] (II) Initializing extension GLX
[   239.575] (II) Indirect GLX disabled.
[   239.575] (II) GLX: Another vendor is already registered for screen 0
[   239.575] (II) Initializing extension XFree86-VidModeExtension
[   239.575] (II) Initializing extension XFree86-DGA
[   239.575] (II) Initializing extension XFree86-DRI
[   239.575] (II) Initializing extension DRI2
[   239.575] (II) Initializing extension NV-GLX
[   239.575] (II) Initializing extension NV-CONTROL
[   239.575] (II) Initializing extension XINERAMA
[   239.625] (II) config/udev: Adding input device Power Button (/dev/input/event3)
[   239.625] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[   239.625] (II) LoadModule: "libinput"
[   239.625] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[   239.626] (II) Module libinput: vendor="X.Org Foundation"
[   239.626]    compiled for 1.20.4, module version = 0.28.2
[   239.626]    Module class: X.Org XInput Driver
[   239.626]    ABI class: X.Org XInput driver, version 24.1
[   239.626] (II) Using input driver 'libinput' for 'Power Button'
[   239.627] (II) systemd-logind: got fd for /dev/input/event3 13:67 fd 40 paused 0
[   239.627] (**) Power Button: always reports core events
[   239.627] (**) Option "Device" "/dev/input/event3"
[   239.627] (**) Option "_source" "server/udev"
[   239.628] (II) event3  - Power Button: is tagged by udev as: Keyboard
[   239.628] (II) event3  - Power Button: device is a keyboard
[   239.628] (II) event3  - Power Button: device removed
[   239.628] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3/event3"
[   239.628] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[   239.628] (**) Option "xkb_model" "pc105"
[   239.628] (**) Option "xkb_layout" "gb"
[   239.638] (II) event3  - Power Button: is tagged by udev as: Keyboard
[   239.638] (II) event3  - Power Button: device is a keyboard
[   239.638] (II) config/udev: Adding input device Video Bus (/dev/input/event23)
[   239.638] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[   239.638] (II) Using input driver 'libinput' for 'Video Bus'
[   239.639] (II) systemd-logind: got fd for /dev/input/event23 13:87 fd 43 paused 0
[   239.639] (**) Video Bus: always reports core events
[   239.639] (**) Option "Device" "/dev/input/event23"
[   239.639] (**) Option "_source" "server/udev"
[   239.640] (II) event23 - Video Bus: is tagged by udev as: Keyboard
[   239.640] (II) event23 - Video Bus: device is a keyboard
[   239.640] (II) event23 - Video Bus: device removed
[   239.640] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input31/event23"
[   239.640] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[   239.640] (**) Option "xkb_model" "pc105"
[   239.640] (**) Option "xkb_layout" "gb"
[   239.640] (II) event23 - Video Bus: is tagged by udev as: Keyboard
[   239.640] (II) event23 - Video Bus: device is a keyboard
[   239.641] (II) config/udev: Adding input device Video Bus (/dev/input/event24)
[   239.641] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[   239.641] (II) Using input driver 'libinput' for 'Video Bus'
[   239.641] (II) systemd-logind: got fd for /dev/input/event24 13:88 fd 44 paused 0
[   239.641] (**) Video Bus: always reports core events
[   239.641] (**) Option "Device" "/dev/input/event24"
[   239.641] (**) Option "_source" "server/udev"
[   239.642] (II) event24 - Video Bus: is tagged by udev as: Keyboard
[   239.642] (II) event24 - Video Bus: device is a keyboard
[   239.642] (II) event24 - Video Bus: device removed
[   239.642] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:12/LNXVIDEO:01/input/input32/event24"
[   239.642] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[   239.642] (**) Option "xkb_model" "pc105"
[   239.642] (**) Option "xkb_layout" "gb"
[   239.643] (II) event24 - Video Bus: is tagged by udev as: Keyboard
[   239.643] (II) event24 - Video Bus: device is a keyboard
[   239.643] (II) config/udev: Adding input device Power Button (/dev/input/event0)
[   239.643] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[   239.643] (II) Using input driver 'libinput' for 'Power Button'
[   239.643] (II) systemd-logind: got fd for /dev/input/event0 13:64 fd 45 paused 0
[   239.643] (**) Power Button: always reports core events
[   239.643] (**) Option "Device" "/dev/input/event0"
[   239.643] (**) Option "_source" "server/udev"
[   239.644] (II) event0  - Power Button: is tagged by udev as: Keyboard
[   239.644] (II) event0  - Power Button: device is a keyboard
[   239.644] (II) event0  - Power Button: device removed
[   239.644] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0/event0"
[   239.644] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 9)
[   239.644] (**) Option "xkb_model" "pc105"
[   239.644] (**) Option "xkb_layout" "gb"
[   239.645] (II) event0  - Power Button: is tagged by udev as: Keyboard
[   239.645] (II) event0  - Power Button: device is a keyboard
[   239.645] (II) config/udev: Adding input device Lid Switch (/dev/input/event2)
[   239.645] (II) No input driver specified, ignoring this device.
[   239.645] (II) This device may have been added with another device file.
[   239.645] (II) config/udev: Adding input device Sleep Button (/dev/input/event1)
[   239.645] (**) Sleep Button: Applying InputClass "libinput keyboard catchall"
[   239.645] (II) Using input driver 'libinput' for 'Sleep Button'
[   239.646] (II) systemd-logind: got fd for /dev/input/event1 13:65 fd 46 paused 0
[   239.646] (**) Sleep Button: always reports core events
[   239.646] (**) Option "Device" "/dev/input/event1"
[   239.646] (**) Option "_source" "server/udev"
[   239.646] (II) event1  - Sleep Button: is tagged by udev as: Keyboard
[   239.646] (II) event1  - Sleep Button: device is a keyboard
[   239.646] (II) event1  - Sleep Button: device removed
[   239.646] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1/event1"
[   239.646] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 10)
[   239.646] (**) Option "xkb_model" "pc105"
[   239.646] (**) Option "xkb_layout" "gb"
[   239.647] (II) event1  - Sleep Button: is tagged by udev as: Keyboard
[   239.647] (II) event1  - Sleep Button: device is a keyboard
[   239.647] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=3 (/dev/input/event256)
[   239.647] (II) No input driver specified, ignoring this device.
[   239.647] (II) This device may have been added with another device file.
[   239.647] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=7 (/dev/input/event257)
[   239.647] (II) No input driver specified, ignoring this device.
[   239.647] (II) This device may have been added with another device file.
[   239.648] (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=8 (/dev/input/event258)
[   239.648] (II) No input driver specified, ignoring this device.
[   239.648] (II) This device may have been added with another device file.
[   239.648] (II) config/udev: Adding input device Logitech USB Receiver (/dev/input/event6)
[   239.648] (**) Logitech USB Receiver: Applying InputClass "libinput keyboard catchall"
[   239.648] (II) Using input driver 'libinput' for 'Logitech USB Receiver'
[   239.649] (II) systemd-logind: got fd for /dev/input/event6 13:70 fd 47 paused 0
[   239.649] (**) Logitech USB Receiver: always reports core events
[   239.649] (**) Option "Device" "/dev/input/event6"
[   239.649] (**) Option "_source" "server/udev"
[   239.649] (II) event6  - Logitech USB Receiver: is tagged by udev as: Keyboard
[   239.649] (II) event6  - Logitech USB Receiver: device is a keyboard
[   239.649] (II) event6  - Logitech USB Receiver: device removed
[   239.649] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:046D:C53D.0001/input/input13/event6"
[   239.650] (II) XINPUT: Adding extended input device "Logitech USB Receiver" (type: KEYBOARD, id 11)
[   239.650] (**) Option "xkb_model" "pc105"
[   239.650] (**) Option "xkb_layout" "gb"
[   239.650] (II) event6  - Logitech USB Receiver: is tagged by udev as: Keyboard
[   239.650] (II) event6  - Logitech USB Receiver: device is a keyboard
[   239.651] (II) config/udev: Adding input device Logitech USB Receiver Mouse (/dev/input/event7)
[   239.651] (**) Logitech USB Receiver Mouse: Applying InputClass "libinput pointer catchall"
[   239.651] (II) Using input driver 'libinput' for 'Logitech USB Receiver Mouse'
[   239.665] (II) systemd-logind: got fd for /dev/input/event7 13:71 fd 48 paused 0
[   239.665] (**) Logitech USB Receiver Mouse: always reports core events
[   239.665] (**) Option "Device" "/dev/input/event7"
[   239.665] (**) Option "_source" "server/udev"


我假设其中一个内部显示端口应该显示为已连接?如能提供任何有关如何修复或进一步诊断的帮助,我们将不胜感激

答案1

首先,我使用的是 Ubuntu 18.04 LTS,使用的是目前最新的驱动程序。我自己的电脑也遇到了类似的问题复杂的设置 - 我有一台配备 GTX 1060 的 HP 笔记本电脑,我通过 mini PCIe 将其连接到 PCIe 1x 小玩意。 笔记本电脑本身是横向的,而且我的笔记本电脑的驱动程序使得每当我将笔记本电脑横向翻转时屏幕都会旋转(这在一些但不是很多)。

本质上,我的设置可以归结为:集成 LVDS 面板上的英特尔集成显卡 Nvidia GTX 1060 通过 DVI 输出到外部显示器。

对于遇到此问题的其他用户,请仅在遇到类似问题时继续。我知道这是否适合您,或者这对配备 AMD GPU 的笔记本电脑来说是否是一个问题。

对我来说不起作用的是:

Nvidia 有一个针对其代码的启动脚本,如下所示: sh -c '/usr/bin/nvidia-settings --load-config-only' 我尝试用它完成以下大部分操作 - 这就是该代码的来源。

使用 crontab 将 nVidia 的启动脚本添加到启动顺序,以及自定义 xrandr 脚本来修复显示器

crontab -e,然后添加

@reboot sh -c '/usr/bin/nvidia-settings --load-config-only'

編輯.xinitrc

startx
sh -c '/usr/bin/nvidia-settings --load-config-only'

也不起作用。

我还尝试修改了我能找到的所有 rc 文件,然后没有任何其中大部分都起作用了。

按照以下说明将 monitors.xml 复制到 GDM3 的配置中这个 stackOverflow 答案

部分有效——我的问题部分在于我的笔记本电脑的显示屏在我登录后才显示出来-盲目地- 我们尝试了多次才弄清楚。

首先,转到设置并验证所有内容是否已按您想要的方式设置。 如果你的设置与我的类似,monitors.xml 文件将只包含其中的监控配置

sudo cp ~/.config/monitors.xml /var/lib/gdm3/.config

如果您甚至看不到登录屏幕,这将有所帮助。

什么充分工作:

不使用 Wayland 作为登录屏幕,另一个 StackOverflow 答案

首先,你需要执行以下操作:

sudo nano /etc/gdm3/custom.conf

找到这一行(对我来说,它就在下面[daemon]

# Uncomment the line below to force the login screen to use Xorg
#WaylandEnable=false

并删除注释,使其看起来像这样:

# Uncomment the line below to force the login screen to use Xorg
WaylandEnable=false

此时,您应该能够保存更改并重新启动。

仅适用于旋转显示屏的用户:

因为我的笔记本电脑是横向的,所以我还必须:按照上述步骤将 monitors.xml 复制到 GDM 的配置中 - 这样可以修复登录屏幕的方向,并且我放入了一个自定义xrandr脚本gnome-session-properties(也称为“启动应用程序”,它是一个 GUI):

xrandr --output LVDS-1-1 --rotate left

使我的设置完全正常工作。

为什么这有用吗?

说实话我不知道,但我推测这与 nVidia 尚未添加完整的 Wayland 支持或类似原因有关。

相关内容