Solved Nvidia: no screen found(EE)

Hi, I am using FreeBSD 11.2-RELEASE-p2 (I just upgraded from 11.1).
My laptop is Dell Latitude 3550, with apparently two graphic cards:

Code:
# pciconf -vl |grep -A4  vga
vgapci0@pci0:0:2:0:     class=0x030000 card=0x06321028 chip=0x16168086 rev=0x09 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'HD Graphics 5500'
    class      = display
    subclass   = VGA
--
vgapci1@pci0:4:0:0:     class=0x030200 card=0x06321028 chip=0x134010de rev=0xa2 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'GM108M [GeForce 830M]'
    class      = display
    subclass   = 3D

This is my relevant xorg configuration:

Code:
# cat /usr/local/etc/X11/xorg.conf.d/driver-nvidia.conf
Section "Device"
        Identifier "Card0"
        Driver     "nvidia"
        #BusID    "PCI:0:4:0:0"
EndSection

This is my loader.conf:


Code:
# cat /boot/loader.conf
loader_logo="beastie"
nvidia_load="YES"
if_iwm_load="YES"
iwm7265fw_load="YES"

And this is my rc.conf:

Code:
# cat /etc/rc.conf
syslogd_flags="-ss"
sendmail_enable="NONE"
hostname="tulip"
keymap="it"
ifconfig_re0="DHCP"
sshd_enable="YES"
ntpd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
dbus_enable="YES"
hald_enable="YES"
gdm_enable="NO"
gnome_enable="NO"
wlans_iwm0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
linux_enable="YES"
linux64_enable="YES"

When I manually run startx, I get this:

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

I both tried with nvidia-driver-390.77 and by manually compiling driver from sources, with no luck.

I have to say, I get same errors with 11.1

I read Thread 67179, and I ask confirm that basically I just need to wait.

Thank you!
 
You need to check whether it is possible to select the Nvidia card in your bios settings. If there is no such setting then forget about it. (Or search this forum for Optimus advice, I'm not going to repeat it.)
 
As shkhln mentioned, you might need to configure your BIOS to toggle which integrated graphics card is activated. However, looking over the specs of your laptop, it states that the graphics card is Intel HD Graphics 5500. I would suggest using this by default for Xorg. You should be able to load the drivers for it by adding one of the following to /boot/loader.conf:
Code:
i915kms_load="YES"

Once you do that, you should remove /usr/local/etc/X11/xorg.conf.d/driver-nvidia.conf. Then, create the file /usr/local/etc/X11/xorg.conf.d/10-intel.conf(Xorg loads the conf files in numerical order according to the filenames) and add the following (Change 10- to something else if it already exists in another filename):
Code:
Section "Device"
        Identifier "Card0"
        Driver     "intel"
        BusID    "PCI:0:0:2:0"
EndSection
 
Hi,

this is now my /boot/loader.conf

Code:
loader_logo="beastie"
if_iwm_load="YES"
iwm7265Dfw_load="YES"
i915kms_load="YES"

and this is my only file in /usr/local/etc/X11/xorg.conf.d/ folder:


Code:
Section "Device"
        Identifier "Card0"
        Driver     "intel"
        BusID    "PCI:0:0:2:0"
EndSection

I got error:

Code:
# grep EE /var/log/Xorg.0.log
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   272.958] (EE) Failed to load module "intel" (module does not exist, 0)
[   272.958] (EE) No drivers available.
[   272.958] (EE)
[   272.958] (EE) no screens found(EE)
[   272.958] (EE)
[   272.958] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   272.958] (EE)
[   272.959] (EE) Server terminated with error (1). Closing log file.

so, I installed xf86-video-intel, and now the (complete) error is still:

Code:
[   891.250]
X.Org X Server 1.18.4
Release Date: 2016-07-19
[   891.250] X Protocol Version 11, Revision 0
[   891.250] Build Operating System: FreeBSD 11.1-RELEASE-p12 amd64
[   891.250] Current Operating System: FreeBSD tulip 11.2-RELEASE-p2 FreeBSD 11.2-RELEASE-p2 #0: Tue Aug 14 21:45:40 UTC 2018     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
[   891.250] Build Date: 07 August 2018  09:32:59AM
[   891.250]
[   891.250] Current version of pixman: 0.34.0
[   891.250]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   891.250] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   891.250] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Aug 17 10:12:19 2018
[   891.250] (==) Using config directory: "/usr/local/etc/X11/xorg.conf.d"
[   891.250] (==) No Layout section.  Using the first Screen section.
[   891.250] (==) No screen section available. Using defaults.
[   891.250] (**) |-->Screen "Default Screen Section" (0)
[   891.250] (**) |   |-->Monitor "<default monitor>"
[   891.250] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
[   891.250] (**) |   |-->Device "Card0"
[   891.250] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[   891.250] (==) Automatically adding devices
[   891.250] (==) Automatically enabling devices
[   891.250] (==) Not automatically adding GPU devices
[   891.250] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   891.250] (==) 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/
[   891.250] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[   891.250] (II) The server relies on devd to provide the list of input devices.
        If no devices become available, reconfigure devd or disable AutoAddDevices.
