Solved Xorg -configure error

I get "Number of created screens does not match number of detected devices. Configuration failed." when doing # Xorg -configure.

In this case I have a BenQ monitor and a Nvidia 8800GT card. I installed x11-servers/xorg-server, then x11-drivers/xorg-drivers (just keyboard and mouse options, not video), then x11/nvidia-driver, then x11/xinit, then x11/xauth, then x11-fonts/xorg-fonts, and then x11-fonts/webfonts.

I run # Xorg -configure after installing all that and get the error.

Any insight?
 
Last edited by a moderator:
Do not run Xorg -configure. Create /usr/local/etc/X11/xorg.conf.d/10-nvidia.conf with
Code:
Section "Device"
        Identifier "NVIDIA Card"
        VendorName "NVIDIA Corporation"
        Driver "nvidia"
EndSection
and your done!

I believe newer versions of NVIDIA's driver do not support your graphics card anymore. Use x11/nvidia-driver-340 instead.
 
OK, I've tried both solutions with no avail. I'm trying to run openbox with tint2 and when I try only the solutions mentioned above, I still get the same error. It seems I need a /etc/X11/xorg.conf file so that openbox can use it. If I do Xorg -configure, I get an error but a xorg.conf file that I can use for openbox to load. Any suggestions for a custom xorg.conf file for openbox?
 
As mentioned above, first make sure you have x11/nvidia-driver-340 installed as the newer driver will no longer work with your card. The only thing you should need in your xorg.conf file is the following:
Code:
Section "Device"
        Identifier      "Card0"
        Driver          "nvidia"
EndSection
Make sure you also have
Code:
nvidia_load="YES"
in your boot/loader.conf file. That should be all you need for X to work.
 
As mentioned above, first make sure you have x11/nvidia-driver-340 installed as the newer driver will no longer work with your card. The only thing you should need in your xorg.conf file is the following:
Code:
Section "Device"
        Identifier      "Card0"
        Driver          "nvidia"
EndSection
Make sure you also have
Code:
nvidia_load="YES"
in your boot/loader.conf file. That should be all you need for X to work.

This solved my problem, thanks!
 
Maybe this is out of topic, I apologize. But how do I add TrueType fonts if I don't use /etc/X11/xorg.conf file? Handbook says that I need to load freetype module in that file. What is the correct new way to do that?
 
Maybe this is out of topic, I apologize. But how do I add TrueType fonts if I don't use /etc/X11/xorg.conf file? Handbook says that I need to load freetype module in that file. What is the correct new way to do that?
X will load the module automatically when needed.
 
Thanks, protocelt!

What about fonts? Suppose I installed webfonts and want to use them. The old way was to add a corresponding line to /etc/X11/xorg.conf. What is the new way?
 
Thanks, protocelt!

What about fonts? Suppose I installed webfonts and want to use them. The old way was to add a corresponding line to /etc/X11/xorg.conf. What is the new way?
X will also pick up installed fonts automatically as well. With a few exceptions most everything that used to be manually added to an xorg.conf file is now handled automatically. Your chances are high that whatever worked before needing the file will now work without it just the same.
 
Back
Top