No devices detected/no screens found(EE)

Hello,

I'm trying to make X work on FreeBSD 12.2-STABLE r369362 with a GeForce GT 1030.

# cat /boot/loader.conf
[...]
kern.vty="vt"
nvidia_load="YES"

# portversion -v | grep nvidia
[Reading data from pkg(8) ... - 320 packages found - done]
nvidia-driver-460.56 = up-to-date with port
nvidia-xconfig-460.56 = up-to-date with port

# make showconfig
===> The following configuration options are available for xorg-drivers-7.7_6:
[...]
EVDEV=on: Install evdev input driver
KEYBOARD=on: Install keyboard input driver
LIBINPUT=on: Install libinput input driver
MOUSE=on: Install mouse input driver
SCFB=on: Install scfb video driver
VESA=on: Install vesa video driver

# cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 460.56


Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"

# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

# generated from default
Identifier "Keyboard0"
Driver "keyboard"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection


Here is what seems to be relevant from the log file:

# cat /var/log/Xorg.0.log
[ 1540.691]
X.Org X Server 1.20.9
X Protocol Version 11, Revision 0
[ 1540.691] Build Operating System: FreeBSD 12.2-STABLE amd64
[...]
[ 1540.695] (II) Loader magic: 0x434a80
[ 1540.695] (II) Module ABI versions:
[ 1540.695] X.Org ANSI C Emulation: 0.4
[ 1540.695] X.Org Video Driver: 24.1
[ 1540.696] X.Org XInput driver : 24.1
[ 1540.696] X.Org Server Extension : 10.0
[ 1540.696] (!!) More than one possible primary device found
[ 1540.696] (--) PCI: (1@0:0:0) 10de:1d01:1458:375d rev 161, Mem @ 0xfc000000/16777216, 0xd0000000/268435456, 0xce000000/33554432, I/O @ 0x0000c800/128, BIOS @ 0x????????/65536
[ 1540.696] (--) PCI: (4@0:4:0) 102b:0532:15d9:a711 rev 10, Mem @ 0xfa000000/16777216, 0xfdffc000/16384, 0xfe000000/8388608, BIOS @ 0x????????/65536
[ 1540.697] (II) LoadModule: "glx"
[ 1540.697] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[ 1540.701] (II) Module glx: vendor="X.Org Foundation"
[ 1540.701] compiled for 1.20.9, module version = 1.0.0
[ 1540.701] ABI class: X.Org Server Extension, version 10.0
[ 1540.701] (II) LoadModule: "nvidia"
[ 1540.701] (II) Loading /usr/local/lib/xorg/modules/drivers/nvidia_drv.so
[ 1540.702] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 1540.702] compiled for 1.6.99.901, module version = 1.0.0
[ 1540.702] Module class: X.Org Video Driver
[ 1540.702] (II) NVIDIA dlloader X Driver 460.56 Tue Feb 23 23:25:01 UTC 2021
[ 1540.702] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 1540.703] (--) Using syscons driver with X support (version 2.0)
[ 1540.703] (--) using VT number 9

[ 1540.705] (EE) No devices detected.
[ 1540.705] (EE)
Fatal server error:
[ 1540.705] (EE) no screens found(EE)


Would you please advise?
 
Thank you for the quick reply!

Onboard video is disabled, display is connected to GT 1030, nvidia-modeset loaded:

# dmesg | grep -i nvidia
nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 460.56 Tue Feb 23 23:19:04 UTC 2021
nvidia0: <GeForce GT 1030> on vgapci0
vgapci0: child nvidia0 requested pci_enable_io
vgapci0: child nvidia0 requested pci_enable_io
hdac0: <NVIDIA (0x0fb8) HDA Controller> mem 0xfdefc000-0xfdefffff irq 19 at device 0.1 on pci1
hdacc0: <NVIDIA (0x0081) HDA CODEC> at cad 0 on hdac0
hdaa0: <NVIDIA (0x0081) Audio Function Group> at nid 1 on hdacc0
pcm0: <NVIDIA (0x0081) (HDMI/DP 8ch)> at nid 4 on hdaa0
pcm1: <NVIDIA (0x0081) (HDMI/DP 8ch)> at nid 5 on hdaa0


