Solved Unsupported device GTX 660

Hello everyone,
I installed FreeBSD for the first time and everything seems to work, except the x server.
When I try to run startx my system gives me an error.
Code:
Fatal server error: (EE) no screens found(EE)
In /var/log/Xorg.0.log it says:
Code:
NV: Ignoring unsupported device 0x10de11c0 (GK [Geforce GTX 660]) at 01@00:00:0
No devices detected.
After I installed /usr/ports/x11/nvidia-driver, it still refuses to work.
Another thing I don't really understand, why is the file /etc/X11/xorg.conf missing? Is that intended? I created a config file using
Code:
nvidia-xconfig
and it still gives me the same errors.
I don't know what to do. Could you please help me?

P.S. The GTX 660 is the right graphics card.
 
You need to load the Nvidia driver with kldload nvidia-modeset. Adding the line nvidia-modeset_load="YES" to the file /boot/loader.conf should load the driver automatically at boot.

Another thing I don't really understand, why is the file /etc/X11/xorg.conf missing? Is that intended?

Short answer (the one you probably need at the moment): xorg.conf was relegated to handling specialized setups/corner-cases quite a long time ago. For most hardware, everything should just work when you start X.

Longer answer:
Unlike Linux distributions, the *BSDs separate the operating system itself from third-party, user-installed applications/libraries/etc. The only things that go in /etc are configuration files for the operating system itself; the ports system and pkg(8) install software to /usr/local, and all configuration files for your installed software are found in /usr/local/etc. Custom X configurations go in /usr/local/etc/X11/xorg.conf.d
 
Thank you for your answer.
Running kldload nvidia-modeset produces an error.
Code:
KLD nvidia-modeset.ko: depends on nvidia - not available or version mismatch
linker_load_file: Unsupported file type
kldload: an error occurred while loading the module. Please check dmesg(8) for more details.
dmesg prints
Code:
KLD nvidia-modeset.ko: depends on nvidia - not available or version mismatch
linker_load_file: Unsupported file type

//EDIT: I created a file with nvidia-xconfig and moved it to /usr/local/etc/X11/xorg.conf.d/. Now startx works.
//EDIT2: Nvm, after I rebooted. I get the same errors. .__.
But this time kldload also prints
Code:
nvidai0: <GeForce GTX 660> on vgapci0
vgapci0: child nvidia0 requested pci_enable_io
vgapci0: child nvidia0 requested pci_enable_io
nvidia0: detached
//EDIT3: I used pkg install nvidia-driver and updated a fresh installed driver. (Don't know why this installation was obsolete.) kldload nvidia-modeset worked without errors and startx now brings my fancy KDE back. This is getting insane.
 
If you haven't already, try rebooting to see if the module loads without error on its own, or to at least make sure you can load the module manually. You may also try loading the linux module, though I don't believe it's necessary(?)

I have an Nvidia GTX 660 in my FreeBSD media center/server running FreeBSD 11.0, so you can at least be sure it will work eventually. ;)
 
Back
Top