NVIDIA - 笔记本电脑屏幕冻结,但可与外接显示器配合使用

NVIDIA - 笔记本电脑屏幕冻结,但可与外接显示器配合使用

我需要你的帮助,因为我已经查阅了整个文档和日志,试图找出发生了什么。我使用的是 ThinkPad X1 Extreme Gen 2 笔记本电脑,配有两个外置 ThinkVision 显示器。为了让显示器渲染某些内容,我必须安装 NVIDIA,这是我的配置:

export __NV_PRIME_RENDER_OFFLOAD=1
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export __VK_LAYER_NV_optimus=NVIDIA_only

OpenGL 和 Prime with offload 已启用。我的 Intel 和 NVIDIA 总线 ID 设置正确。外接显示器工作正常,但当我拔下它们时,一切都冻结了。日志没有journalctl说明太多:

May 09 16:11:08 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:11:08 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-1: disconnected
May 09 16:11:08 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-1: Internal DisplayPort
May 09 16:11:08 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-1: 2660.0 MHz maximum pixel clock
May 09 16:11:08 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:11:08 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: disconnected
May 09 16:11:08 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: Internal TMDS
May 09 16:11:08 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
May 09 16:11:08 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:11:13 j.calvinn87 systemd[1594]: Started Application launched by gsd-media-keys.
May 09 16:11:25 j.calvinn87 systemd[1594]: Started Application launched by gsd-media-keys.
May 09 16:11:46 j.calvinn87 systemd[1594]: Started Application launched by gsd-media-keys.
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-0: disconnected
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-0: 2660.0 MHz maximum pixel clock
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-0: disconnected
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-0: 2660.0 MHz maximum pixel clock
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-1: disconnected
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-1: Internal DisplayPort
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-1: 2660.0 MHz maximum pixel clock
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: disconnected
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: Internal TMDS
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:11:49 j.calvinn87 systemd-udevd[15791]: card0: Process '/bin/bash -c 'mknod -m 666 /dev/nvidia0 c $(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 0'' failed with exit code 1.
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (II) NVIDIA(0): Setting mode "NULL"
May 09 16:11:49 j.calvinn87 systemd-udevd[15791]: card0: Process '/bin/bash -c 'mknod -m 666 /dev/nvidia0 c $(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 0'' failed with exit code 1.
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-0: disconnected
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-0: 2660.0 MHz maximum pixel clock
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-1: disconnected
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-1: Internal DisplayPort
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-1: 2660.0 MHz maximum pixel clock
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: disconnected
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: Internal TMDS
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
May 09 16:11:49 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:11:49 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaWindowGroup>:0x12d8350] is on because it needs an allocation.
May 09 16:11:49 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x24e6f30] is on because it needs an allocation.
May 09 16:11:49 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x24eade0] is on because it needs an allocation.
May 09 16:11:49 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x24e7320] is on because it needs an allocation.
May 09 16:11:49 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x24eaa60] is on because it needs an allocation.
May 09 16:11:49 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x782a730] is on because it needs an allocation.
May 09 16:11:49 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x24ea6e0] is on because it needs an allocation.
May 09 16:11:59 j.calvinn87 systemd-udevd[15800]: card0: Process '/bin/bash -c 'mknod -m 666 /dev/nvidia0 c $(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 0'' failed with exit code 1.
May 09 16:11:59 j.calvinn87 systemd-udevd[15800]: card0: Process '/bin/bash -c 'mknod -m 666 /dev/nvidia0 c $(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 0'' failed with exit code 1.
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): connected
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): Internal DisplayPort
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): 2660.0 MHz maximum pixel clock
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-0: disconnected
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-0: 2660.0 MHz maximum pixel clock
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): connected
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): Internal DisplayPort
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): 2660.0 MHz maximum pixel clock
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: disconnected
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: Internal TMDS
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (II) NVIDIA(0): Setting mode "DP-1: nvidia-auto-select @1920x1200 +0+0 {AllowGSYNC=Off, ViewPortIn=1920x1200, ViewPortOut=1920x1200+0+0}"
May 09 16:11:59 j.calvinn87 .gsd-media-keys[1819]: gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-0: disconnected
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-0: 2660.0 MHz maximum pixel clock
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): connected
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): Internal DisplayPort
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): 2660.0 MHz maximum pixel clock
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: disconnected
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: Internal TMDS
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
May 09 16:11:59 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:12:00 j.calvinn87 .gnome-shell-wr[1658]: gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
May 09 16:12:00 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaWindowGroup>:0x12d8350] is on because it needs an allocation.
May 09 16:12:00 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x24e6f30] is on because it needs an allocation.
May 09 16:12:00 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x24eade0] is on because it needs an allocation.
May 09 16:12:00 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x24e7320] is on because it needs an allocation.
May 09 16:12:00 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x24eaa60] is on because it needs an allocation.
May 09 16:12:00 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaWindowGroup>:0x12d8350] is on because it needs an allocation.
May 09 16:12:00 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x24e6f30] is on because it needs an allocation.
May 09 16:12:00 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x24eade0] is on because it needs an allocation.
May 09 16:12:00 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x24e7320] is on because it needs an allocation.
May 09 16:12:00 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x24eaa60] is on because it needs an allocation.
May 09 16:12:00 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x782a730] is on because it needs an allocation.
May 09 16:12:00 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x24ea6e0] is on because it needs an allocation.
May 09 16:12:00 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-0: disconnected
May 09 16:12:00 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
May 09 16:12:00 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-0: 2660.0 MHz maximum pixel clock
May 09 16:12:00 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:12:00 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): connected
May 09 16:12:00 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): Internal DisplayPort
May 09 16:12:00 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): 2660.0 MHz maximum pixel clock
May 09 16:12:00 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:12:00 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: disconnected
May 09 16:12:00 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: Internal TMDS
May 09 16:12:00 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
May 09 16:12:00 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:12:01 j.calvinn87 systemd-udevd[15800]: card0: Process '/bin/bash -c 'mknod -m 666 /dev/nvidia0 c $(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 0'' failed with exit code 1.
May 09 16:12:01 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-0): connected
May 09 16:12:01 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-0): Internal DisplayPort
May 09 16:12:01 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-0): 2660.0 MHz maximum pixel clock
May 09 16:12:01 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:12:01 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-0): connected
May 09 16:12:01 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-0): Internal DisplayPort
May 09 16:12:01 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-0): 2660.0 MHz maximum pixel clock
May 09 16:12:01 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:12:01 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): connected
May 09 16:12:01 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): Internal DisplayPort
May 09 16:12:01 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): 2660.0 MHz maximum pixel clock
May 09 16:12:01 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:12:01 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: disconnected
May 09 16:12:01 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: Internal TMDS
May 09 16:12:01 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
May 09 16:12:01 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:12:01 j.calvinn87 libexec/gdm-x-session[1611]: (II) NVIDIA(0): Setting mode "DP-1: nvidia-auto-select @1920x1200 +0+0 {AllowGSYNC=Off, ViewPortIn=1920x1200, ViewPortOut=1920x1200+0+0}, DP-0: nvidia-auto-select @1920x1200 +0+0 {AllowGSYNC=Off, ViewPortIn=1920x1200, ViewPortOut=1920x1200+0+0}"
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (II) NVIDIA(0): Setting mode "DP-1: nvidia-auto-select @1920x1200 +1920+0 {AllowGSYNC=Off, ViewPortIn=1920x1200, ViewPortOut=1920x1200+0+0}, DP-0: nvidia-auto-select @1920x1200 +0+0 {AllowGSYNC=Off, ViewPortIn=1920x1200, ViewPortOut=1920x1200+0+0}"
May 09 16:12:02 j.calvinn87 .gsd-media-keys[1819]: gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-0): connected
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-0): Internal DisplayPort
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-0): 2660.0 MHz maximum pixel clock
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): connected
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): Internal DisplayPort
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): 2660.0 MHz maximum pixel clock
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: disconnected
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: Internal TMDS
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:12:02 j.calvinn87 .gnome-shell-wr[1658]: gvc_mixer_card_get_index: assertion 'GVC_IS_MIXER_CARD (card)' failed
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-0): connected
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-0): Internal DisplayPort
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-0): 2660.0 MHz maximum pixel clock
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): connected
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): Internal DisplayPort
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): 2660.0 MHz maximum pixel clock
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: disconnected
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: Internal TMDS
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:12:02 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaWindowGroup>:0x12d8350] is on because it needs an allocation.
May 09 16:12:02 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x24e6f30] is on because it needs an allocation.
May 09 16:12:02 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x24eade0] is on because it needs an allocation.
May 09 16:12:02 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaWindowGroup>:0x12d8350] is on because it needs an allocation.
May 09 16:12:02 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x24e6f30] is on because it needs an allocation.
May 09 16:12:02 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x24eade0] is on because it needs an allocation.
May 09 16:12:02 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x24e7320] is on because it needs an allocation.
May 09 16:12:02 j.calvinn87 .gnome-shell-wr[1658]: Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x24eaa60] is on because it needs an allocation.
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-0): connected
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-0): Internal DisplayPort
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-0): 2660.0 MHz maximum pixel clock
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): connected
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): Internal DisplayPort
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): Lenovo Group Limited LEN T24d-10 (DFP-1): 2660.0 MHz maximum pixel clock
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: disconnected
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: Internal TMDS
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0): DFP-2: 165.0 MHz maximum pixel clock
May 09 16:12:02 j.calvinn87 libexec/gdm-x-session[1611]: (--) NVIDIA(GPU-0):
May 09 16:12:10 j.calvinn87 systemd-udevd[15849]: card0: Process '/bin/bash -c 'mknod -m 666 /dev/nvidia0 c $(grep nvidia-frontend /proc/devices | cut -d \  -f 1) 0'' failed with exit code 1.

当我拔下并插入显示器时,日志会被记录下来。即使没有外接显示器,GDM 也能正常工作。

任何帮助都将不胜感激。

答案1

我今天也遇到了同样的问题

我生成了xorg.conf但是nvidia-xconfig在此之前,我从前一个文件中进行了备份。

新版本(目前使用 515.57-1)生成的 xorg.confnvidia-utils没有添加那个额外的部分。

Section "Device"
    Identifier     "Device1"
    Driver         "modesetting"
    VendorName     "Unknown"
EndSection

在本ServerLayout节中,有一个新行Inactive "Device1"

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    Inactive       "Device1"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

也许这不是最好的/正确的解决方案,但它对我有用,它是由旧版本的nvidia-xconfig

相关内容