Still, the log shows the same error:

# cat /var/log/Xorg.0.log
[ 253.351]
X.Org X Server 1.20.9
X Protocol Version 11, Revision 0
[...]
[ 253.361] (II) LoadModule: "nvidia"
[ 253.361] (II) Loading /usr/local/lib/xorg/modules/drivers/nvidia_drv.so
[ 253.362] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 253.362] compiled for 1.6.99.901, module version = 1.0.0
[ 253.362] Module class: X.Org Video Driver
[ 253.362] (II) NVIDIA dlloader X Driver 460.56 Tue Feb 23 23:25:01 UTC 2021
[ 253.362] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 253.362] (--) Using syscons driver with X support (version 2.0)
[ 253.362] (--) using VT number 9

[ 253.375] (EE) No devices detected.
[ 253.375] (EE)
Fatal server error:
[ 253.376] (EE) no screens found(EE)
[ 253.376] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 253.376] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 253.376] (EE)
[ 253.392] (EE) Server terminated with error (1). Closing log file.
 
Maybe you need a BusID directive in the Device section?
There are some cases the driver seems not to find the correct one on its own.

Example: BusID “PCI:41:0:0”

pciconf -lv |grep vgapci -A5
tells you which one to use.
 
What nvidia-smi prints?
# nvidia-smi
Mon Mar 1 19:29:27 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.56 Driver Version: 460.56 CUDA Version: N/A |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 GeForce GT 1030 Off | 00000000:01:00.0 Off | N/A |
| 0% 25C P0 N/A / 30W | 0MiB / 2000MiB | 1% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
 
Maybe you need a BusID directive in the Device section?
There are some cases the driver seems not to find the correct one on its own.

Example: BusID “PCI:41:0:0”

pciconf -lv |grep vgapci -A5
tells you which one to use.
# pciconf -lv |grep vgapci -A5
vgapci0@pci0:1:0:0: class=0x030000 card=0x375d1458 chip=0x1d0110de rev=0xa1 hdr=0x00
vendor = 'NVIDIA Corporation'
device = 'GP108 [GeForce GT 1030]'
class = display
subclass = VGA
hdac0@pci0:1:0:1: class=0x040300 card=0x375d1458 chip=0x0fb810de rev=0xa1 hdr=0x00
--
vgapci1@pci0:4:4:0: class=0x030000 card=0xa71115d9 chip=0x0532102b rev=0x0a hdr=0x00
vendor = 'Matrox Electronics Systems Ltd.'
device = 'MGA G200eW WPCM450'
class = display
subclass = VGA


FWIW, X did work fine in this same hardware setup under 12.1-STABLE. Yesterday I updated from source, after which neither the new nor the old kernel booted. I installed an additional hard drive and installed on the new hard drive 12.2-STABLE and imported the old zpool - but haven't been able to start X.
 
FWIW, X did work fine in this same hardware setup under 12.1-STABLE. Yesterday I updated from source, after which neither the new nor the old kernel booted. I installed an additional hard drive and installed on the new hard drive 12.2-STABLE and imported the old zpool - but haven't been able to start X.
Try rebuilding the kernel driver for a change. Also, there is no 12.2-STABLE, it's just 12-STABLE.
 
Try rebuilding the kernel driver for a change. Also, there is no 12.2-STABLE, it's just 12-STABLE.
Do you mean rebuild kernel (and world)? That's what I did, and the new kernel did not boot (nor did the old).

This computer thinks it's 12.2-STABLE:

# uname -v
FreeBSD 12.2-STABLE r369362 GENERIC
 
Does the new kernel just hang, or does it panic somewhere, giving a hint what might have gone wrong?
If this problem persists, maybe open a specific thread to find out what is wrong?

Your nvidia card is PCI ID 0, and not some other, so I think it is not a missing BusID entry, but some other problem.
 
Do you mean rebuild kernel (and world)? That's what I did, and the new kernel did not boot (nor did the old).
No, the x11/nvidia-driver port.

This computer thinks it's 12.2-STABLE:

