Всем привет, использую дистрибутив арч и в соответствии с вики поставил себе дрова для карточки nvidia:
lspci -k | grep -A 3 -E «(VGA|3D)»:
26:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device 85ac
Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidia
Т.е. скачал соответствующий пакет nvidia, других драйверов в системе не стоит. После установки пакета nvidia перезагрузил систему, чтобы nouveau добавился в черный список.
Но почему-то после этого логи xorg’а показывают, что загружается модуль modesetting, а не nvidia и я не могу понять почему. Система свежая, никаких конфигурационных файлов для иксов не вставлял
Вот верхушка лога(не полный) xorg:
[ 762.221] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[ 762.221]
X.Org X Server 1.20.13
X Protocol Version 11, Revision 0
[ 762.222] Build Operating System: Linux Archlinux
[ 762.222] Current Operating System: Linux f54 5.13.10-arch1-1 #1 SMP PREEMPT Thu, 12 Aug 2021 21:59:14 +0000 x86_64
[ 762.222] Kernel command line: initrd=\initramfs-linux.img root=PARTUUID=e0843303-f8c6-6d41-8ff4-0dcf259e4c6a rootfstype=ext4 add_efi_memmap
[ 762.222] Build Date: 04 August 2021 08:13:54AM
[ 762.222]
[ 762.222] Current version of pixman: 0.40.0
[ 762.222] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 762.222] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 762.222] (==) Log file: "/home/wh4le/.local/share/xorg/Xorg.0.log", Time: Fri Aug 20 14:54:13 2021
[ 762.222] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 762.222] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 762.222] (==) No Layout section. Using the first Screen section.
[ 762.222] (==) No screen section available. Using defaults.
[ 762.222] (**) |-->Screen "Default Screen Section" (0)
[ 762.222] (**) | |-->Monitor "<default monitor>"
[ 762.222] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 762.222] (==) Automatically adding devices
[ 762.222] (==) Automatically enabling devices
[ 762.222] (==) Automatically adding GPU devices
[ 762.222] (==) Automatically binding GPU devices
[ 762.222] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 762.222] (==) FontPath set to:
/usr/share/fonts/misc,
/usr/share/fonts/TTF,
/usr/share/fonts/OTF,
/usr/share/fonts/Type1,
/usr/share/fonts/100dpi,
/usr/share/fonts/75dpi
[ 762.222] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 762.222] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 762.222] (II) Module ABI versions:
[ 762.222] X.Org ANSI C Emulation: 0.4
[ 762.222] X.Org Video Driver: 24.1
[ 762.222] X.Org XInput driver : 24.1
[ 762.222] X.Org Server Extension : 10.0
[ 762.222] (++) using VT number 1
[ 762.223] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_33
[ 762.224] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 762.225] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[ 762.231] (--) PCI:*(38@0:0:0) 10de:1c03:1043:85ac rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000f000/128, BIOS @ 0x????????/131072
[ 762.231] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 762.231] (II) LoadModule: "glx"
[ 762.232] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 762.233] (II) Module glx: vendor="X.Org Foundation"
[ 762.233] compiled for 1.20.13, module version = 1.0.0
[ 762.233] ABI class: X.Org Server Extension, version 10.0
[ 762.233] (==) Matched nouveau as autoconfigured driver 0
[ 762.233] (==) Matched nv as autoconfigured driver 1
[ 762.233] (==) Matched modesetting as autoconfigured driver 2
[ 762.233] (==) Matched fbdev as autoconfigured driver 3
[ 762.233] (==) Matched vesa as autoconfigured driver 4
[ 762.233] (==) Assigned the driver to the xf86ConfigLayout
[ 762.233] (II) LoadModule: "nouveau"
[ 762.233] (WW) Warning, couldn't open module nouveau
[ 762.234] (EE) Failed to load module "nouveau" (module does not exist, 0)
[ 762.234] (II) LoadModule: "nv"
[ 762.234] (WW) Warning, couldn't open module nv
[ 762.234] (EE) Failed to load module "nv" (module does not exist, 0)
[ 762.234] (II) LoadModule: "modesetting"
[ 762.234] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 762.234] (II) Module modesetting: vendor="X.Org Foundation"
[ 762.234] compiled for 1.20.13, module version = 1.20.13
[ 762.234] Module class: X.Org Video Driver
[ 762.234] ABI class: X.Org Video Driver, version 24.1
[ 762.234] (II) LoadModule: "fbdev"
[ 762.235] (WW) Warning, couldn't open module fbdev
[ 762.235] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 762.235] (II) LoadModule: "vesa"
[ 762.235] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[ 762.235] (II) Module vesa: vendor="X.Org Foundation"
[ 762.235] compiled for 1.20.9, module version = 2.5.0
[ 762.235] Module class: X.Org Video Driver
[ 762.235] ABI class: X.Org Video Driver, version 24.1
[ 762.235] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 762.235] (II) VESA: driver for VESA chipsets: vesa
[ 762.235] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[ 762.235] (II) modeset(0): using drv /dev/dri/card0
[ 762.235] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 762.235] (II) modeset(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 762.235] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[ 762.235] (==) modeset(0): RGB weight 888
[ 762.235] (==) modeset(0): Default visual is TrueColor
[ 762.235] (II) Loading sub module "glamoregl"
[ 762.235] (II) LoadModule: "glamoregl"
[ 762.235] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[ 762.239] (II) Module glamoregl: vendor="X.Org Foundation"
[ 762.239] compiled for 1.20.13, module version = 1.0.1
[ 762.239] ABI class: X.Org ANSI C Emulation, version 0.4
[ 762.288] (II) modeset(0): glamor X acceleration enabled on NV136
[ 762.288] (II) modeset(0): glamor initialized
[ 762.290] (II) modeset(0): Output DVI-D-1 has no monitor section
[ 762.359] (II) modeset(0): Output DP-1 has no monitor section
[ 762.429] (II) modeset(0): Output DP-2 has no monitor section
[ 762.504] (II) modeset(0): Output HDMI-1 has no monitor section
[ 762.506] (II) modeset(0): Output HDMI-2 has no monitor section
[ 762.507] (II) modeset(0): EDID for output DVI-D-1
[ 762.579] (II) modeset(0): EDID for output DP-1
[ 762.649] (II) modeset(0): EDID for output DP-2
[ 762.724] (II) modeset(0): EDID for output HDMI-1
[ 762.724] (II) modeset(0): Manufacturer: GSM Model: 5ab8 Serial#: 16843009
[ 762.724] (II) modeset(0): Year: 2014 Week: 1
[ 762.724] (II) modeset(0): EDID Version: 1.3
[ 762.724] (II) modeset(0): Digital Display Input
[ 762.724] (II) modeset(0): Max Image Size [cm]: horiz.: 48 vert.: 27
[ 762.724] (II) modeset(0): Gamma: 2.20
[ 762.724] (II) modeset(0): DPMS capabilities: StandBy Suspend Off
[ 762.724] (II) modeset(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
[ 762.724] (II) modeset(0): First detailed timing is preferred mode
[ 762.724] (II) modeset(0): redX: 0.645 redY: 0.335 greenX: 0.305 greenY: 0.630
[ 762.724] (II) modeset(0): blueX: 0.148 blueY: 0.050 whiteX: 0.313 whiteY: 0.329
[ 762.724] (II) modeset(0): Supported established timings:
[ 762.724] (II) modeset(0): 720x400@70Hz
[ 762.724] (II) modeset(0): 640x480@60Hz
[ 762.724] (II) modeset(0): 640x480@75Hz
[ 762.724] (II) modeset(0): 800x600@60Hz
[ 762.724] (II) modeset(0): 800x600@75Hz
[ 762.724] (II) modeset(0): 1024x768@60Hz
[ 762.724] (II) modeset(0): 1024x768@75Hz
[ 762.724] (II) modeset(0): 1280x1024@75Hz
[ 762.724] (II) modeset(0): Manufacturer's mask: 0
[ 762.724] (II) modeset(0): Supported standard timings:
[ 762.724] (II) modeset(0): #0: hsize: 1152 vsize 864 refresh: 75 vid: 20337
[ 762.724] (II) modeset(0): #1: hsize: 1280 vsize 1024 refresh: 60 vid: 32897
[ 762.724] (II) modeset(0): #2: hsize: 1440 vsize 900 refresh: 60 vid: 149
[ 762.724] (II) modeset(0): #3: hsize: 1680 vsize 1050 refresh: 60 vid: 179
[ 762.724] (II) modeset(0): #4: hsize: 1600 vsize 900 refresh: 60 vid: 49321
[ 762.724] (II) modeset(0): #5: hsize: 1280 vsize 800 refresh: 60 vid: 129
[ 762.724] (II) modeset(0): #6: hsize: 1280 vsize 720 refresh: 60 vid: 49281
[ 762.724] (II) modeset(0): #7: hsize: 1400 vsize 1050 refresh: 60 vid: 16528
[ 762.724] (II) modeset(0): Supported detailed timing:
[ 762.724] (II) modeset(0): clock: 148.5 MHz Image Size: 480 x 270 mm
[ 762.724] (II) modeset(0): h_active: 1920 h_sync: 2008 h_sync_end 2052 h_blank_end 2200 h_border: 0
[ 762.724] (II) modeset(0): v_active: 1080 v_sync: 1084 v_sync_end 1089 v_blanking: 1125 v_border: 0
[ 762.724] (II) modeset(0): Ranges: V min: 56 V max: 75 Hz, H min: 30 H max: 83 kHz, PixClock max 155 MHz
[ 762.724] (II) modeset(0): Monitor name: LG IPS FULLHD
[ 762.724] (II) modeset(0): Serial No:
[ 762.724] (II) modeset(0): Supported detailed timing:
[ 762.724] (II) modeset(0): clock: 148.5 MHz Image Size: 480 x 270 mm
[ 762.724] (II) modeset(0): h_active: 1920 h_sync: 2008 h_sync_end 2052 h_blank_end 2200 h_border: 0
[ 762.724] (II) modeset(0): v_active: 1080 v_sync: 1084 v_sync_end 1089 v_blanking: 1125 v_border: 0
[ 762.724] (II) modeset(0): Supported detailed timing:
[ 762.724] (II) modeset(0): clock: 74.2 MHz Image Size: 480 x 270 mm
[ 762.724] (II) modeset(0): h_active: 1920 h_sync: 2008 h_sync_end 2052 h_blank_end 2200 h_border: 0
[ 762.724] (II) modeset(0): v_active: 540 v_sync: 542 v_sync_end 547 v_blanking: 562 v_border: 0
[ 762.724] (II) modeset(0): Supported detailed timing:
[ 762.724] (II) modeset(0): clock: 74.2 MHz Image Size: 480 x 270 mm
[ 762.724] (II) modeset(0): h_active: 1280 h_sync: 1390 h_sync_end 1430 h_blank_end 1650 h_border: 0
[ 762.724] (II) modeset(0): v_active: 720 v_sync: 725 v_sync_end 730 v_blanking: 750 v_border: 0
[ 762.724] (II) modeset(0): Supported detailed timing:
[ 762.724] (II) modeset(0): clock: 27.0 MHz Image Size: 480 x 270 mm
[ 762.724] (II) modeset(0): h_active: 720 h_sync: 736 h_sync_end 798 h_blank_end 858 h_border: 0
[ 762.724] (II) modeset(0): v_active: 480 v_sync: 489 v_sync_end 495 v_blanking: 525 v_border: 0
[ 762.724] (II) modeset(0): Number of EDID sections to follow: 1
[ 762.724] (II) modeset(0): EDID (in hex):
[ 762.724] (II) modeset(0): 00ffffffffffff001e6db85a01010101
[ 762.724] (II) modeset(0): 0118010380301b78ea3135a5554ea126
[ 762.724] (II) modeset(0): 0c5054a54b00714f81809500b300a9c0
[ 762.724] (II) modeset(0): 810081c09040023a801871382d40582c
[ 762.724] (II) modeset(0): 4500e00e1100001e000000fd00384b1e
[ 762.724] (II) modeset(0): 530f000a202020202020000000fc004c
[ 762.724] (II) modeset(0): 47204950532046554c4c4844000000ff
[ 762.724] (II) modeset(0): 000a2020202020202020202020200164
[ 762.724] (II) modeset(0): 02031df14a900403011412051f101323
[ 762.724] (II) modeset(0): 0907078301000065030c001000023a80
[ 762.724] (II) modeset(0): 1871382d40582c4500e00e1100001e01
[ 762.724] (II) modeset(0): 1d8018711c1620582c2500e00e110000
[ 762.724] (II) modeset(0): 9e011d007251d01e206e285500e00e11
[ 762.724] (II) modeset(0): 00001e8c0ad08a20e02d10103e9600e0
[ 762.724] (II) modeset(0): 0e110000180000000000000000000000
[ 762.724] (II) modeset(0): 000000000000000000000000000000ae
[ 762.724] (II) modeset(0): Not using default mode "1024x768" (bad mode clock/interlace/doublescan)
[ 762.724] (II) modeset(0): Not using default mode "1920x1080" (bad mode clock/interlace/doublescan)
[ 762.724] (II) modeset(0): Not using default mode "1440x810" (bad mode clock/interlace/doublescan)
[ 762.724] (II) modeset(0): Not using default mode "1600x900" (bad mode clock/interlace/doublescan)
[ 762.724] (II) modeset(0): Not using default mode "1600x900" (bad mode clock/interlace/doublescan)
[ 762.725] (II) modeset(0): Not using default mode "1920x1080" (bad mode clock/interlace/doublescan)
[ 762.725] (II) modeset(0): Not using default mode "1280x800" (bad mode clock/interlace/doublescan)
[ 762.725] (II) modeset(0): Printing probed modes for output HDMI-1
[ 762.725] (II) modeset(0): Modeline "1920x1080"x60.0 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[ 762.725] (II) modeset(0): Modeline "1920x1080"x50.0 148.50 1920 2448 2492 2640 1080 1084 1089 1125
[ 762.725] (II) modeset(0): Modeline "360x202"x59.1 10.88 360 384 400 440 202 204 206 209 doublescan +hsync -vsync (24.7 kHz d)
[ 762.725] (II) modeset(0): Modeline "320x180"x59.8 9.00 320 332 360 400 180 181 184 188 doublescan -hsync +vsync (22.5 kHz d)
[ 762.725] (II) modeset(0): Modeline "320x180"x59.3 8.88 320 344 360 400 180 181 184 187 doublescan +hsync -vsync (22.2 kHz d)
[ 762.726] (II) modeset(0): EDID for output HDMI-2
[ 762.726] (II) modeset(0): Output DVI-D-1 disconnected
[ 762.726] (II) modeset(0): Output DP-1 disconnected
[ 762.726] (II) modeset(0): Output DP-2 disconnected
[ 762.726] (II) modeset(0): Output HDMI-1 connected
[ 762.726] (II) modeset(0): Output HDMI-2 disconnected
[ 762.726] (II) modeset(0): Using exact sizes for initial modes
[ 762.726] (II) modeset(0): Output HDMI-1 using initial mode 1920x1080 +0+0
[ 762.726] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[ 762.726] (==) modeset(0): DPI set to (96, 96)
[ 762.726] (II) Loading sub module "fb"
[ 762.726] (II) LoadModule: "fb"
[ 762.727] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 762.727] (II) Module fb: vendor="X.Org Foundation"
[ 762.727] compiled for 1.20.13, module version = 1.0.0
[ 762.727] ABI class: X.Org ANSI C Emulation, version 0.4
[ 762.727] (II) UnloadModule: "vesa"
[ 762.727] (II) Unloading vesa
[ 762.731] (==) modeset(0): Backing store enabled
[ 762.731] (==) modeset(0): Silken mouse disabled
[ 762.743] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
[ 762.743] (==) modeset(0): DPMS enabled
[ 762.744] (II) modeset(0): [DRI2] Setup complete
[ 762.744] (II) modeset(0): [DRI2] DRI driver: nouveau
[ 762.744] (II) modeset(0): [DRI2] VDPAU driver: nouveau
[ 762.744] (II) Initializing extension Generic Event Extension
[ 762.744] (II) Initializing extension SHAPE
[ 762.744] (II) Initializing extension MIT-SHM
[ 762.744] (II) Initializing extension XInputExtension
[ 762.744] (II) Initializing extension XTEST
[ 762.744] (II) Initializing extension BIG-REQUESTS
[ 762.744] (II) Initializing extension SYNC
[ 762.744] (II) Initializing extension XKEYBOARD
[ 762.744] (II) Initializing extension XC-MISC
[ 762.744] (II) Initializing extension SECURITY
[ 762.744] (II) Initializing extension XFIXES
[ 762.744] (II) Initializing extension RENDER
[ 762.744] (II) Initializing extension RANDR
[ 762.744] (II) Initializing extension COMPOSITE
[ 762.744] (II) Initializing extension DAMAGE
[ 762.744] (II) Initializing extension MIT-SCREEN-SAVER
[ 762.744] (II) Initializing extension DOUBLE-BUFFER
[ 762.744] (II) Initializing extension RECORD
[ 762.744] (II) Initializing extension DPMS
[ 762.744] (II) Initializing extension Present
[ 762.744] (II) Initializing extension DRI3
[ 762.744] (II) Initializing extension X-Resource
[ 762.744] (II) Initializing extension XVideo
[ 762.744] (II) Initializing extension XVideo-MotionCompensation
[ 762.744] (II) Initializing extension GLX
[ 762.747] (II) AIGLX: Loaded and initialized nouveau
[ 762.747] (II) GLX: Initialized DRI2 GL provider for screen 0
[ 762.747] (II) Initializing extension XFree86-VidModeExtension
[ 762.747] (II) Initializing extension XFree86-DGA
[ 762.747] (II) Initializing extension XFree86-DRI
[ 762.747] (II) Initializing extension DRI2
[ 762.748] (II) modeset(0): Damage tracking initialized
[ 762.748] (II) modeset(0): Setting screen physical size to 508 x 285
[ 762.816] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[ 762.816] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[ 762.816] (II) LoadModule: "libinput"
[ 762.816] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
...
[ 955.994] (II) Server terminated successfully (0). Closing log file.
Смущают вот эти строчки:
[ 762.234] (II) LoadModule: "modesetting"
[ 762.234] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 762.234] (II) Module modesetting: vendor="X.Org Foundation"
[ 762.234] compiled for 1.20.13, module version = 1.20.13
[ 762.234] Module class: X.Org Video Driver
[ 762.234] ABI class: X.Org Video Driver, version 24.1
Все же хотелось бы там увидеть nvidia_drv.so, а не modesetting_drv.so. Или я что-то не так понял… Не знаю
Вот содержимое /usr/lib/xorg/modules/drivers/:
$ ls /usr/lib/xorg/modules/drivers
modesetting_drv.so nvidia_drv.so vesa_drv.so
Я подумал, что нужно как-то зафорсить использование драйвера nvidia через конфиг поэтому создал файл с конфигом, но это никак не повлияло на ситуацию:
$ cat /etc/X11/xorg.conf.d/20-nvidia.conf
Section "Device"
Identifier "Nvidia Card"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GTX 1060"
EndSection
Еще nvidia судя по всему сконфигурировала следующий конфиг
$ cat /usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
ModulePath "/usr/lib/nvidia/xorg"
ModulePath "/usr/lib/xorg/modules"
EndSection