[   891.250] (II) Loader magic: 0x80fc90
[   891.250] (II) Module ABI versions:
[   891.250]    X.Org ANSI C Emulation: 0.4
[   891.250]    X.Org Video Driver: 20.0
[   891.250]    X.Org XInput driver : 22.1
[   891.250]    X.Org Server Extension : 9.0
[   891.250] (--) PCI:*(0:0:2:0) 8086:1616:1028:0632 rev 9, Mem @ 0xf5000000/16777216, 0xd0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/65536
[   891.250] (--) PCI: (0:4:0:0) 10de:1340:1028:0632 rev 162, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000d000/128
[   891.250] (II) LoadModule: "glx"
[   891.250] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[   891.251] (II) Module glx: vendor="X.Org Foundation"
[   891.251]    compiled for 1.18.4, module version = 1.0.0
[   891.251]    ABI class: X.Org Server Extension, version 9.0
[   891.251] (==) AIGLX enabled
[   891.251] (II) LoadModule: "intel"
[   891.251] (II) Loading /usr/local/lib/xorg/modules/drivers/intel_drv.so
[   891.252] (II) Module intel: vendor="X.Org Foundation"
[   891.252]    compiled for 1.18.4, module version = 2.99.917
[   891.252]    Module class: X.Org Video Driver
[   891.252]    ABI class: X.Org Video Driver, version 20.0
[   891.252] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[   891.252] (II) intel: Driver for Intel(R) HD Graphics
[   891.252] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[   891.252] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[   891.252] (--) Using syscons driver with X support (version 2.0)
[   891.252] (--) using VT number 9

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

kldstat's output:

Code:
Id Refs Address            Size     Name
1   29 0xffffffff80200000 20647f8  kernel
2    1 0xffffffff82266000 28ee8    if_iwm.ko
3    1 0xffffffff8228f000 fbf20    iwm7265Dfw.ko
4    1 0xffffffff8238b000 e5b78    i915kms.ko
5    2 0xffffffff82471000 4c98     iicbb.ko
6    5 0xffffffff82476000 6b00     iicbus.ko
7    2 0xffffffff8247d000 3690     iic.ko
8    2 0xffffffff82481000 73320    drm2.ko


What could I try?
Thank you again!
 
Last edited:
You could try as was suggested -- check in BIOS, which card you want to use. Currently you configure your system to use your Intel, but from your log it would seem Intel is disabled in your hardware.
So work out that before trying anything else. Find it in your BIOS how you enable Intel instead of nVidia.
 
Hi, sorry for my delay. I checked on my BIOS, I confirm I have no option to select specific graphic adapter.
I understand that the only solution is to use drm-stable-kmod or drm-next-kmod.
According to Thread 64731, it seems I have two options right now:

1 - switch to STABLE
2 - wait until September 2018

correct? :)

Thank you
 
Hi shklhln, thank you, I just installed drm-next-kmod from ports (generally I use packages).
Driver compilation went fine; I added:

Code:
kld_list="/boot/modules/i915kms.ko"

to rc.conf, and rebooted.

I noticed that module is correctly loaded:

Code:
# kldstat
Id Refs Address            Size     Name
 1   44 0xffffffff80200000 20647f8  kernel
 2    1 0xffffffff82266000 28ee8    if_iwm.ko
 3    1 0xffffffff8228f000 fbf20    iwm7265Dfw.ko
 4    1 0xffffffff8238b000 e5b78    i915kms.ko
 5    2 0xffffffff82471000 4c98     iicbb.ko
 6    5 0xffffffff82476000 6b00     iicbus.ko
 7    2 0xffffffff8247d000 3690     iic.ko
 8    2 0xffffffff82481000 73320    drm2.ko
 9    1 0xffffffff82dfa000 3698     ng_ubt.ko
10    5 0xffffffff82dfe000 9a20     netgraph.ko
11    1 0xffffffff82e08000 8e78     ng_hci.ko
12    3 0xffffffff82e11000 95c      ng_bluetooth.ko
13    1 0xffffffff82e12000 bc0e     ng_l2cap.ko
14    1 0xffffffff82e1e000 176a8    ng_btsocket.ko
15    1 0xffffffff82e36000 1d40     ng_socket.ko

but I still get same errors on /var/log/Xorg.0.log:

Code:
[    14.655] (II) Loader magic: 0x80fc90
[    14.655] (II) Module ABI versions:
[    14.655]    X.Org ANSI C Emulation: 0.4
[    14.655]    X.Org Video Driver: 20.0
[    14.655]    X.Org XInput driver : 22.1
[    14.655]    X.Org Server Extension : 9.0
[    14.655] (--) PCI:*(0:0:2:0) 8086:1616:1028:0632 rev 9, Mem @ 0xf5000000/16777216, 0xd0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/65536
[    14.655] (--) PCI: (0:4:0:0) 10de:1340:1028:0632 rev 162, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000d000/128
[    14.656] (II) LoadModule: "glx"
[    14.656] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[    14.663] (II) Module glx: vendor="X.Org Foundation"
[    14.663]    compiled for 1.18.4, module version = 1.0.0
[    14.663]    ABI class: X.Org Server Extension, version 9.0
[    14.663] (==) AIGLX enabled
[    14.663] (II) LoadModule: "intel"
[    14.663] (II) Loading /usr/local/lib/xorg/modules/drivers/intel_drv.so
[    14.665] (II) Module intel: vendor="X.Org Foundation"
[    14.665]    compiled for 1.18.4, module version = 2.99.917
[    14.665]    Module class: X.Org Video Driver
[    14.665]    ABI class: X.Org Video Driver, version 20.0
[    14.665] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[    14.666] (II) intel: Driver for Intel(R) HD Graphics
[    14.666] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[    14.666] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[    14.666] (--) Using syscons driver with X support (version 2.0)
[    14.666] (--) using VT number 9

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