在 Ubuntu 22.04 中使用 i915 USB-C 连接进行显示时出现问题

在 Ubuntu 22.04 中使用 i915 USB-C 连接进行显示时出现问题

我在同时配备 Intel iGPU 和 NVIDIA GPU(GeForce RTX 3060 Mobile)的笔记本电脑上安装 Ubuntu 22.04 时遇到了问题。我尝试使用 4 条 USB-C 线缆,但 2 个不同的戴尔屏幕都无法识别这些线缆的任何输出,直到今天我才尝试使用这些线缆。

我最初以为这是我的 Nvidia 卡/驱动程序的问题,并在 Nvidia 主板上发布了一个主题:https://forums.developer.nvidia.com/t/usb-c-monitor-not-detected-with-nvidia-driver-535-on-ubuntu-22-04/290886/3 事实证明,使用我的 USB-C 的 i915 驱动程序可能是问题的根源。

当我使用 USB-C 端口进行显示输出时,i915 驱动程序会持续出现错误。为了解决这个问题,我在 BIOS 中将 MS Hybrid 模式切换到 Discrete 模式,希望完全依赖 NVIDIA GPU。

尽管进行了这样的切换,USB-C 连接问题仍然存在,并且出现了屏幕亮度太暗的新问题——我失去了调整它的能力。

初始 USB-C 错误消息:

[ 42.639037] i915 0000:00:02.0: [drm] *ERROR* AUX USBC1/DDI TC1/PHY TC1: did not complete or timeout within 10ms (status 0xad40023f)

我尝试过的事情:

  • 切换到 Noveau 驱动程序
  • 使用 LiquorixPPA 升级内核。
  • 重新安装并重新配置 Intel 和 NVIDIA 图形驱动程序。
  • 更新所有软件,无需切换到 24.04 Beta
  • 检查并更换 USB-C 电缆。
  • 从 MSHybrid 切换到 Discrete 模式,这导致我的屏幕非常暗,并且亮度控制不起作用,所以我切换回来,因为它没有解决主要问题。

我现在无法尝试没有电缆的 HDMI 端口。升级 BIOS 似乎是一项艰巨而危险的任务,尤其是因为这不是大品牌的笔记本电脑,而且我不知道 BIOS 怎么样或有什么用处。

在所有这些更改的过程中,我失去了切换到“性能”模式的能力,只剩下“平衡”和“省电”

顺便说一下,我的显卡的调试信息在 Nvidia 主题中

编辑:

串行通信

00:00.0 Host bridge: Intel Corporation 12th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
00:01.0 PCI bridge: Intel Corporation 12th Gen Core Processor PCI Express x16 Controller #1 (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Alder Lake-P Integrated Graphics Controller (rev 0c)
00:04.0 Signal processing controller: Intel Corporation Alder Lake Innovation Platform Framework Processor Participant (rev 02)
00:06.0 PCI bridge: Intel Corporation 12th Gen Core Processor PCI Express x4 Controller #0 (rev 02)
00:07.0 PCI bridge: Intel Corporation Alder Lake-P Thunderbolt 4 PCI Express Root Port #0 (rev 02)
00:08.0 System peripheral: Intel Corporation 12th Gen Core Processor Gaussian & Neural Accelerator (rev 02)
00:0a.0 Signal processing controller: Intel Corporation Platform Monitoring Technology (rev 01)
00:0d.0 USB controller: Intel Corporation Alder Lake-P Thunderbolt 4 USB Controller (rev 02)
00:0d.2 USB controller: Intel Corporation Alder Lake-P Thunderbolt 4 NHI #0 (rev 02)
00:14.0 USB controller: Intel Corporation Alder Lake PCH USB 3.2 xHCI Host Controller (rev 01)
00:14.2 RAM memory: Intel Corporation Alder Lake PCH Shared SRAM (rev 01)
00:14.3 Network controller: Intel Corporation Alder Lake-P PCH CNVi WiFi (rev 01)
00:15.0 Serial bus controller: Intel Corporation Alder Lake PCH Serial IO I2C Controller #0 (rev 01)
00:15.1 Serial bus controller: Intel Corporation Alder Lake PCH Serial IO I2C Controller #1 (rev 01)
00:16.0 Communication controller: Intel Corporation Alder Lake PCH HECI Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation Device 51bd (rev 01)
00:1f.0 ISA bridge: Intel Corporation Alder Lake PCH eSPI Controller (rev 01)
00:1f.3 Audio device: Intel Corporation Alder Lake PCH-P High Definition Audio Controller (rev 01)
00:1f.4 SMBus: Intel Corporation Alder Lake PCH-P SMBus Host Controller (rev 01)
00:1f.5 Serial bus controller: Intel Corporation Alder Lake-P PCH SPI Controller (rev 01)
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (16) I219-V (rev 01)
01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GA106 High Definition Audio Controller (rev a1)
02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller PM9A1/PM9A3/980PRO
2c:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01)

首选 nvidia

Info: selecting the nvidia profile
Deleting /lib/modprobe.d/nvidia-runtimepm.conf
Updating the initramfs. Please wait for the operation to complete:
|W: Possible missing firmware /lib/firmware/amd/amd_sev_fam19h_model1xh.sbin for module ccp
Done

请参阅lspci-vnn |删除 VGA

00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-P Integrated Graphics Controller [8086:4626] (rev 0c) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] [10de:2520] (rev a1) (prog-if 00 [VGA controller])

相关内容