Ubuntu 22.04 上的 Nvidia USB-C 黑屏

Ubuntu 22.04 上的 Nvidia USB-C 黑屏

问题:

  • 我有一个笔记本电脑英伟达Ubuntu 22.04.02
  • 突然一个月前,USB-C 外接显示器就黑屏了——没有错误,什么都没有,只是黑屏。
  • 插入 USB-C 时,显示器显示(无信号)。
  • 它仍然是几个月前安装的 Ubuntu 版本。我只运行了常规更新。

有效的方法:

  • 我双启动到 Windows,并且运行完美。

我尝试过什么:

  • 所有这些 Nvidia 驱动程序: 在此处输入图片描述

概述:

  • 联想 16p 笔记本电脑,AMD CPU
  • LG 显示器 USB-C
  • Ubuntu 22.04.2 LTS
  • Linux 内核 5.15.0-40-通用

关于:

  • CPU 中有一个 AMD GPU
  • 它有一个专用的 Nvidia(笔记本电脑内部)
  • 这两种 GPU 都是笔记本电脑开箱即用的。

在此处输入图片描述

几个月前它还能用。同样的机器,同样的安装。现在它不能用了。

我能做些什么?(请帮忙 : )


sudo lshw -C 显示

  *-display                 
       description: VGA compatible controller
       product: GA106M [GeForce RTX 3060 Mobile / Max-Q]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: /dev/fb0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller cap_list fb
       configuration: depth=32 latency=0 mode=2560x1600 visual=truecolor xres=2560 yres=1600
       resources: iomemory:80-7f iomemory:a0-9f memory:fc000000-fcffffff memory:800000000-9ffffffff memory:a00000000-a01ffffff ioport:2000(size=128) memory:fd080000-fd0fffff
  *-display
       description: VGA compatible controller
       product: Cezanne
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:06:00.0
       logical name: /dev/fb0
       version: c5
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi msix vga_controller bus_master cap_list fb
       configuration: depth=32 driver=amdgpu latency=0 resolution=2560,1600
       resources: iomemory:a0-9f iomemory:a0-9f irq:55 memory:a10000000-a1fffffff memory:a20000000-a201fffff ioport:1000(size=256) memory:fd400000-fd47ffff

nvidia-设置命令输出:

ERROR: NVIDIA driver is not loaded


(nvidia-settings:9744): GLib-GObject-CRITICAL **: 21:02:48.986: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

** (nvidia-settings:9744): CRITICAL **: 21:02:48.987: ctk_powermode_new: assertion '(ctrl_target != NULL) && (ctrl_target->h != NULL)' failed

ERROR: nvidia-settings could not find the registry key file or the X server is not accessible. This file should have been installed along
       with this driver at /usr/share/nvidia/nvidia-application-profiles-key-documentation. The application profiles will continue to
       work, but values cannot be prepopulated or validated, and will not be listed in the help text. Please see the README for possible
       values and descriptions.

** Message: 21:02:49.016: PRIME: No offloading required. Abort
** Message: 21:02:49.016: PRIME: is it supported? no

答案1

解决方案:

我在这里读了这篇文章: Ubuntu 22.04.1 LTS,RTX 3060Ti,无法分配 NvKmsKapiDevice

  1. 我做到了:
sudo apt remove nvidia* && \
sudo apt autoremove && \
sudo apt install --reinstall nvidia-driver-470

2.我必须进入 Nvidia X 服务器设置

sudo apt install nvidia-settings
nvidia-settings
  1. 进入 PRIME 并选择 Full Power。重启后,在登录屏幕上,外接显示器将显示 ubuntu

答案2

我有同样的笔记本电脑,安装 Synaptic DisplayLink USB 图形驱动程序解决了我的问题: https://www.synaptics.com/products/displaylink-graphics/downloads/ubuntu

相关内容