Why I am getting X11 with VESA driver although NVidia is installed?

cracauer@

Developer
This 16-current installation doesn't like to start the X11 server with direct rendering, I get VESA instead. The same hardware with a different install does NVidia-drm just fine.

Both FreeBSD installs have:
linux-nvidia-libs
nvidia-driver
nvidia-drm-66-kmod
nvidia-drm-kmod
nvidia-kmod

nvidia-smi shows the right card and kernel module loaded for both. Neither have an Xorg config file.

I cant tell the difference
banghead.gif
 

Attachments

I was lying to you. The working install had a xorg.conf fragment:
Code:
Section "Device"
        Identifier "NVIDIA Card"
        VendorName "NVIDIA Corporation"
        Driver "nvidia"
EndSection

However, no I get glx accelerated, but still no Vulkan:
Code:
% DISPLAY=:0  vulkaninfo --summary        
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
ERROR at /wrkdirs/usr/ports/graphics/vulkan-tools/work/Vulkan-Tools-vulkan-sdk-1.4.350.0/vulkaninfo/./vulkaninfo.h:249:vkGetPhysicalDeviceDisplayPlanePropertiesKHR \
failed with ERROR_UNKNOWN
 

Attachments

Does your "broken" installation has all kmod ports in sync with running kernel?
Is the "broken" installation uses pkg for installing kmods?
Which branch (latest or quarterly) does your "broken" installation use?

If you're on latest branch and __FreeBSD_version of your 16-CURRENT is at 1600018, does switching to graphics/drm-612-kmod and graphics/nvidia-drm-612-kmod make any progress?
graphics/nvidia-drm-612-kmod is available at commit ports 536352bd7c13 and later. Building from ports would be preferrable especially on 16-CURRENT.

And note that upgrades to 595.80 (and 610.43.02 for -devel variants) are under review now. You can try 595.80 by obtaining patch from PR 295718 or review D57358 (or 610.43.02 from PR 295720 or review D57359).

FYI:
Relevant parts of my currently running /var/log/Xorg.0.log is like below.
stable/15, amd64 at commit base 7fa638d6f7cf.
Using 610.43.02 on RTX A400 (iGPU on Core i9-12900H is disabled on UEFI firmware config and display is connected via one of DP port on RTX A400).
HW Probe here (not latest, though).

Code:
     (snip from the top)

[   285.373] (==) No Layout section.  Using the first Screen section.
[   285.373] (==) No screen section available. Using defaults.
[   285.373] (**) |-->Screen "Default Screen Section" (0)
[   285.373] (**) |   |-->Monitor "<default monitor>"
[   285.373] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[   285.373] (**) |-->Input Device "Touchpad"
[   285.373] (**) Allowing byte-swapped clients
[   285.373] (==) Automatically adding devices
[   285.373] (==) Automatically enabling devices
[   285.373] (==) Automatically adding GPU devices
[   285.373] (==) Automatically binding GPU devices
[   285.373] (==) Max clients allowed: 256, resource mask: 0x1fffff

     (snip)

