![xrandr 和 nvidia 卡不工作;显示无人认领(Ubuntu 21.10)](https://linux22.com/image/1185041/xrandr%20%E5%92%8C%20nvidia%20%E5%8D%A1%E4%B8%8D%E5%B7%A5%E4%BD%9C%EF%BC%9B%E6%98%BE%E7%A4%BA%E6%97%A0%E4%BA%BA%E8%AE%A4%E9%A2%86%EF%BC%88Ubuntu%2021.10%EF%BC%89.png)
我有一台配备两张显卡的新 HP Envy 笔记本电脑
$ lspci -nnk | grep -A3 "\[03..\]:"
0000:00:02.0 VGA compatible controller [0300]: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] [8086:9a49] (rev 01)
DeviceName: Intel Tigerlake UHD Graphics
Subsystem: Hewlett-Packard Company TigerLake GT2 [Iris Xe Graphics] [103c:8815]
Kernel modules: i915
--
0000:01:00.0 3D controller [0302]: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] [10de:1f95] (rev a1)
Subsystem: Hewlett-Packard Company TU117M [GeForce GTX 1650 Ti Mobile] [103c:8815]
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
0000:2c:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader [10ec:522a] (rev 01)
不幸的是,这些卡似乎不能正常工作。如果我使用 NVIDIA 并prime-select nvidia
重新启动,它会启动到黑屏,我必须使用tty
运行prime-select intel
并重新启动才能恢复登录屏幕。
此外,不仅 NVIDIA 卡似乎有问题,英特尔也一样,因为xrandr
它无法工作
$ xrandr --prop
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1920 x 1200, current 1920 x 1200, maximum 1920 x 1200
default connected primary 1920x1200+0+0 0mm x 0mm
_MUTTER_PRESENTATION_OUTPUT: 0
non-desktop: 0
supported: 0, 1
1920x1200 77.00*
我注意到了这个问题,因为它redshift
无法工作(由于xrandr
故障)。此外,我无法调整显示亮度(这也可能是?的结果xrandr
)。
我还注意到,这lshw
表明该展示品无人认领
$ sudo lshw -c video
*-display UNCLAIMED
description: VGA compatible controller
product: TigerLake-LP GT2 [Iris Xe Graphics]
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 01
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list
configuration: latency=0
resources: iomemory:600-5ff iomemory:400-3ff memory:601e000000-601effffff memory:4000000000-400fffffff ioport:4000(size=64) memory:c0000-dffff memory:4010000000-4016ffffff memory:4020000000-40ffffffff
*-display UNCLAIMED
description: 3D controller
product: TU117M [GeForce GTX 1650 Ti Mobile]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: latency=0
resources: iomemory:600-5ff iomemory:600-5ff memory:61000000-61ffffff memory:6020000000-602fffffff memory:6030000000-6031ffffff ioport:3000(size=128)
有人知道如何让我的卡正常工作吗?
答案1
GRUB_CMDLINE_LINUX_DEFAULT=nomodeset
我在 grub 文件集中有该选项。这阻止了英特尔驱动程序的加载。因此,删除它nomodeset
解决了问题。