# uname -v
FreeBSD 12.2-STABLE r369362 GENERIC
Computer is in the wrong there. (You are running a build from the stable/12 branch with changes that eventually will go into the 12.3 release.)
 
Could you please extract the last startup sequence in the /var/log/Xorg.0.log and post it?
There must be something wrong after the nvidia driver starts, but that is hard to see if only part of that log is shown.
 
Could you please extract the last startup sequence in the /var/log/Xorg.0.log and post it?
There must be something wrong after the nvidia driver starts, but that is hard to see if only part of that log is shown.
Here it is:

# cat /var/log/Xorg.0.log
[ 10011.952]
X.Org X Server 1.20.9
X Protocol Version 11, Revision 0
[ 10011.952] Build Operating System: FreeBSD 12.2-STABLE amd64
[ 10011.952] Current Operating System: FreeBSD buffrescue.[...] 12.2-STABLE FreeBSD 12.2-STABLE r369362 GENERIC amd64
[ 10011.953] Build Date: 01 March 2021 02:20:56AM
[ 10011.953]
[ 10011.953] Current version of pixman: 0.40.0
[ 10011.953] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 10011.953] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 10011.953] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Mar 1 22:14:00 2021
[ 10011.954] (==) Using config file: "/etc/X11/xorg.conf"
[ 10011.954] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[ 10011.954] (==) ServerLayout "Layout0"
[ 10011.954] (**) |-->Screen "Screen0" (0)
[ 10011.954] (**) | |-->Monitor "Monitor0"
[ 10011.955] (**) | |-->Device "Device0"
[ 10011.955] (**) |-->Input Device "Keyboard0"
[ 10011.955] (**) |-->Input Device "Mouse0"
[ 10011.955] (==) Automatically adding devices
[ 10011.955] (==) Automatically enabling devices
[ 10011.955] (==) Not automatically adding GPU devices
[ 10011.955] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 10011.955] (==) 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
[ 10011.955] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[ 10011.955] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[ 10011.955] (WW) Disabling Keyboard0
[ 10011.955] (WW) Disabling Mouse0
[ 10011.955] (II) Loader magic: 0x434a80
[ 10011.955] (II) Module ABI versions:
[ 10011.955] X.Org ANSI C Emulation: 0.4
[ 10011.955] X.Org Video Driver: 24.1
[ 10011.956] X.Org XInput driver : 24.1
[ 10011.956] X.Org Server Extension : 10.0
[ 10011.956] (!!) More than one possible primary device found
[ 10011.956] (--) PCI: (1@0:0:0) 10de:1d01:1458:375d rev 161, Mem @ 0xfc000000/16777216, 0xd0000000/268435456, 0xce000000/33554432, I/O @ 0x0000c800/128, BIOS @ 0x????????/65536
[ 10011.956] (--) PCI: (4@0:4:0) 102b:0532:15d9:a711 rev 10, Mem @ 0xfa000000/16777216, 0xfdffc000/16384, 0xfe000000/8388608, BIOS @ 0x????????/65536
[ 10011.956] (II) LoadModule: "glx"
[ 10011.957] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[ 10011.960] (II) Module glx: vendor="X.Org Foundation"
[ 10011.960] compiled for 1.20.9, module version = 1.0.0
[ 10011.960] ABI class: X.Org Server Extension, version 10.0
[ 10011.960] (II) LoadModule: "nvidia"
[ 10011.960] (II) Loading /usr/local/lib/xorg/modules/drivers/nvidia_drv.so
[ 10011.961] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 10011.961] compiled for 1.6.99.901, module version = 1.0.0
[ 10011.961] Module class: X.Org Video Driver
[ 10011.962] (II) NVIDIA dlloader X Driver 460.56 Tue Feb 23 23:25:01 UTC 2021
[ 10011.962] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 10011.962] (--) Using syscons driver with X support (version 2.0)
[ 10011.962] (--) using VT number 9

[ 10011.967] (EE) No devices detected.
[ 10011.967] (EE)
Fatal server error:
[ 10011.967] (EE) no screens found(EE)
[ 10011.967] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 10011.967] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 10011.967] (EE)


Thank you for your patience!
 
