又碰到了startx报错的问题no screen查看/var/log/Xorg.0.log文件发现 WW couldnt openmodule nvidia说需要build Xlibre with -Dlegacy_nvidia_paddingtrue[2026-07-19 08:20:58] XLibre X Server 1.25.1.8 X Protocol Version 11, Revision 0 [2026-07-19 08:20:58] Current Operating System: FreeBSD fb98 15.1-RELEASE-p1 FreeBSD 15.1-RELEASE-p1 relen g/15.1-n283582-0f691888dc56 GENERIC amd64 [2026-07-19 08:20:58] Current version of pixman: 0.46.4 [2026-07-19 08:20:58] Markers: (--) probed, (**) from config file, () default setting, () from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [2026-07-19 08:20:58] () Log file: /var/log/Xorg.0.log, Time: Sun Jul 19 08:20:58 2026 [2026-07-19 08:20:58] () Using config file: /etc/X11/xorg.conf [2026-07-19 08:20:58] () Using config directory: /usr/local/etc/X11/xorg.conf.d [2026-07-19 08:20:58] () Using system config directory /usr/local/share/X11/xorg.conf.d [2026-07-19 08:20:58] () Automatically adding devices [2026-07-19 08:20:58] () Automatically enabling devices [2026-07-19 08:20:58] () Automatically adding GPU devices [2026-07-19 08:20:58] () Automatically binding GPU devices [2026-07-19 08:20:58] () Max clients allowed: 256, resource mask: 0x1fffff [2026-07-19 08:20:58] () ServerLayout X.org Configured [2026-07-19 08:20:58] (**) |--Screen Screen0 (0) [2026-07-19 08:20:58] (**) | |--Monitor Monitor0 catalogue:/usr/local/etc/X11/fontpath.d, /usr/local/share/fonts/misc/, /usr/local/share/fonts/TTF/, /usr/local/share/fonts/OTF/, /usr/local/share/fonts/Type1/, /usr/local/share/fonts/100dpi/, /usr/local/share/fonts/75dpi/, catalogue:/usr/local/etc/X11/fontpath.d [2026-07-19 08:20:58] (**) ModulePath set to /usr/local/lib/xorg/modules [2026-07-19 08:20:58] (WW) Hotplugging is on, devices using drivers kbd, mouse or vmmouse will be di sabled. [2026-07-19 08:20:58] (WW) Disabling Mouse0 [2026-07-19 08:20:58] (WW) Disabling Keyboard0 [2026-07-19 08:20:58] (II) Module ABI versions: [2026-07-19 08:20:58] X.Org ANSI C Emulation: 1.4 [2026-07-19 08:20:58] X.Org Video Driver: 28.1 [2026-07-19 08:20:58] X.Org XInput driver : 26.0 [2026-07-19 08:20:58] X.Org Server Extension : 11.0 [2026-07-19 08:20:58] (WW) seat-libseat: libseat integration requires -keeptty which was not provided, dis abling [2026-07-19 08:20:58] (--) PCI:*(50:0:0) 10de:11b4:10de:1096 rev 161, Mem 0xee000000/16777216, 0xd00000 00/268435456, 0xe0000000/33554432, I/O 0xc000/128, BIOS 0x????????/65536 [2026-07-19 08:20:58] (II) glx will be loaded. This was enabled by default and also specified in the con fig file. [2026-07-19 08:20:58] (II) LoadModule: glxservernvidia [2026-07-19 08:20:58] (WW) Warning, couldnt open module glxservernvidia [2026-07-19 08:20:58] (EE) Failed to load module glxservernvidia (module does not exist, 0) [2026-07-19 08:20:58] (II) LoadModule: glx [2026-07-19 08:20:58] (II) Loading /usr/local/lib/xorg/modules/xlibre-25/extensions/libglx.so [2026-07-19 08:20:58] (II) Module glx: vendorX.Org Foundation [2026-07-19 08:20:58] compiled for 1.25.1.8, module version 1.0.0 [2026-07-19 08:20:58] ABI class: X.Org Server Extension, version 11.0 [2026-07-19 08:20:58] (II) LoadModule: nvidia [2026-07-19 08:20:58] (WW) LoadModule: If you are using one of the legacy branches of the nvidia propriera ry DDX driver (e.g. 470, 390, 340, etc.) [2026-07-19 08:20:58] (WW) LoadModule: you need to build Xlibre with -Dlegacy_nvidia_paddingtrue [2026-07-19 08:20:58] (WW) LoadModule: Otherwise, you will get a segmentation fault due to the abi mismatc h between the new X server abi and the one these old drivers are compiled against. [2026-07-19 08:20:58] (WW) LoadModule: If you are using one of the maintained branches of the nvidia nvidi a kernel drivers, [2026-07-19 08:20:58] (WW) LoadModule: you can try using the in-tree, open-source modesetting DDX driver i nstead of the proprietary nvidia DDX driver. [2026-07-19 08:20:58] (WW) LoadModule: Implicitly ignoring abi mismatch for the nvidia proprierary DDX dri ver [2026-07-19 08:20:58] (WW) Warning, couldnt open module nvidia [2026-07-19 08:20:58] (EE) Failed to load module nvidia (module does not exist, 0) [2026-07-19 08:20:58] (II) LoadModule: modesetting [2026-07-19 08:20:58] (II) Loading /usr/local/lib/xorg/modules/xlibre-25/drivers/modesetting_drv.so [2026-07-19 08:20:58] (II) Module modesetting: vendorX.Org Foundation [2026-07-19 08:20:58] compiled for 1.25.1.8, module version 1.25.1 [2026-07-19 08:20:58] Module class: X.Org Video Driver [2026-07-19 08:20:58] ABI class: X.Org Video Driver, version 28.1 [2026-07-19 08:20:58] (II) modesetting: Driver for Modesetting Kernel Drivers: kms [2026-07-19 08:20:58] (--) Using pcvt driver [2026-07-19 08:20:59] (II) PCI device 05:0:0 can be claimed. [2026-07-19 08:20:59] (II) PCI device 05:0:0 can be claimed. [2026-07-19 08:20:59] (EE) open /dev/dri/card0: No such file or directory [2026-07-19 08:20:59] (WW) Falling back to old probe method for modesetting [2026-07-19 08:20:59] (EE) open /dev/dri/card0: No such file or directory [2026-07-19 08:20:59] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support [2026-07-19 08:20:58] (WW) LoadModule: you can try using the in-tree, open-source modesetting DDX driver i nstead of the proprietary nvidia DDX driver. [2026-07-19 08:20:58] (WW) LoadModule: Implicitly ignoring abi mismatch for the nvidia proprierary DDX dri ver [2026-07-19 08:20:58] (WW) Warning, couldnt open module nvidia [2026-07-19 08:20:58] (EE) Failed to load module nvidia (module does not exist, 0) [2026-07-19 08:20:58] (II) LoadModule: modesetting [2026-07-19 08:20:58] (II) Loading /usr/local/lib/xorg/modules/xlibre-25/drivers/modesetting_drv.so [2026-07-19 08:20:58] (II) Module modesetting: vendorX.Org Foundation [2026-07-19 08:20:58] compiled for 1.25.1.8, module version 1.25.1 [2026-07-19 08:20:58] Module class: X.Org Video Driver [2026-07-19 08:20:58] ABI class: X.Org Video Driver, version 28.1 [2026-07-19 08:20:58] (II) modesetting: Driver for Modesetting Kernel Drivers: kms [2026-07-19 08:20:58] (--) Using pcvt driver [2026-07-19 08:20:59] (II) PCI device 05:0:0 can be claimed. [2026-07-19 08:20:59] (II) PCI device 05:0:0 can be claimed. [2026-07-19 08:20:59] (EE) open /dev/dri/card0: No such file or directory [2026-07-19 08:20:59] (WW) Falling back to old probe method for modesetting [2026-07-19 08:20:59] (EE) open /dev/dri/card0: No such file or directory [2026-07-19 08:20:59] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support [2026-07-19 08:20:59] (EE) Screen 0 deleted because of no matching config section. [2026-07-19 08:20:59] (II) UnloadModule: modesetting [2026-07-19 08:20:59] (EE) Device(s) detected, but none match those in the config file. [2026-07-19 08:20:59] Fatal server error: [2026-07-19 08:20:59] no screens found [2026-07-19 08:20:59] Please consult the XLibre support: https://www.xlibre.net/ [2026-07-19 08:20:59] Please also check the log file at /var/log/Xorg.0.log for additional information. [2026-07-19 08:20:59] [2026-07-19 08:20:59] (EE) Server terminated with error (1). Closing log file. [2026-07-19 08:20:58] (**) | |--Device Card0 [2026-07-19 08:20:58] (**) | |--GPUDevice Card0 [2026-07-19 08:20:58] (**) |--Input Device Mouse0 [2026-07-19 08:20:58] (**) |--Input Device Keyboard0 [2026-07-19 08:20:58] (**) FontPath set to: /usr/local/share/fonts/misc/, /usr/local/share/fonts/TTF/, /usr/local/share/fonts/OTF/, /usr/local/share/fonts/Type1/, /usr/local/share/fonts/100dpi/, /usr/local/share/fonts/75dpi/,安装驱动搞定pkg install xlibre-nvidia-driver-470-470.256.02_2启动后卡死[2026-07-19 08:35:50] (EE) No input driver matching libinput [2026-07-19 08:35:50] (EE) libinput: module ABI major version (24) doesnt match the servers version (26) [2026-07-19 08:35:50] (EE) Failed to load module libinput (module requirement mismatch, 0) [2026-07-19 08:35:52] (EE) libinput: module ABI major version (24) doesnt match the servers version (26) [2026-07-19 08:35:52] (EE) Failed to load module libinput (module requirement mismatch, 0) [2026-07-19 08:35:52] (EE) No input driver matching libinput [2026-07-19 08:35:52] (EE) libinput: module ABI major version (24) doesnt match the servers version (26) [2026-07-19 08:35:52] (EE) Failed to load module libinput (module requirement mismatch, 0) [2026-07-19 08:35:55] (EE) libinput: module ABI major version (24) doesnt match the servers version (26) [2026-07-19 08:35:55] (EE) Failed to load module libinput (module requirement mismatch, 0) [2026-07-19 08:35:55] (EE) No input driver matching libinput [2026-07-19 08:35:55] (EE) libinput: module ABI major version (24) doesnt match the servers version (26) [2026-07-19 08:35:55] (EE) Failed to load module libinput (module requirement mismatch, 0) [2026-07-19 08:35:58] (EE) libinput: module ABI major version (24) doesnt match the servers version (26) [2026-07-19 08:35:58] (EE) Failed to load module libinput (module requirement mismatch, 0) [2026-07-19 08:35:58] (EE) No input driver matching libinput [2026-07-19 08:35:58] (EE) libinput: module ABI major version (24) doesnt match the servers version (26) [2026-07-19 08:35:58] (EE) Failed to load module libinput (module requirement mismatch, 0) [2026-07-19 08:36:01] (EE) libinput: module ABI major version (24) doesnt match the servers version (26) [2026-07-19 08:36:01] (EE) Failed to load module libinput (module requirement mismatch, 0) [2026-07-19 08:36:01] (EE) No input driver matching libinput [2026-07-19 08:36:01] (EE) libinput: module ABI major version (24) doesnt match the servers version (26) [2026-07-19 08:36:01] (EE) Failed to load module libinput (module requirement mismatch, 0)编辑文件写入Section InputClass Identifier libinput keyboard catchall MatchIsKeyboard on Driver libinput EndSection Section InputClass Identifier libinput mouse catchall MatchIsPointer on Driver libinput EndSection最终是在文件/etc/X11/xorg.conf写入Section Device Identifier Card0 Driver nvidia BusID PCI:5:0:0 Option AllowEmptyInitialConfiguration true EndSectionxfce终于能启动了总结对于 Quadro K4200 显卡应该用nvidia 470驱动配置文件/etc/X11/xorg.confSection Device Identifier Card0 Driver nvidia BusID PCI:5:0:0 Option AllowEmptyInitialConfiguration true EndSection