[   285.378] (II) Module ABI versions:
[   285.378]     X.Org ANSI C Emulation: 0.4
[   285.378]     X.Org Video Driver: 25.2
[   285.378]     X.Org XInput driver : 24.4
[   285.378]     X.Org Server Extension : 10.0
[   285.385] (II) xfree86: Adding drm device (/dev/dri/card0)
[   285.385] (II) Platform probe for /dev/dri/card0
[   285.557] (**) OutputClass "nvidia" ModulePath extended to "/usr/local/lib/nvidia/xorg,/usr/local/lib/xorg/modules,/usr/local/lib/xorg/modules"
[   285.557] (**) OutputClass "nvidia" ModulePath extended to "/usr/local/lib/nvidia/xorg,/usr/local/lib/xorg/modules,/usr/local/lib/nvidia/xorg,/usr/local/lib/xorg/modules,/usr/local/lib/xorg/modules"
[   285.557] (**) OutputClass "nvidia" setting /dev/dri/card0 as PrimaryGPU
[   285.557] (--) PCI:*(1@0:0:0) 10de:25b2:10de:1879 rev 161, Mem @ 0x6b000000/16777216, 0x4000000000/4294967296, 0x4100000000/33554432, I/O @ 0x00003000/128, BIOS @ 0x????????/65536
[   285.557] (II) LoadModule: "glx"
[   285.558] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[   285.564] (II) Module glx: vendor="X.Org Foundation"
[   285.564]     compiled for 1.21.1.22, module version = 1.0.0
[   285.564]     ABI class: X.Org Server Extension, version 10.0
[   285.565] (II) Applying OutputClass "nvidia" to /dev/dri/card0
[   285.565]     loading driver: nvidia
[   285.565] (II) Applying OutputClass "nvidia" to /dev/dri/card0
[   285.565]     loading driver: nvidia
[   285.565] (==) Matched nvidia as autoconfigured driver 0
[   285.565] (==) Matched nv as autoconfigured driver 1
[   285.565] (==) Matched modesetting as autoconfigured driver 2
[   285.565] (==) Matched scfb as autoconfigured driver 3
[   285.565] (==) Matched vesa as autoconfigured driver 4
[   285.565] (==) Assigned the driver to the xf86ConfigLayout
[   285.565] (II) LoadModule: "nvidia"
[   285.565] (II) Loading /usr/local/lib/xorg/modules/drivers/nvidia_drv.so
[   285.568] (II) Module nvidia: vendor="NVIDIA Corporation"
[   285.568]     compiled for 1.16.99.901, module version = 1.0.0
[   285.568]     Module class: X.Org Video Driver
[   285.568] (II) LoadModule: "nv"
[   285.568] (WW) Warning, couldn't open module nv
[   285.568] (EE) Failed to load module "nv" (module does not exist, 0)
[   285.568] (II) LoadModule: "modesetting"
[   285.568] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[   285.572] (II) Module modesetting: vendor="X.Org Foundation"
[   285.572]     compiled for 1.21.1.22, module version = 1.21.1
[   285.572]     Module class: X.Org Video Driver
[   285.572]     ABI class: X.Org Video Driver, version 25.2
[   285.572] (II) LoadModule: "scfb"
[   285.572] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so
[   285.572] (II) Module scfb: vendor="X.Org Foundation"
[   285.572]     compiled for 1.21.1.22, module version = 0.0.5
[   285.572]     ABI class: X.Org Video Driver, version 25.2
[   285.572] (II) LoadModule: "vesa"
[   285.572] (WW) Warning, couldn't open module vesa
[   285.572] (EE) Failed to load module "vesa" (module does not exist, 0)

     (snip)

[   285.576] (II) NVIDIA dlloader X Driver  610.43.02  Tue May 19 10:39:03 UTC 2026
[   285.576] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   285.577] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   285.577] (II) scfb: driver for wsdisplay framebuffer: scfb
[   285.577] (--) Using syscons driver with X support (version 2.0)
[   285.577] (--) using VT number 9

[   285.584] (II) Loading sub module "fb"
[   285.584] (II) LoadModule: "fb"
[   285.584] (II) Module "fb" already built-in
[   285.584] (II) Loading sub module "wfb"
[   285.584] (II) LoadModule: "wfb"
[   285.584] (II) Loading /usr/local/lib/xorg/modules/libwfb.so
[   285.584] (II) Module wfb: vendor="X.Org Foundation"
[   285.584]     compiled for 1.21.1.22, module version = 1.0.0
[   285.584]     ABI class: X.Org ANSI C Emulation, version 0.4
[   285.585] (WW) Falling back to old probe method for modesetting
[   285.589] (WW) Falling back to old probe method for scfb
[   285.589] scfb trace: probe start
[   285.589] scfb trace: probe done
[   285.589] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   285.589] (II) NVIDIA(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
[   285.589] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[   285.589] (==) NVIDIA(0): RGB weight 888
[   285.589] (==) NVIDIA(0): Default visual is TrueColor
[   285.589] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[   285.589] (II) Applying OutputClass "nvidia" options to /dev/dri/card0
[   285.589] (II) Applying OutputClass "nvidia" options to /dev/dri/card0
[   285.589] (**) NVIDIA(0): Enabling 2D acceleration
[   285.589] (II) Loading sub module "glxserver_nvidia"
[   285.589] (II) LoadModule: "glxserver_nvidia"
[   285.589] (II) Loading /usr/local/lib/xorg/modules/extensions/libglxserver_nvidia.so
[   285.678] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[   285.678]     compiled for 1.16.99.901, module version = 1.0.0
[   285.678]     Module class: X.Org Server Extension
[   285.678] (II) NVIDIA GLX Module  610.43.02  Tue May 19 10:37:27 UTC 2026
[   285.679] (II) NVIDIA: The X server supports PRIME Render Offload.
[   285.686] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:1:0:0
[   285.686] (--) NVIDIA(0):     DFP-0
[   285.686] (--) NVIDIA(0):     DFP-1
[   285.686] (--) NVIDIA(0):     DFP-2
[   285.687] (--) NVIDIA(0):     DFP-3
[   285.687] (--) NVIDIA(0):     DFP-4 (boot)
[   285.687] (--) NVIDIA(0):     DFP-5
[   285.687] (--) NVIDIA(0):     DFP-6
[   285.687] (--) NVIDIA(0):     DFP-7
[   285.726] (II) NVIDIA(0): NVIDIA GPU NVIDIA RTX A400 (GA107GL-A) at PCI:1:0:0 (GPU-0)
[   285.726] (--) NVIDIA(0): Memory: 4192256 kBytes
[   285.726] (--) NVIDIA(0): VideoBIOS: 94.07.9b.00.01
[   285.726] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[   285.726] (--) NVIDIA(GPU-0): DFP-0: disconnected
[   285.726] (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
[   285.726] (--) NVIDIA(GPU-0): DFP-0: 2670.0 MHz maximum pixel clock
[   285.726] (--) NVIDIA(GPU-0):
[   285.728] (--) NVIDIA(GPU-0): DFP-1: disconnected
[   285.728] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[   285.728] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[   285.728] (--) NVIDIA(GPU-0):
[   285.728] (--) NVIDIA(GPU-0): DFP-2: disconnected
[   285.728] (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
[   285.728] (--) NVIDIA(GPU-0): DFP-2: 2670.0 MHz maximum pixel clock
[   285.728] (--) NVIDIA(GPU-0):
[   285.728] (--) NVIDIA(GPU-0): DFP-3: disconnected
[   285.728] (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
[   285.728] (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
[   285.728] (--) NVIDIA(GPU-0):
[   285.732] (--) NVIDIA(GPU-0): MNT JAPANNEXT.MNT (DFP-4): connected
[   285.732] (--) NVIDIA(GPU-0): MNT JAPANNEXT.MNT (DFP-4): Internal DisplayPort
[   285.732] (--) NVIDIA(GPU-0): MNT JAPANNEXT.MNT (DFP-4): 2670.0 MHz maximum pixel clock
[   285.732] (--) NVIDIA(GPU-0):
[   285.738] (--) NVIDIA(GPU-0): DFP-5: disconnected
[   285.738] (--) NVIDIA(GPU-0): DFP-5: Internal TMDS
[   285.738] (--) NVIDIA(GPU-0): DFP-5: 165.0 MHz maximum pixel clock
[   285.738] (--) NVIDIA(GPU-0):
[   285.738] (--) NVIDIA(GPU-0): DFP-6: disconnected
[   285.738] (--) NVIDIA(GPU-0): DFP-6: Internal DisplayPort
[   285.738] (--) NVIDIA(GPU-0): DFP-6: 2670.0 MHz maximum pixel clock
[   285.738] (--) NVIDIA(GPU-0):
[   285.739] (--) NVIDIA(GPU-0): DFP-7: disconnected
[   285.739] (--) NVIDIA(GPU-0): DFP-7: Internal TMDS
[   285.739] (--) NVIDIA(GPU-0): DFP-7: 165.0 MHz maximum pixel clock
[   285.739] (--) NVIDIA(GPU-0):
[   285.793] (==) NVIDIA(0):
[   285.793] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[   285.793] (==) NVIDIA(0):     will be used as the requested mode.
[   285.793] (==) NVIDIA(0):
[   285.796] (II) NVIDIA(0): Validated MetaModes:
[   285.796] (II) NVIDIA(0):     "DFP-4:nvidia-auto-select"
[   285.796] (II) NVIDIA(0): Virtual screen size determined to be 3840 x 2160
[   285.889] (--) NVIDIA(0): DPI set to (184, 182); computed from "UseEdidDpi" X config
[   285.889] (--) NVIDIA(0):     option
[   285.889] (II) UnloadModule: "modesetting"
[   285.889] (II) Unloading modesetting
[   285.889] (II) UnloadModule: "scfb"
[   285.889] (II) Unloading scfb
[   285.891] (II) NVIDIA: Reserving 24576.00 MB of virtual memory for indirect memory
[   285.891] (II) NVIDIA:     access.
[   285.960] (II) NVIDIA(0): Setting mode "DFP-4:nvidia-auto-select"
[   286.151] (II) NVIDIA(0): Disabling shared memory pixmaps
[   286.151] (==) NVIDIA(0): Backing store enabled
[   286.151] (==) NVIDIA(0): Silken mouse enabled
[   286.152] (==) NVIDIA(0): DPMS enabled
[   286.152] (WW) NVIDIA(0): Option "PrimaryGPU" is not used
[   286.152] (II) Loading sub module "dri2"
[   286.152] (II) LoadModule: "dri2"
[   286.152] (II) Module "dri2" already built-in
[   286.152] (II) NVIDIA(0): [DRI2] Setup complete
[   286.152] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia

     (snip)

[   288.185] (--) NVIDIA(GPU-0): DFP-0: disconnected
[   288.185] (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
[   288.185] (--) NVIDIA(GPU-0): DFP-0: 2670.0 MHz maximum pixel clock
[   288.185] (--) NVIDIA(GPU-0):
[   288.185] (--) NVIDIA(GPU-0): DFP-1: disconnected
[   288.185] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[   288.185] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[   288.185] (--) NVIDIA(GPU-0):
[   288.185] (--) NVIDIA(GPU-0): DFP-2: disconnected
[   288.185] (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
[   288.185] (--) NVIDIA(GPU-0): DFP-2: 2670.0 MHz maximum pixel clock
[   288.185] (--) NVIDIA(GPU-0):
[   288.186] (--) NVIDIA(GPU-0): DFP-3: disconnected
[   288.186] (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
[   288.186] (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
[   288.186] (--) NVIDIA(GPU-0):
[   288.187] (--) NVIDIA(GPU-0): MNT JAPANNEXT.MNT (DFP-4): connected
[   288.187] (--) NVIDIA(GPU-0): MNT JAPANNEXT.MNT (DFP-4): Internal DisplayPort
[   288.187] (--) NVIDIA(GPU-0): MNT JAPANNEXT.MNT (DFP-4): 2670.0 MHz maximum pixel clock
[   288.187] (--) NVIDIA(GPU-0):
[   288.192] (--) NVIDIA(GPU-0): DFP-5: disconnected
[   288.192] (--) NVIDIA(GPU-0): DFP-5: Internal TMDS
[   288.192] (--) NVIDIA(GPU-0): DFP-5: 165.0 MHz maximum pixel clock
[   288.192] (--) NVIDIA(GPU-0):
[   288.192] (--) NVIDIA(GPU-0): DFP-6: disconnected
[   288.192] (--) NVIDIA(GPU-0): DFP-6: Internal DisplayPort
[   288.192] (--) NVIDIA(GPU-0): DFP-6: 2670.0 MHz maximum pixel clock
[   288.192] (--) NVIDIA(GPU-0):
[   288.193] (--) NVIDIA(GPU-0): DFP-7: disconnected
[   288.193] (--) NVIDIA(GPU-0): DFP-7: Internal TMDS
[   288.193] (--) NVIDIA(GPU-0): DFP-7: 165.0 MHz maximum pixel clock
[   288.193] (--) NVIDIA(GPU-0):
[   288.194] (--) NVIDIA(GPU-0): DFP-0: disconnected
[   288.194] (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
[   288.194] (--) NVIDIA(GPU-0): DFP-0: 2670.0 MHz maximum pixel clock
[   288.194] (--) NVIDIA(GPU-0):
[   288.194] (--) NVIDIA(GPU-0): DFP-1: disconnected
[   288.194] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[   288.194] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[   288.194] (--) NVIDIA(GPU-0):
[   288.194] (--) NVIDIA(GPU-0): DFP-2: disconnected
[   288.194] (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
[   288.194] (--) NVIDIA(GPU-0): DFP-2: 2670.0 MHz maximum pixel clock
[   288.194] (--) NVIDIA(GPU-0):
[   288.194] (--) NVIDIA(GPU-0): DFP-3: disconnected
[   288.194] (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
[   288.194] (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
[   288.194] (--) NVIDIA(GPU-0):
[   288.196] (--) NVIDIA(GPU-0): MNT JAPANNEXT.MNT (DFP-4): connected
[   288.196] (--) NVIDIA(GPU-0): MNT JAPANNEXT.MNT (DFP-4): Internal DisplayPort
[   288.196] (--) NVIDIA(GPU-0): MNT JAPANNEXT.MNT (DFP-4): 2670.0 MHz maximum pixel clock
[   288.196] (--) NVIDIA(GPU-0):
[   288.201] (--) NVIDIA(GPU-0): DFP-5: disconnected
[   288.201] (--) NVIDIA(GPU-0): DFP-5: Internal TMDS
[   288.201] (--) NVIDIA(GPU-0): DFP-5: 165.0 MHz maximum pixel clock
[   288.201] (--) NVIDIA(GPU-0):
[   288.201] (--) NVIDIA(GPU-0): DFP-6: disconnected
[   288.201] (--) NVIDIA(GPU-0): DFP-6: Internal DisplayPort
[   288.201] (--) NVIDIA(GPU-0): DFP-6: 2670.0 MHz maximum pixel clock
[   288.201] (--) NVIDIA(GPU-0):
[   288.201] (--) NVIDIA(GPU-0): DFP-7: disconnected
[   288.201] (--) NVIDIA(GPU-0): DFP-7: Internal TMDS
[   288.201] (--) NVIDIA(GPU-0): DFP-7: 165.0 MHz maximum pixel clock
[   288.201] (--) NVIDIA(GPU-0):
[   288.203] (--) NVIDIA(GPU-0): DFP-0: disconnected
[   288.203] (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
[   288.203] (--) NVIDIA(GPU-0): DFP-0: 2670.0 MHz maximum pixel clock
[   288.203] (--) NVIDIA(GPU-0):
[   288.203] (--) NVIDIA(GPU-0): DFP-1: disconnected
[   288.203] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[   288.203] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[   288.203] (--) NVIDIA(GPU-0):
[   288.203] (--) NVIDIA(GPU-0): DFP-2: disconnected
[   288.203] (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
[   288.203] (--) NVIDIA(GPU-0): DFP-2: 2670.0 MHz maximum pixel clock
[   288.203] (--) NVIDIA(GPU-0):
[   288.203] (--) NVIDIA(GPU-0): DFP-3: disconnected
[   288.203] (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
[   288.203] (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
[   288.203] (--) NVIDIA(GPU-0):
[   288.205] (--) NVIDIA(GPU-0): MNT JAPANNEXT.MNT (DFP-4): connected
[   288.205] (--) NVIDIA(GPU-0): MNT JAPANNEXT.MNT (DFP-4): Internal DisplayPort
[   288.205] (--) NVIDIA(GPU-0): MNT JAPANNEXT.MNT (DFP-4): 2670.0 MHz maximum pixel clock
[   288.205] (--) NVIDIA(GPU-0):
[   288.210] (--) NVIDIA(GPU-0): DFP-5: disconnected
[   288.210] (--) NVIDIA(GPU-0): DFP-5: Internal TMDS
[   288.210] (--) NVIDIA(GPU-0): DFP-5: 165.0 MHz maximum pixel clock
[   288.210] (--) NVIDIA(GPU-0):
[   288.210] (--) NVIDIA(GPU-0): DFP-6: disconnected
[   288.210] (--) NVIDIA(GPU-0): DFP-6: Internal DisplayPort
[   288.210] (--) NVIDIA(GPU-0): DFP-6: 2670.0 MHz maximum pixel clock
[   288.210] (--) NVIDIA(GPU-0):
[   288.210] (--) NVIDIA(GPU-0): DFP-7: disconnected
[   288.210] (--) NVIDIA(GPU-0): DFP-7: Internal TMDS
[   288.210] (--) NVIDIA(GPU-0): DFP-7: 165.0 MHz maximum pixel clock
[   288.210] (--) NVIDIA(GPU-0):
[   288.211] (--) NVIDIA(GPU-0): DFP-0: disconnected
[   288.211] (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
[   288.211] (--) NVIDIA(GPU-0): DFP-0: 2670.0 MHz maximum pixel clock
[   288.211] (--) NVIDIA(GPU-0):
[   288.212] (--) NVIDIA(GPU-0): DFP-1: disconnected
[   288.212] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[   288.212] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[   288.212] (--) NVIDIA(GPU-0):
[   288.212] (--) NVIDIA(GPU-0): DFP-2: disconnected
[   288.212] (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
[   288.212] (--) NVIDIA(GPU-0): DFP-2: 2670.0 MHz maximum pixel clock
[   288.212] (--) NVIDIA(GPU-0):
[   288.212] (--) NVIDIA(GPU-0): DFP-3: disconnected
[   288.212] (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
[   288.212] (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
[   288.212] (--) NVIDIA(GPU-0):
[   288.214] (--) NVIDIA(GPU-0): MNT JAPANNEXT.MNT (DFP-4): connected
[   288.214] (--) NVIDIA(GPU-0): MNT JAPANNEXT.MNT (DFP-4): Internal DisplayPort
[   288.214] (--) NVIDIA(GPU-0): MNT JAPANNEXT.MNT (DFP-4): 2670.0 MHz maximum pixel clock
[   288.214] (--) NVIDIA(GPU-0):
[   288.219] (--) NVIDIA(GPU-0): DFP-5: disconnected
[   288.219] (--) NVIDIA(GPU-0): DFP-5: Internal TMDS
[   288.219] (--) NVIDIA(GPU-0): DFP-5: 165.0 MHz maximum pixel clock
[   288.219] (--) NVIDIA(GPU-0):
[   288.219] (--) NVIDIA(GPU-0): DFP-6: disconnected
[   288.219] (--) NVIDIA(GPU-0): DFP-6: Internal DisplayPort
[   288.219] (--) NVIDIA(GPU-0): DFP-6: 2670.0 MHz maximum pixel clock
[   288.219] (--) NVIDIA(GPU-0):
[   288.219] (--) NVIDIA(GPU-0): DFP-7: disconnected
[   288.219] (--) NVIDIA(GPU-0): DFP-7: Internal TMDS
[   288.219] (--) NVIDIA(GPU-0): DFP-7: 165.0 MHz maximum pixel clock
[   288.219] (--) NVIDIA(GPU-0):
[   288.503] (--) NVIDIA(GPU-0): DFP-0: disconnected
[   288.503] (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
[   288.504] (--) NVIDIA(GPU-0): DFP-0: 2670.0 MHz maximum pixel clock
[   288.504] (--) NVIDIA(GPU-0):
[   288.505] (--) NVIDIA(GPU-0): DFP-1: disconnected
[   288.505] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[   288.505] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[   288.505] (--) NVIDIA(GPU-0):
[   288.505] (--) NVIDIA(GPU-0): DFP-2: disconnected
[   288.505] (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
[   288.505] (--) NVIDIA(GPU-0): DFP-2: 2670.0 MHz maximum pixel clock
[   288.505] (--) NVIDIA(GPU-0):
[   288.506] (--) NVIDIA(GPU-0): DFP-3: disconnected
[   288.506] (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
[   288.506] (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
[   288.506] (--) NVIDIA(GPU-0):
[   288.529] (--) NVIDIA(GPU-0): MNT JAPANNEXT.MNT (DFP-4): connected
[   288.529] (--) NVIDIA(GPU-0): MNT JAPANNEXT.MNT (DFP-4): Internal DisplayPort
[   288.529] (--) NVIDIA(GPU-0): MNT JAPANNEXT.MNT (DFP-4): 2670.0 MHz maximum pixel clock
[   288.529] (--) NVIDIA(GPU-0):
[   288.534] (--) NVIDIA(GPU-0): DFP-5: disconnected
[   288.534] (--) NVIDIA(GPU-0): DFP-5: Internal TMDS
[   288.534] (--) NVIDIA(GPU-0): DFP-5: 165.0 MHz maximum pixel clock
[   288.534] (--) NVIDIA(GPU-0):
[   288.534] (--) NVIDIA(GPU-0): DFP-6: disconnected
[   288.534] (--) NVIDIA(GPU-0): DFP-6: Internal DisplayPort
[   288.534] (--) NVIDIA(GPU-0): DFP-6: 2670.0 MHz maximum pixel clock
[   288.534] (--) NVIDIA(GPU-0):
[   288.535] (--) NVIDIA(GPU-0): DFP-7: disconnected
[   288.535] (--) NVIDIA(GPU-0): DFP-7: Internal TMDS
[   288.535] (--) NVIDIA(GPU-0): DFP-7: 165.0 MHz maximum pixel clock
[   288.535] (--) NVIDIA(GPU-0):
[   289.810] (--) NVIDIA(GPU-0): DFP-0: disconnected
[   289.810] (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
[   289.810] (--) NVIDIA(GPU-0): DFP-0: 2670.0 MHz maximum pixel clock
[   289.810] (--) NVIDIA(GPU-0):
[   289.811] (--) NVIDIA(GPU-0): DFP-1: disconnected
[   289.811] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[   289.811] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[   289.811] (--) NVIDIA(GPU-0):
[   289.811] (--) NVIDIA(GPU-0): DFP-2: disconnected
[   289.811] (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
[   289.811] (--) NVIDIA(GPU-0): DFP-2: 2670.0 MHz maximum pixel clock
[   289.811] (--) NVIDIA(GPU-0):
[   289.811] (--) NVIDIA(GPU-0): DFP-3: disconnected
[   289.811] (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
[   289.811] (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
[   289.811] (--) NVIDIA(GPU-0):
[   289.813] (--) NVIDIA(GPU-0): MNT JAPANNEXT.MNT (DFP-4): connected
[   289.813] (--) NVIDIA(GPU-0): MNT JAPANNEXT.MNT (DFP-4): Internal DisplayPort
[   289.813] (--) NVIDIA(GPU-0): MNT JAPANNEXT.MNT (DFP-4): 2670.0 MHz maximum pixel clock
[   289.813] (--) NVIDIA(GPU-0):
[   289.818] (--) NVIDIA(GPU-0): DFP-5: disconnected
[   289.818] (--) NVIDIA(GPU-0): DFP-5: Internal TMDS
[   289.818] (--) NVIDIA(GPU-0): DFP-5: 165.0 MHz maximum pixel clock
[   289.818] (--) NVIDIA(GPU-0):
[   289.818] (--) NVIDIA(GPU-0): DFP-6: disconnected
[   289.818] (--) NVIDIA(GPU-0): DFP-6: Internal DisplayPort
[   289.818] (--) NVIDIA(GPU-0): DFP-6: 2670.0 MHz maximum pixel clock
[   289.818] (--) NVIDIA(GPU-0):
[   289.819] (--) NVIDIA(GPU-0): DFP-7: disconnected
[   289.819] (--) NVIDIA(GPU-0): DFP-7: Internal TMDS
[   289.819] (--) NVIDIA(GPU-0): DFP-7: 165.0 MHz maximum pixel clock
[   289.819] (--) NVIDIA(GPU-0):

     (snip to EOF)
 
Does your "broken" installation has all kmod ports in sync with running kernel?
Is the "broken" installation uses pkg for installing kmods?
Which branch (latest or quarterly) does your "broken" installation use?

If you're on latest branch and __FreeBSD_version of your 16-CURRENT is at 1600018, does switching to graphics/drm-612-kmod and graphics/nvidia-drm-612-kmod make any progress?
graphics/nvidia-drm-612-kmod is available at commit ports 536352bd7c13 and later. Building from ports would be preferrable especially on 16-CURRENT.

And note that upgrades to 595.80 (and 610.43.02 for -devel variants) are under review now. You can try 595.80 by obtaining patch from PR 295718 or review D57358 (or 610.43.02 from PR 295720 or review D57359).

The kmod pkgs were from pkg. I just recompiled them from ports but no change.

It's latest pkg/ports.

I'll try 612, but as I said, the old packages do work on the other install:
linux-nvidia-libs-595.71.05
nvidia-driver-595.71.05
nvidia-drm-66-kmod-595.71.05.1600018
nvidia-drm-kmod-595.71.05_1
nvidia-kmod-595.71.05.1600018
 
I'll try 612, but as I said, the old packages do work on the other install:
So one thing to confirm could be to compare pkgs cached at both computers.
If differs, it would be worth trying sane one to try on broken one.

It is because possibly on which commit they were built against affects.
graphics/{nvidia-}drm-*-kmod* ports are too sensitive with underlying LinuxKPI module.

And as you may know well, kmod ports (especially anything depending upon LinuxKPI) wants exactly same commit of src tree with running (or to-be-run on NeXT boot) kernel on builds.
 
I still think the problem is more with the X11 server than with the kmod.

As another datapoint, even though the X11 server is up and running `nvidia-smi` does not report it as a process on the GPU.
 
cracauer@ try creating a screen 0 override file.

Section "Screen"
Identifier "Screen0"
Device "Nvidia Card"
SubSection "Display"
Modes "1920x1080
EndSubSection
EndSection

Your logs have entries about screen 0 being in use. Maybe xorg is detecting the igpu?
 
I've read the 2nd log at Comment #2 only, but didn't find anything related with iGPU.
What came in mind is that there's remnants of old-school /etc/X11/xorg.conf for old-school installation (aka UMS in contrast with KMS) that don't use graphics/nvidia-drm-*-kmod* ports and its screen or monitor related section are causing harm (or it doesn't contain proper NVIDIA specific configurations).

And possibly trying latest NFB (-devel variant) of drivers helps, as its Release Highlights contains following.
Code:
> Fixed a regression introduced in 580.65.06, that caused some mode timings, such as 1920x1080@75, to no longer be available.
> Reverted a change that led to a user regression in 580.105.08 that caused display modes to be invalidated on a number of monitors.
 
Back
Top