OS: Arch Linux DE: Gnome 40 Графический сервер: X11
Дано: ноутбук с дискреткой (RTX 3060), монитор от Samsung 28" с двумя hdmi (0 - 30hz, 1 - 60hz). у ноутбука один hdmi я его подключаю к hdmi-1.
~
❯ lspci -v | grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1) (prog-if 00 [VGA controller])
06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 1638 (rev c6) (prog-if 00 [VGA controller])
~
❯ sudo lspci -v -s 01:00.0
01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Acer Incorporated [ALI] Device 151e
Flags: bus master, fast devsel, latency 0, IRQ 95, IOMMU group 10
Memory at d0000000 (32-bit, non-prefetchable) [size=16M]
Memory at fa00000000 (64-bit, prefetchable) [size=8G]
Memory at fc00000000 (64-bit, prefetchable) [size=32M]
I/O ports at 3000 [size=128]
Expansion ROM at d1080000 [virtual] [disabled] [size=512K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Legacy Endpoint, MSI 00
Capabilities: [b4] Vendor Specific Information: Len=14 <?>
Capabilities: [100] Virtual Channel
Capabilities: [258] L1 PM Substates
Capabilities: [128] Power Budgeting <?>
Capabilities: [420] Advanced Error Reporting
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Capabilities: [900] Secondary PCI Express
Capabilities: [bb0] Physical Resizable BAR
Capabilities: [c1c] Physical Layer 16.0 GT/s <?>
Capabilities: [d00] Lane Margining at the Receiver <?>
Capabilities: [e00] Data Link Feature <?>
Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidia
❯ xrandr
Screen 0: minimum 320 x 200, current 5760 x 2160, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
1920x1080 144.00*+ 60.01 60.02 59.97 59.96 59.93
...
HDMI-1-0 connected (normal left inverted right x axis y axis)
3840x2160 60.00 + 59.94 50.00 29.97 25.00 23.98 23.98
...
# Тут вроде все ок
~
❯ sudo dmesg | grep nvidia
[ 26.157899] nvidia: loading out-of-tree module taints kernel.
[ 26.157906] nvidia: module license 'NVIDIA' taints kernel.
[ 26.176366] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 26.233895] nvidia-nvlink: Nvlink Core is being initialized, major device number 234
[ 26.234435] nvidia 0000:01:00.0: enabling device (0000 -> 0003)
[ 26.234533] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[ 26.376447] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 465.31 Thu May 13 22:14:23 UTC 2021
[ 26.381934] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[ 26.381937] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1
Вижу просто черный экран. Когда пытаюсь через настройки гнома выбрать Join Displays
, то ничего не поисходит.
~
❯ xrandr --output HDMI-1-0 --auto --left-of eDP-1
xrandr: Configure crtc 4 failed
Короче, я решил проблему: просто отключил встроенную видеокарту.
Нужно снести xorg.conf, а потом создать файл/etc/X11/xorg.conf.d/nvidia.conf
с таким содержимым:
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
Option "PrimaryGPU" "yes"
EndSection
Section "ServerLayout"
Identifier "layout"
Option "AllowNVIDIAGPUScreens"
EndSection
И после перезагрузки настройки начнут работать (если не робит, то нужно выдернуть кабель и вставить снова).