Solved Xserver died during startup X

Hi FreeBSD users,
Things is i am going to using NVidia card (GT730) for my PC as Handbook say: http://docs.freebsd.org/doc/7.3-RELEASE/usr/share/doc/en/articles/compiz-fusion/nvidia-setup.html
So, I install the latest driver:
Code:
pkg install x11/nvidia-driver
And this is my rc.conf:
Code:
hostname="seven" 
ifconfig_bce0="DHCP" 
local_unbound_enable="YES" 
sshd_enable="YES" 
moused_enable="YES" 
ntpd_enable="YES" 
powerd_enable="YES" 
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable 
dumpdev="AUTO" 
zfs_enable="YES" 

# KDE support 
dbus_enable="YES" 
hald_enable="YES" 

# enable KDM 
kdm4_enable="YES" 
# webcamd requires the cuse4bsd or cuse kernel module, depending on 
# how webcamd was compiled. 
webcamd_enable="YES" 

# using the kernel modules for bridged or host-only networking add this 
vboxnet_enable="YES" 

# load rules in /etc/devfs.rules add the following: 
devfs_system_ruleset="system" 

# for linux compatibility to be enabled at boot time 
linux_enable="YES"
And my xorg.conf (generated by nvidia-xconfig):
Code:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig 
# nvidia-xconfig:  version 355.11  (root@101amd64-quarterly-job-06)  Mon Jun  6 03:30:56 UTC 2016 


Section "ServerLayout" 
 Identifier  "X.org Configured" 
 Screen  0  "Screen0" 0 0 
 InputDevice  "Mouse0" "CorePointer" 
 InputDevice  "Keyboard0" "CoreKeyboard" 
EndSection 

Section "Files" 
 ModulePath  "/usr/local/lib/xorg/modules" 
 FontPath  "/usr/local/share/fonts/misc/" 
 FontPath  "/usr/local/share/fonts/TTF/" 
 FontPath  "/usr/local/share/fonts/OTF/" 
 FontPath  "/usr/local/share/fonts/Type1/" 
 FontPath  "/usr/local/share/fonts/100dpi/" 
 FontPath  "/usr/local/share/fonts/75dpi/" 
 FontPath  "/usr/local/share/fonts/Caladea/" 
 FontPath  "/usr/local/share/fonts/Carlito/" 
 FontPath  "/usr/local/share/fonts/Droid/" 
 FontPath  "/usr/local/share/fonts/GentiumBasic/" 
 FontPath  "/usr/local/share/fonts/Liberation/" 
 FontPath  "/usr/local/share/fonts/cantarell/" 
 FontPath  "/usr/local/share/fonts/cyrillic/" 
 FontPath  "/usr/local/share/fonts/dejavu/" 
 FontPath  "/usr/local/share/fonts/encodings/" 
 FontPath  "/usr/local/share/fonts/kanjistrokeorders/" 
 FontPath  "/usr/local/share/fonts/util/" 
 FontPath  "/usr/local/share/fonts/wqy" 
EndSection 

Section "Module" 
 Load  "glx" 
EndSection 

Section "InputDevice" 
 Identifier  "Keyboard0" 
 Driver  "kbd" 
EndSection 

Section "InputDevice" 
 Identifier  "Mouse0" 
 Driver  "mouse" 
 Option  "Protocol" "auto" 
 Option  "Device" "/dev/sysmouse" 
 Option  "ZAxisMapping" "4 5 6 7" 
EndSection 

Section "Monitor" 
 Identifier  "Monitor0" 
 VendorName  "Monitor Vendor" 
 ModelName  "Monitor Model" 
 ModeLine  "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -hsync +vsync 
EndSection 

Section "Device" 

 ### Available Driver options are:- 
 ### Values: <i>: integer, <f>: float, <bool>: "True"/"False", 
 ### <string>: "String", <freq>: "<f> Hz/kHz/MHz", 
 ### <percent>: "<f>%" 
 ### [arg]: arg optional 
 #Option  "ShadowFB"  # [<bool>] 
 #Option  "DefaultRefresh"  # [<bool>] 
 #Option  "ModeSetClearScreen"  # [<bool>] 
 Identifier  "Card0" 
 Driver  "nvidia" 
EndSection 

Section "Screen" 
 Identifier  "Screen0" 
 Device  "Card0" 
 Monitor  "Monitor0" 
 DefaultDepth  24 
 SubSection  "Display" 
 Viewport  0 0 
 Depth  1 
 EndSubSection 
 SubSection  "Display" 
 Viewport  0 0 
 Depth  4 
 EndSubSection 
 SubSection  "Display" 
 Viewport  0 0 
 Depth  8 
 EndSubSection 
 SubSection  "Display" 
 Viewport  0 0 
 Depth  15 
 EndSubSection 
 SubSection  "Display" 
 Viewport  0 0 
 Depth  16 
 EndSubSection 
 SubSection  "Display" 
 Viewport  0 0 
 Depth  24 
 EndSubSection 
 SubSection  "Display" 
 Viewport  0 0 
 Depth  24 
 Modes  "1920x1080@60" 
 EndSubSection 
EndSection
But when I reboot PC, I got:
Code:
Xserver died during startup X server for display :0 cannot be started, session disabled.
So I thought if i uses the wrong driver. And as https://forums.freebsd.org/threads/50620/ .
I remove the nvidia-driver but instead with nvidia-driver-340 but still not fine. (put my Xorg.0.log after change the driver from nvidia-driver to nvidia-driver-340: http://paste.ubuntu.com/19998794/)
First post. any help appreciate.
 
This is old information. Use the handbook: 5.4. Xorg Configuration
Thank you for your reply,
Yes, I configure xorg.conf use this handbook before I use the Nvidia card. And it's generated by
Code:
Xorg -configure
Er, but what if i want to use Nvidia card, I modify the file line :
Code:
Driver      "vesa"
to
Code:
Driver     "nvidia"
, and install the nvidia driver this error throw...

(and is that means the card is not compatible to my PC?)
 
Remove xorg.conf. Create /usr/local/etc/X11/xorg.conf.d/driver-nvidia.conf:
Code:
Section "Device" 
 Identifier  "Card0" 
 Driver  "nvidia" 
EndSection
 
Remove xorg.conf. Create /usr/local/etc/X11/xorg.conf.d/driver-nvidia.conf:
Code:
Section "Device"
Identifier  "Card0"
Driver  "nvidia"
EndSection
Still not fine. And why I need create driver-nvidia.conf? I can't configure it in xorg.conf. And there is no file in /usr/local/etc/X11/xorg.conf.d/.
 
A modern Xorg doesn't need xorg.conf anymore. And you only need this file to force the usage of the NVidia driver.
 
I thought this problem is not because of configure file and driver, but with the device is not support.
the driver load fine and configure file is generated by nvidia driver. but still No devices detected is actually tell me that device can't be distinguished.
 
Thanks for all reply. Sorry for my later response.
Yeah, I reinstall the x11/nvidia-driver. and this is dmesg
Code:
dmesg | grep -i nvidia
hdac0: <NVIDIA (0x0e0f) HDA Controller> mem 0xdcffc000-0xdcffffff irq 50 at device 0.1 on pci7
hdacc0: <NVIDIA (0x0051) HDA CODEC> at cad 0 on hdac0
hdaa0: <NVIDIA (0x0051) Audio Function Group> at nid 1 on hdacc0
pcm0: <NVIDIA (0x0051) (HDMI/DP 8ch)> at nid 4 on hdaa0
pcm1: <NVIDIA (0x0051) (HDMI/DP 8ch)> at nid 5 on hdaa0
pcm2: <NVIDIA (0x0051) (HDMI/DP 8ch)> at nid 6 on hdaa0
and
Code:
dmesg | grep -i vga
vgapci0: <VGA-compatible display> port 0xec80-0xecff mem 0xdd000000-0xddffffff,0xc8000000-0xcfffffff,0xc6000000-0xc7ffffff irq 40 at device 0.0 on pci7
vgapci1: <VGA-compatible display> mem 0xd0000000-0xd07fffff,0xde7fc000-0xde7fffff,0xde800000-0xdeffffff irq 19 at device 3.0 on pci8
vgapci1: Boot video device
(for all in http://paste.ubuntu.com/20118212/)
It seems that nvidia device has been detected right, but why i have No devices detected?

And when I reboot, can not go into KDE, and still
Code:
kdm: X server for display :0 cannot be started, section disabled
before login.

Edit: cause I move xorg.conf to config directory: /usr/local/etc/X11/xorg.conf.d Xorg.0.log has a little change, and for new: http://paste.ubuntu.com/20120722/
 
And when I reboot, can not go into KDE,
That's to be expected. If Xorg doesn't work, anything that runs on top of it won't magically make it working.

Edit: cause I move xorg.conf to config directory: /usr/local/etc/X11/xorg.conf.d Xorg.0.log has a little change, and for new: http://paste.ubuntu.com/20120722/
Please stop creating or using xorg.conf. It's not needed any more. You only need that driver-nvidia.conf file.

I don't understand why it's not detected properly though. You now have the correct driver for the card so it should just work. Looking through the dmesg(1) output I do see an NVidia card but it unfortunately doesn't show the type. Can you post the output of pciconf -lv? Hopefully it's simply a mix up of the exact type of card.
 
Code:
vgapci0@pci0:6:0:0:    class=0x030000 card=0x111810de chip=0x128710de rev=0xa1 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'GK208 [GeForce GT 730]'
    class      = display
    subclass   = VGA
hdac0@pci0:6:0:1:    class=0x040300 card=0x111810de chip=0x0e0f10de rev=0xa1 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'GK208 HDMI/DP Audio Controller'
    class      = multimedia
    subclass   = HDA
vgapci1@pci0:8:3:0:    class=0x030000 card=0x02351028 chip=0x0532102b rev=0x0a hdr=0x00
    vendor     = 'Matrox Electronics Systems Ltd.'
    device     = 'MGA G200eW WPCM450'
    class      = display
    subclass   = VGA
(for all in http://paste.ubuntu.com/20163493/)
 
It's the right card with the right driver. I also see Matrox, I'm guessing that's the onboard video. Make sure that's disabled in the BIOS, and check if you connected your display to the NVidia card and not the onboard video.

Make sure there's no xorg.conf anywhere (/etc/X11/, /usr/local/etc/X11/). The only file would be the driver-nvidia.conf created earlier.
 
OMG. Fortunately for me, The problem solved. I disabled the Matrox video card in BIOS and it works. I'm soooooo careless i should disabled the integrated graphics immediately what if i need use external graphics card...
Thanks for all reply. thanks.
 
Back
Top