The message "More than one possible primary device found" wonders me, but I think it is a result of the BIOS somehow not fully disabling the onboard Matrox VGA.
However I have no idea why the Nvidia driver does not load.

Before the Nvidia driver becomes active (-> messages with uppercase "NVIDIA", there should be loaded a few other modules (here from my xorg log)
Code:
[    45.761] (II) Loading sub module "fb"
[    45.761] (II) LoadModule: "fb"
[ 45.761] (II) Loading /usr/local/lib/xorg/modules/libfb.so
[ 45.768] (II) Module fb: vendor="X.Org Foundation"
[ 45.768] compiled for 1.20.9, module version = 1.0.0
[ 45.768] ABI class: X.Org ANSI C Emulation, version 0.4
[ 45.768] (II) Loading sub module "wfb"
[ 45.768] (II) LoadModule: "wfb"
[ 45.769] (II) Loading /usr/local/lib/xorg/modules/libwfb.so
[ 45.771] (II) Module wfb: vendor="X.Org Foundation"
[ 45.771] compiled for 1.20.9, module version = 1.0.0
[ 45.771] ABI class: X.Org ANSI C Emulation, version 0.4
[ 45.771] (II) Loading sub module "ramdac"
[ 45.771] (II) LoadModule: "ramdac"
[ 45.771] (II) Module "ramdac" already built-in
[ 45.777] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 45.777] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32

I am wondering, are the libraries /usr/local/lib/xorg/modules/libfb.so and /usr/local/lib/xorg/modules/libwfb.so present on your computer? Don't know if it matters...

Above you see a warning about a missing kernel arbiter, which confuses me a bit, because on my computer is no secondary graphics card.
I have no experience with dual-graphics-card-setups. I have read people say that one needs to provide/install a driver (possibly x11-drivers/xf86-video-mga, but not sure - the driver might be outdated) even when not using the secondary graphics card. No idea whether it matters.

If this doesn't help, maybe it is best to wait a bit, the gurus are asleep now...
 
The message "More than one possible primary device found" wonders me, but I think it is a result of the BIOS somehow not fully disabling the onboard Matrox VGA.
However I have no idea why the Nvidia driver does not load.
[...]

I am wondering, are the libraries /usr/local/lib/xorg/modules/libfb.so and /usr/local/lib/xorg/modules/libwfb.so present on your computer? Don't know if it matters...
Yes, they both are:

# ls -l /usr/local/lib/xorg/modules/libfb.so
-rwxr-xr-x 1 root wheel 112792 Mar 1 02:24 /usr/local/lib/xorg/modules/libfb.so

# ls -l /usr/local/lib/xorg/modules/libwfb.so
-rwxr-xr-x 1 root wheel 123464 Mar 1 02:24 /usr/local/lib/xorg/modules/libwfb.so
 
well if it does not work with a BusID “PCI:1:0:0” directive in the nvidia cards' "Device" section of the xorg.conf, which practically only says "do not search for cards, just use that card you find at these PCI coordinates", then I'd be really curious what the gurus will say tomorrow,,,
 
  • shkhin meant the kernel module. The graphics driver. Merged this he wrote "kernel driver". This is common "nerd slang".
  • Since 12-STABLE is source-only IIRC, this looks strange to me; because 12-STABLE implies you built kernel & world from source, incl. graphics drivers; correct?
  • You must not install any kernel modules from packages (*-kmod) on any *-STABLE revision. You didn't, correct?
  • The point is: you built the graphics driver from ports(7) on that very same system, good. The stable branch should be -- well, very stable; that will be the next 12.3 revision, it receives updates every few days. Doesn't mean it is bug-free.
  • BIOS: legacy or UEFI? Please try harder to make sure there is only one graphics port. Disable the others. Once we succeed to have something working, you can try to enable the 2nd graphics port and maybe find a configuration where you can switch between both or maybe even run both concurrently. But let's start with the most basic config possible.
  • xorg.conf: ideally we should start without and the X11 server should start; it's automagic is very very good, often better than the average human.
 
  • shkhin meant the kernel module. The graphics driver. Merged this he wrote "kernel driver". This is common "nerd slang".
  • Since 12-STABLE is source-only IIRC, this looks strange to me; because 12-STABLE implies you built kernel & world from source, incl. graphics drivers; correct?
