DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1st March 2011
kasumi kasumi is offline
New User
 
Join Date: Mar 2011
Posts: 8
Default nVidia Driver on FreeBSD 8.1 x64?

Hi there.

I'd like to install the graphics driver for my nVidia GTS450 on my FreeBSD-machine. As far as I know, the driver can be installed using the ports, but I always get an error I can't recall at the moment. I'll write it down later.

Then, I downloaded the proprietary driver from nvidia.com, extracted the archive, chmodded it and tried to execute it: Permission denied. But I'm logged on as root, how can that be possible?

Thanks for your help,
Kasumi
Reply With Quote
  #2   (View Single Post)  
Old 2nd March 2011
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

The best way is to install as a port. The nVidia driver overwrites some older files, the port puts the old files back if you deinstall the port.

In any case, I don't know what exactly you're try to execute. The installation required source files to be compiled, libraries to be installed, kernel modules to be loaded, and possibly patches to be applied.
So there are several steps involved in the installation. The port does all of that automatically for you (Which is why I recommend using it).

Quote:
but I always get an error I can't recall at the moment. I'll write it down later.
That would be a great help in trying to resolve the problem!
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 2nd March 2011
kasumi kasumi is offline
New User
 
Join Date: Mar 2011
Posts: 8
Default

I will.

I downloaded the proprietary nVidia driver from nvidia.com.


deneb# make install clean
===> Installink for nvidia-driver-195-36-15
===> nvidia-driver depends on file: /compat/linux/etc/fedora-release - not found
===> Verifying install for /compat/linux/etc/fedora-release in /usr/ports/emulators/linux_base-f10
===> linux_base-f10-10_2 linuxulator is not (kld)loaded
*** Error code 1

Stop in /usr/ports/emulators/linux_base-f10.
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver.
*** Error code 1

Stop in /usr/ports/x11/nvidia-driver.
deneb#

I hope this information helps you.

Thanks!
Reply With Quote
  #4   (View Single Post)  
Old 2nd March 2011
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

You probably just need to load the Linux kernel module. Which is as simple as typing:
# kldload linux

This change is lost when you reboot. To make this change permanent across boots, add "linux_enabled=yes" (without quotes) to your /etc/rc.conf

You don't *need* this by the way, you can also turn Linux support in the nVidia driver with # make config.
This does mean you lose Linux support (For example for games such as Unreal Tournament, Quake 3, Jagged Allience, etc.)
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #5   (View Single Post)  
Old 3rd March 2011
kasumi kasumi is offline
New User
 
Join Date: Mar 2011
Posts: 8
Default

Well, I did
Code:
# kldload linux
and it worked. The driver is now installed. Then, I added "linux_enabled=yes" to rc.conf, but when I startup GDM, the native resolution is something around 640x480.

I do want to play a lot, so I don't want to drop linux support...

EDIT: I thought, maybe the driver IS installed, maybe the default resolution is not set; I tried
Code:
Xorg -configure
and when I want to start gdm now, I get following error:

gdm-binary[1145]: WARNING: GdmDisplay: display lasted 0.somewhat seconds
gdm-binary[1145]: WARNING: GdmDisplay: display lasted 0.somewhat seconds
gdm-binary[1145]: WARNING: GdmDisplay: display lasted 0.somewhat seconds
gdm-binary[1145]: WARNING: GdmDisplay: display lasted 0.somewhat seconds
gdm-binary[1145]: WARNING: GdmDisplay: display lasted 0.somewhat seconds
gdm-binary[1145]: WARNING: GdmDisplay: display lasted 0.somewhat seconds
gdm-binary[1145]: WARNING: GdmDisplay: display lasted 0.somewhat seconds
gdm-binary[1145]: WARNING: GdmDisplay: display lasted 0.somewhat seconds
gdm-binary[1145]: WARNING: GdmLocalDisplayFactory: maximum number of X display failures reached: check X server log for errors

Last edited by kasumi; 3rd March 2011 at 09:44 PM.
Reply With Quote
  #6   (View Single Post)  
Old 5th March 2011
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

Make sure the nvidia driver is loaded, as with the linux module you can load it with kldload(8):
# kldload nvidia

To load the module at boot, add nvidia_load="YES" to /boot/loader.conf (Create file if it doesn't exist).

Then make sure you're using the nvidia driver and not the nv driver.
You can change this in your xorg.conf(5)

If that doesn't work, post your xorg log file. It's located at /var/log/Xorg.0.log
Please post this between [code] [/code] tags.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD amd64 nVidia Binary Driver vermaden FreeBSD General 5 2nd January 2010 08:25 PM
FreeBSD amd64 nVidia driver incoming ... vermaden News 1 17th November 2009 12:09 AM
Is nVidia driver stable? rex FreeBSD General 14 31st October 2008 06:40 PM
NVIDIA driver fails to load, freebsd 7.0 mc_i2020 FreeBSD General 18 18th July 2008 01:12 PM
FreeBSD NVidia driver installation maxrussell FreeBSD Ports and Packages 44 15th July 2008 10:39 PM


All times are GMT. The time now is 05:00 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick