nvidia driver is now loaded at boot! We are getting closer!
@Emiron
Yes, booting in single user mode I could successfully load the driver with kldload nvidia-modeset. The screen turned black (cursor in the upper left corner, not blinking) after I tried to start the X server with 'startx'. Following the recommendation of SirDice, I disbaled slim in rc.conf. I do not know if it is related to that, but now the nvidia driver is loaded at boot (checked with 'kldstat -m nvidia-modeset').
Thus, with the nvidia driver loaded, I logged in as a normal user and tried to star X and got of course a black screen again. However, rebooting I could have a look at the Xorg.0.log file in /var/log, which looks totally ok to me. Maybe the problem is now not the nvdiia driver itself, but getting the video stream to the screen?
Here is Xorg.0.log:
[ 1340.597]
X.Org X Server 1.21.1.14
X Protocol Version 11, Revision 0
[ 1340.597] Current Operating System: FreeBSD Asus-Laptop 14.2-RELEASE FreeBSD 14.2-RELEASE releng/14.2-n269506-c8918d6c7412 GENERIC amd64
[ 1340.597]
[ 1340.597] Current version of pixman: 0.42.2
[ 1340.597] Before reporting problems, check
http://wiki.x.org
to make sure that you have the latest version.
[ 1340.597] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 1340.597] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Sep 14 03:50:53 2021
[ 1340.598] (==) Using config directory: "/usr/local/etc/X11/xorg.conf.d"
[ 1340.598] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[ 1340.599] (==) No Layout section. Using the first Screen section.
[ 1340.599] (==) No screen section available. Using defaults.
[ 1340.600] (**) |-->Screen "Default Screen Section" (0)
[ 1340.600] (**) | |-->Monitor "<default monitor>"
[ 1340.600] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 1340.600] (**) | |-->Device "Card0"
[ 1340.600] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 1340.600] (**) Allowing byte-swapped clients
[ 1340.600] (==) Automatically adding devices
[ 1340.600] (==) Automatically enabling devices
[ 1340.600] (==) Automatically adding GPU devices
[ 1340.600] (==) Automatically binding GPU devices
[ 1340.601] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 1340.606] (==) 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/,
catalogue:/usr/local/etc/X11/fontpath.d
[ 1340.606] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[ 1340.606] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 1340.606] (II) Module ABI versions:
[ 1340.606] X.Org ANSI C Emulation: 0.4
[ 1340.606] X.Org Video Driver: 25.2
[ 1340.606] X.Org XInput driver : 24.4
[ 1340.606] X.Org Server Extension : 10.0
[ 1340.611] (--) PCI: (1@0:0:0) 10de:1c96:1043:1092 rev 161, Mem @ 0xfb000000/16777216, 0xb0000000/268435456, 0xc0000000/33554432, I/O @ 0x0000f000/128
[ 1340.611] (--) PCI:*(4@0:0:0) 1002:1636:1043:1092 rev 194, Mem @ 0xd0000000/268435456, 0xe0000000/2097152, 0xfc500000/524288, I/O @ 0x0000e000/256, BIOS @ 0x????????/65536
[ 1340.611] (II) LoadModule: "glx"
[ 1340.612] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[ 1340.620] (II) Module glx: vendor="X.Org Foundation"
[ 1340.620] compiled for 1.21.1.14, module version = 1.0.0
[ 1340.620] ABI class: X.Org Server Extension, version 10.0
[ 1340.620] (II) LoadModule: "nvidia"
[ 1340.620] (II) Loading /usr/local/lib/xorg/modules/drivers/nvidia_drv.so
[ 1340.624] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 1340.624] compiled for 1.6.99.901, module version = 1.0.0
[ 1340.625] Module class: X.Org Video Driver
[ 1340.625] (II) NVIDIA dlloader X Driver 550.120 Fri Sep 13 09:34:46 UTC 2024
[ 1340.625] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 1340.625] (--) Using syscons driver with X support (version 2.0)
[ 1340.625] (--) using VT number 9
[ 1340.628] (II) Loading sub module "fb"
[ 1340.628] (II) LoadModule: "fb"
[ 1340.628] (II) Module "fb" already built-in
[ 1340.628] (II) Loading sub module "wfb"
[ 1340.628] (II) LoadModule: "wfb"
[ 1340.628] (II) Loading /usr/local/lib/xorg/modules/libwfb.so
[ 1340.629] (II) Module wfb: vendor="X.Org Foundation"
[ 1340.629] compiled for 1.21.1.14, module version = 1.0.0
[ 1340.629] ABI class: X.Org ANSI C Emulation, version 0.4
[ 1340.630] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 1340.630] (II) NVIDIA(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 1340.630] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[ 1340.630] (==) NVIDIA(0): RGB weight 888
[ 1340.630] (==) NVIDIA(0): Default visual is TrueColor
[ 1340.630] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[ 1340.630] (**) NVIDIA(0): Enabling 2D acceleration
[ 1340.630] (II) Loading sub module "glxserver_nvidia"
[ 1340.630] (II) LoadModule: "glxserver_nvidia"
[ 1340.630] (II) Loading /usr/local/lib/xorg/modules/extensions/libglxserver_nvidia.so
[ 1340.709] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[ 1340.709] compiled for 1.6.99.901, module version = 1.0.0
[ 1340.709] Module class: X.Org Server Extension
[ 1340.709] (II) NVIDIA GLX Module 550.120 Fri Sep 13 09:34:34 UTC 2024
[ 1340.710] (II) NVIDIA: The X server supports PRIME Render Offload.
[ 1341.271] (WW) NVIDIA: No DRM device: No direct render devices found.
[ 1341.272] (II) NVIDIA(0): NVIDIA GPU NVIDIA GeForce MX350 (GP107-A) at PCI:1:0:0
[ 1341.272] (II) NVIDIA(0): (GPU-0)
[ 1341.272] (--) NVIDIA(0): Memory: 2097152 kBytes
[ 1341.272] (--) NVIDIA(0): VideoBIOS: 86.07.92.00.84
[ 1341.272] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[ 1341.272] (II) NVIDIA(0): Validated MetaModes:
[ 1341.272] (II) NVIDIA(0): "NULL"
[ 1341.272] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[ 1341.272] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[ 1341.272] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[ 1341.272] (II) NVIDIA: Reserving 24576.00 MB of virtual memory for indirect memory
[ 1341.273] (II) NVIDIA: access.
[ 1341.292] (II) NVIDIA(0): Setting mode "NULL"
[ 1341.296] (==) NVIDIA(0): Disabling shared memory pixmaps
[ 1341.296] (==) NVIDIA(0): Backing store enabled
[ 1341.296] (==) NVIDIA(0): Silken mouse enabled
[ 1341.296] (==) NVIDIA(0): DPMS enabled
[ 1341.297] (II) Loading sub module "dri2"
[ 1341.297] (II) LoadModule: "dri2"
[ 1341.297] (II) Module "dri2" already built-in
[ 1341.297] (II) NVIDIA(0): [DRI2] Setup complete
[ 1341.297] (II) NVIDIA(0): [DRI2] VDPAU driver: nvidia
[ 1341.297] (II) Initializing extension Generic Event Extension
[ 1341.297] (II) Initializing extension SHAPE
[ 1341.297] (II) Initializing extension MIT-SHM
[ 1341.297] (II) Initializing extension XInputExtension
[ 1341.297] (II) Initializing extension XTEST
[ 1341.297] (II) Initializing extension BIG-REQUESTS
[ 1341.297] (II) Initializing extension SYNC
[ 1341.297] (II) Initializing extension XKEYBOARD
[ 1341.298] (II) Initializing extension XC-MISC
[ 1341.298] (II) Initializing extension SECURITY
[ 1341.298] (II) Initializing extension XFIXES
[ 1341.298] (II) Initializing extension RENDER
[ 1341.298] (II) Initializing extension RANDR
[ 1341.298] (II) Initializing extension COMPOSITE
[ 1341.298] (II) Initializing extension DAMAGE
[ 1341.298] (II) Initializing extension MIT-SCREEN-SAVER
[ 1341.298] (II) Initializing extension DOUBLE-BUFFER
[ 1341.299] (II) Initializing extension RECORD
[ 1341.299] (II) Initializing extension DPMS
[ 1341.299] (II) Initializing extension Present
[ 1341.299] (II) Initializing extension DRI3
[ 1341.299] (II) Initializing extension X-Resource
[ 1341.299] (II) Initializing extension XVideo
[ 1341.299] (II) Initializing extension XVideo-MotionCompensation
[ 1341.299] (II) Initializing extension GLX
[ 1341.299] (II) Initializing extension GLX
[ 1341.299] (II) Indirect GLX disabled.
[ 1341.299] (II) GLX: Another vendor is already registered for screen 0
[ 1341.299] (II) Initializing extension XFree86-VidModeExtension
[ 1341.299] (II) Initializing extension XFree86-DGA
[ 1341.299] (II) Initializing extension XFree86-DRI
[ 1341.299] (II) Initializing extension DRI2
[ 1341.300] (II) Initializing extension NV-GLX
[ 1341.300] (II) Initializing extension NV-CONTROL
[ 1341.358] (II) config/udev: Adding input device System keyboard multiplexer (/dev/input/event0)
[ 1341.358] (**) System keyboard multiplexer: Applying InputClass "Evdev keyboard"
[ 1341.358] (**) System keyboard multiplexer: Applying InputClass "libinput keyboard catchall"
[ 1341.358] (II) LoadModule: "libinput"
[ 1341.358] (II) Loading /usr/local/lib/xorg/modules/input/libinput_drv.so
[ 1341.368] (II) Module libinput: vendor="X.Org Foundation"
[ 1341.368] compiled for 1.21.1.14, module version = 1.3.0
[ 1341.368] Module class: X.Org XInput Driver
[ 1341.368] ABI class: X.Org XInput driver, version 24.4
[ 1341.368] (II) Using input driver 'libinput' for 'System keyboard multiplexer'
[ 1341.368] (**) System keyboard multiplexer: always reports core events
[ 1341.368] (**) Option "Device" "/dev/input/event0"
[ 1341.375] (II) event0 - System keyboard multiplexer: is tagged by udev as: Keyboard
[ 1341.376] (II) event0 - System keyboard multiplexer: device is a keyboard
[ 1341.377] (II) event0 - System keyboard multiplexer: device removed
[ 1341.377] (**) Option "config_info" "udev:/dev/input/event0"
[ 1341.377] (II) XINPUT: Adding extended input device "System keyboard multiplexer" (type: KEYBOARD, id 6)
[ 1341.377] (**) Option "xkb_rules" "evdev"
[ 1341.395] (II) event0 - System keyboard multiplexer: is tagged by udev as: Keyboard
[ 1341.396] (II) event0 - System keyboard multiplexer: device is a keyboard
[ 1341.397] (II) config/udev: Adding input device System mouse (/dev/input/event1)
[ 1341.397] (**) System mouse: Applying InputClass "libinput pointer catchall"
[ 1341.397] (II) Using input driver 'libinput' for 'System mouse'
[ 1341.397] (**) System mouse: always reports core events
[ 1341.397] (**) Option "Device" "/dev/input/event1"
[ 1341.398] (II) event1 - System mouse: is tagged by udev as: Mouse
[ 1341.398] (II) event1 - System mouse: device is a pointer
[ 1341.399] (II) event1 - System mouse: device removed
[ 1341.399] (II) libinput: System mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[ 1341.399] (II) libinput: System mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[ 1341.399] (II) libinput: System mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[ 1341.399] (**) Option "config_info" "udev:/dev/input/event1"
[ 1341.399] (II) XINPUT: Adding extended input device "System mouse" (type: MOUSE, id 7)
[ 1341.399] (**) Option "AccelerationScheme" "none"
[ 1341.399] (**) System mouse: (accel) selected scheme none/0
[ 1341.399] (**) System mouse: (accel) acceleration factor: 2.000
[ 1341.399] (**) System mouse: (accel) acceleration threshold: 4
[ 1341.400] (II) event1 - System mouse: is tagged by udev as: Mouse
[ 1341.401] (II) event1 - System mouse: device is a pointer
[ 1341.401] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[ 1341.401] (**) Power Button: Applying InputClass "Evdev keyboard"
[ 1341.401] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[ 1341.401] (II) Using input driver 'libinput' for 'Power Button'
[ 1341.401] (**) Power Button: always reports core events
[ 1341.402] (**) Option "Device" "/dev/input/event2"
[ 1341.402] (II) event2 - Power Button: is tagged by udev as: Keyboard
[ 1341.403] (II) event2 - Power Button: device is a keyboard
[ 1341.403] (II) event2 - Power Button: device removed
[ 1341.403] (**) Option "config_info" "udev:/dev/input/event2"
[ 1341.403] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 8)
[ 1341.403] (**) Option "xkb_rules" "evdev"
[ 1341.404] (II) event2 - Power Button: is tagged by udev as: Keyboard
[ 1341.405] (II) event2 - Power Button: device is a keyboard
[ 1341.405] (II) config/udev: Adding input device AT keyboard (/dev/input/event3)
[ 1341.405] (**) AT keyboard: Applying InputClass "Evdev keyboard"
[ 1341.405] (**) AT keyboard: Applying InputClass "libinput keyboard catchall"
[ 1341.405] (II) Using input driver 'libinput' for 'AT keyboard'
[ 1341.405] (**) AT keyboard: always reports core events
[ 1341.405] (**) Option "Device" "/dev/input/event3"
[ 1341.406] (II) event3 - AT keyboard: is tagged by udev as: Keyboard
[ 1341.407] (II) event3 - AT keyboard: device is a keyboard
[ 1341.409] (II) event3 - AT keyboard: device removed
[ 1341.409] (**) Option "config_info" "udev:/dev/input/event3"
[ 1341.409] (II) XINPUT: Adding extended input device "AT keyboard" (type: KEYBOARD, id 9)
[ 1341.409] (**) Option "xkb_rules" "evdev"
[ 1341.410] (II) event3 - AT keyboard: is tagged by udev as: Keyboard
[ 1341.410] (II) event3 - AT keyboard: device is a keyboard
[ 1341.412] (II) config/udev: Adding input device Control Method Lid Switch (/dev/input/event4)
[ 1341.412] (II) No input driver specified, ignoring this device.
[ 1341.412] (II) This device may have been added with another device file.
[ 1341.412] (II) config/udev: Adding input device ASUE140A:01 04F3:3134 Keyboard (/dev/input/event5)
[ 1341.412] (**) ASUE140A:01 04F3:3134 Keyboard: Applying InputClass "Evdev keyboard"
[ 1341.412] (**) ASUE140A:01 04F3:3134 Keyboard: Applying InputClass "libinput keyboard catchall"
[ 1341.412] (II) Using input driver 'libinput' for 'ASUE140A:01 04F3:3134 Keyboard'
[ 1341.412] (**) ASUE140A:01 04F3:3134 Keyboard: always reports core events
[ 1341.412] (**) Option "Device" "/dev/input/event5"
[ 1341.413] (II) event5 - ASUE140A:01 04F3:3134 Keyboard: is tagged by udev as: Keyboard
[ 1341.413] (II) event5 - ASUE140A:01 04F3:3134 Keyboard: device is a keyboard
[ 1341.414] (II) event5 - ASUE140A:01 04F3:3134 Keyboard: device removed
[ 1341.414] (**) Option "config_info" "udev:/dev/input/event5"
[ 1341.415] (II) XINPUT: Adding extended input device "ASUE140A:01 04F3:3134 Keyboard" (type: KEYBOARD, id 10)
[ 1341.415] (**) Option "xkb_rules" "evdev"
[ 1341.416] (II) event5 - ASUE140A:01 04F3:3134 Keyboard: is tagged by udev as: Keyboard
[ 1341.416] (II) event5 - ASUE140A:01 04F3:3134 Keyboard: device is a keyboard
[ 1341.417] (II) config/udev: Adding input device ASUE140A:01 04F3:3134 Mouse (/dev/input/event6)
[ 1341.417] (**) ASUE140A:01 04F3:3134 Mouse: Applying InputClass "libinput pointer catchall"
[ 1341.417] (II) Using input driver 'libinput' for 'ASUE140A:01 04F3:3134 Mouse'
[ 1341.417] (**) ASUE140A:01 04F3:3134 Mouse: always reports core events
[ 1341.417] (**) Option "Device" "/dev/input/event6"
[ 1341.418] (II) event6 - ASUE140A:01 04F3:3134 Mouse: is tagged by udev as: Mouse
[ 1341.419] (II) event6 - ASUE140A:01 04F3:3134 Mouse: device is a pointer
[ 1341.420] (II) event6 - ASUE140A:01 04F3:3134 Mouse: device removed
[ 1341.420] (II) libinput: ASUE140A:01 04F3:3134 Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[ 1341.420] (II) libinput: ASUE140A:01 04F3:3134 Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[ 1341.420] (II) libinput: ASUE140A:01 04F3:3134 Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[ 1341.420] (**) Option "config_info" "udev:/dev/input/event6"
[ 1341.420] (II) XINPUT: Adding extended input device "ASUE140A:01 04F3:3134 Mouse" (type: MOUSE, id 11)
[ 1341.420] (**) Option "AccelerationScheme" "none"
[ 1341.420] (**) ASUE140A:01 04F3:3134 Mouse: (accel) selected scheme none/0
[ 1341.420] (**) ASUE140A:01 04F3:3134 Mouse: (accel) acceleration factor: 2.000
[ 1341.420] (**) ASUE140A:01 04F3:3134 Mouse: (accel) acceleration threshold: 4
[ 1341.421] (II) event6 - ASUE140A:01 04F3:3134 Mouse: is tagged by udev as: Mouse
[ 1341.422] (II) event6 - ASUE140A:01 04F3:3134 Mouse: device is a pointer
[ 1341.423] (II) config/udev: Adding input device ASUE140A:01 04F3:3134 TouchPad (/dev/input/event7)
[ 1341.423] (**) ASUE140A:01 04F3:3134 TouchPad: Applying InputClass "libinput pointer catchall"
[ 1341.423] (**) ASUE140A:01 04F3:3134 TouchPad: Applying InputClass "libinput touchpad catchall"
[ 1341.423] (II) Using input driver 'libinput' for 'ASUE140A:01 04F3:3134 TouchPad'
[ 1341.423] (**) ASUE140A:01 04F3:3134 TouchPad: always reports core events
[ 1341.423] (**) Option "Device" "/dev/input/event7"
[ 1341.424] (II) event7 - ASUE140A:01 04F3:3134 TouchPad: is tagged by udev as: Mouse Touchpad
[ 1341.430] (II) event7 - ASUE140A:01 04F3:3134 TouchPad: device is a touchpad
[ 1341.430] (II) event7 - ASUE140A:01 04F3:3134 TouchPad: device removed
[ 1341.430] (II) libinput: ASUE140A:01 04F3:3134 TouchPad: Step value 0 was provided, libinput Fallback acceleration function is used.
[ 1341.430] (II) libinput: ASUE140A:01 04F3:3134 TouchPad: Step value 0 was provided, libinput Fallback acceleration function is used.
[ 1341.430] (II) libinput: ASUE140A:01 04F3:3134 TouchPad: Step value 0 was provided, libinput Fallback acceleration function is used.
[ 1341.432] (**) Option "config_info" "udev:/dev/input/event7"
[ 1341.432] (II) XINPUT: Adding extended input device "ASUE140A:01 04F3:3134 TouchPad" (type: TOUCHPAD, id 12)
[ 1341.437] (**) Option "AccelerationScheme" "none"
[ 1341.437] (**) ASUE140A:01 04F3:3134 TouchPad: (accel) selected scheme none/0
[ 1341.437] (**) ASUE140A:01 04F3:3134 TouchPad: (accel) acceleration factor: 2.000
[ 1341.437] (**) ASUE140A:01 04F3:3134 TouchPad: (accel) acceleration threshold: 4
[ 1341.438] (II) event7 - ASUE140A:01 04F3:3134 TouchPad: is tagged by udev as: Mouse Touchpad
[ 1341.444] (II) event7 - ASUE140A:01 04F3:3134 TouchPad: device is a touchpad