I have downloaded FreeBSD-12.2-STABLE-amd64-20210225-r369362-memstick.img and installed it from a USB stick. No packages installed, everything built from ports on the same system, including the nvidia driver.
  • You must not install any kernel modules from packages (*-kmod) on any *-STABLE revision. You didn't, correct?
I did not.
  • The point is: you built the graphics driver from ports(7) on that very same system, good. The stable branch should be -- well, very stable; that will be the next 12.3 revision, it receives updates every few days. Doesn't mean it is bug-free.
STABLE has been very stable in my experience.
  • BIOS: legacy or UEFI? Please try harder to make sure there is only one graphics port. Disable the others. Once we succeed to have something working, you can try to enable the 2nd graphics port and maybe find a configuration where you can switch between both or maybe even run both concurrently. But let's start with the most basic config possible.
It's legacy. The motherboard is an old SUPERMICRO MBD-H8SGL-F-O ATX.

I have toggled to onboard VGA in the BIOS. Verified that the monitor input is VGA, not HDMI (which is connected to the NVIDIA card).

Also, commented out nvidia:

# cat /boot/loader.conf
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
opensolaris_load="YES"
zfs_load="YES"
kern.vty="vt"
# nvidia_load="YES"
# nvidia-modeset_load="YES"


Also, deleted existing /etc/X11/xorg.conf (generated previously with nvidia-xconfig(1)).

  • xorg.conf: ideally we should start without and the X11 server should start; it's automagic is very very good, often better than the average human.
Well, tried to start X again, but failed:

# cat /var/log/Xorg.0.log
[ 1006.365]
X.Org X Server 1.20.9
X Protocol Version 11, Revision 0
[ 1006.365] Build Operating System: FreeBSD 12.2-STABLE amd64
[ 1006.365] Current Operating System: FreeBSD buffrescue.[...] 12.2-STABLE FreeBSD 12.2-STABLE r369362 GENERIC amd64
[ 1006.366] Build Date: 01 March 2021 02:20:56AM
[ 1006.366]
[ 1006.366] Current version of pixman: 0.40.0
[ 1006.366] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 1006.366] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 1006.367] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Mar 2 01:55:06 2021
[ 1006.390] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[ 1006.390] (==) No Layout section. Using the first Screen section.
[ 1006.390] (==) No screen section available. Using defaults.
[ 1006.390] (**) |-->Screen "Default Screen Section" (0)
[ 1006.391] (**) | |-->Monitor "<default monitor>"
[ 1006.391] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 1006.391] (==) Automatically adding devices
[ 1006.391] (==) Automatically enabling devices
[ 1006.392] (==) Not automatically adding GPU devices
[ 1006.392] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 1006.392] (==) 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
[ 1006.392] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[ 1006.392] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 1006.392] (II) Loader magic: 0x434a80
[ 1006.392] (II) Module ABI versions:
[ 1006.392] X.Org ANSI C Emulation: 0.4
[ 1006.392] X.Org Video Driver: 24.1
[ 1006.392] X.Org XInput driver : 24.1
[ 1006.392] X.Org Server Extension : 10.0
[ 1006.393] (!!) More than one possible primary device found
[ 1006.393] (--) PCI: (1@0:0:0) 10de:1d01:1458:375d rev 161, Mem @ 0xfc000000/16777216, 0xd0000000/268435456, 0xce000000/33554432, I/O @ 0x0000c800/128, BIOS @ 0x????????/65536
[ 1006.393] (--) PCI: (4@0:4:0) 102b:0532:15d9:a711 rev 10, Mem @ 0xfa000000/16777216, 0xfdffc000/16384, 0xfe000000/8388608, BIOS @ 0x????????/65536
[ 1006.393] (II) LoadModule: "glx"
[ 1006.394] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[ 1006.397] (II) Module glx: vendor="X.Org Foundation"
[ 1006.397] compiled for 1.20.9, module version = 1.0.0
[ 1006.397] ABI class: X.Org Server Extension, version 10.0
[ 1006.397] (==) Matched modesetting as autoconfigured driver 0
[ 1006.397] (==) Matched scfb as autoconfigured driver 1
[ 1006.397] (==) Matched vesa as autoconfigured driver 2
[ 1006.397] (==) Assigned the driver to the xf86ConfigLayout
[ 1006.398] (II) LoadModule: "modesetting"
[ 1006.398] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[ 1006.405] (II) Module modesetting: vendor="X.Org Foundation"
[ 1006.405] compiled for 1.20.9, module version = 1.20.9
[ 1006.405] Module class: X.Org Video Driver
[ 1006.405] ABI class: X.Org Video Driver, version 24.1
[ 1006.405] (II) LoadModule: "scfb"
[ 1006.406] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so
[ 1006.412] (II) Module scfb: vendor="X.Org Foundation"
[ 1006.412] compiled for 1.20.9, module version = 0.0.5
[ 1006.412] ABI class: X.Org Video Driver, version 24.1
[ 1006.412] (II) LoadModule: "vesa"
[ 1006.412] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
[ 1006.425] (II) Module vesa: vendor="X.Org Foundation"
[ 1006.425] compiled for 1.20.9, module version = 2.5.0
[ 1006.425] Module class: X.Org Video Driver
[ 1006.425] ABI class: X.Org Video Driver, version 24.1
[ 1006.425] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 1006.425] (II) scfb: driver for wsdisplay framebuffer: scfb
[ 1006.425] (II) VESA: driver for VESA chipsets: vesa
[ 1006.430] (--) Using syscons driver with X support (version 2.0)
[ 1006.430] (--) using VT number 9

