安装 nvidia 驱动程序后,Debian hdmi 不工作

安装 nvidia 驱动程序后,Debian hdmi 不工作

我在 Debian 11 笔记本电脑上使用 2 个显示器,并使用 HDMI 电缆连接到辅助显示器。在开发代码时,我设置了 opencl 驱动程序,因此下载了 nvidia 驱动程序。

设置驱动程序的过程有点复杂,所以我下载了很多与 nvidia 相关的东西,但最后我设法让它工作并运行。

但是这样做时我的辅助显示器停止工作。当我运行时,xrandr --output HDMI1 --output HDMI2我得到

warning: output HDMI1 not found; ignoring
warning: output HDMI2 not found; ignoring

辅助显示器保持打开状态,但屏幕却变黑了。当我拔下或插入 HDMI 电缆时,它会在蓝屏上短暂显示“未连接 HDMI”(我的笔记本电脑和屏幕都是华硕)。

我有 2 个 GPU,一个是英特尔 GPU 控制器,另一个是 nvidia GPU。结果如下:

00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) (prog-if 00 [VGA controller])
        Subsystem: ASUSTeK Computer Inc. N56VZ
        Flags: bus master, fast devsel, latency 0, IRQ 27
        Memory at f7400000 (64-bit, non-prefetchable) [size=4M]
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at f000 [size=64]
        Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2
        Capabilities: [a4] PCI Advanced Features
        Kernel driver in use: i915
        Kernel modules: i915
01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT 650M] (
rev a1) (prog-if 00 [VGA controller])
        Subsystem: ASUSTeK Computer Inc. N56VZ
        Flags: bus master, fast devsel, latency 0, IRQ 30
        Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Memory at f0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at e000 [size=128]
        Expansion ROM at f7000000 [virtual] [disabled] [size=512K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [b4] Vendor Specific Information: Len=14 <?>
        Capabilities: [100] Virtual Channel
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Kernel driver in use: nvidia
        Kernel modules: nvidia

我不记得我运行了什么命令来设置 opencl/nvidia 驱动程序,但以下是其中一些:

sudo apt-get install nvidia-opencl-icd

sudo apt install nvidia-cuda-toolkit

sudo apt-get install nvidia-libopencl1

sudo apt install nvidia-driver-390

我该如何修复这个问题并使我的辅助屏幕再次工作?

相关内容