[ 1006.458] (WW) Falling back to old probe method for modesetting
[ 1006.458] (EE) open /dev/dri/card0: No such file or directory
[ 1006.458] (WW) Falling back to old probe method for scfb
[ 1006.458] scfb trace: probe start
[ 1006.458] scfb trace: probe done
[ 1006.458] (WW) Falling back to old probe method for modesetting
[ 1006.459] (EE) open /dev/dri/card0: No such file or directory
[ 1006.459] (WW) Falling back to old probe method for scfb
[ 1006.459] scfb trace: probe start
[ 1006.459] scfb trace: probe done
[ 1006.459] (EE) No devices detected.
[ 1006.459] (EE)
Fatal server error:
[ 1006.459] (EE) no screens found(EE)
 
I have looked at the sources of the xf86-video-mga driver. It supports your onboard vga chip. So it might be interesting to pkg install the driver and look what happens.

With my currently installed Nvidia cards I was not able to use HDMI or DP.
No idea why... could be defective cable, monitor, card or driver. I am using DVI or VGA. In case you have a VGA or DVI cable, maybe try it?
 
I have looked at the sources of the xf86-video-mga driver. It supports your onboard vga chip. So it might be interesting to pkg install the driver and look what happens.

With my currently installed Nvidia cards I was not able to use HDMI or DP.
No idea why... could be defective cable, monitor, card or driver. I am using DVI or VGA. In case you have a VGA or DVI cable, maybe try it?
Just installed x11-drivers/xf86-video-mga, getting the same error.
 
I'd suggest to trace it (with truss or ktrace). Pay attention to what happens with /dev/nvidia* files, see if there are any failing ioctls.
I fell back on the onboard video (VGA) which can't start X either. Unfortunately, I have no expertise to interpret truss(1) output. I have attached the file.
 

Attachments

  • startx_truss.txt
    14.6 KB · Views: 53
Also, deleted existing /etc/X11/xorg.conf (generated previously with nvidia-xconfig(1)).
Without an X configuration file for the NVIDIA driver there won't be a use of the full potential of the GPU, all attempts to diagnose the problem without loading the driver are useless. As the Xorg.0.log in #19 shows no NVIDIA driver is loaded. Please put the following minimal configuration into /usr/local/etc/X11/xorg.conf.d/nvidia.conf, restart Xorg and report back:

Code:
Section "Device"
    Identifier "Card0"
    Driver     "nvidia"
EndSection
 
Top