OK, you need to install nvidia driver from ports:
Code:
cd /usr/ports/nvidia-driver
sudo make install clean
and you need to edit your xorg.conf file
/etc/X11/xorg.conf
Code:
Section "Module"
# This loads the DBE extension module.
Load "dbe" # Double buffer extension
# This loads the font modules
Load "type1"
Load "freetype"
# Load "xtt"
# This loads the GLX module
Load "glx"
# This loads the DRI module
Load "dri" #not nessacery
Load "bitmap"
Load "extmod"
Load "GLcore" #not nessacery
EndSection
Section "Files"
FontPath "/usr/local/lib/X11/fonts/misc/"
FontPath "/usr/local/lib/X11/fonts/TTF/"
FontPath "/usr/local/lib/X11/fonts/OTF"
FontPath "/usr/local/lib/X11/fonts/Type1/"
FontPath "/usr/local/lib/X11/fonts/100dpi/"
FontPath "/usr/local/lib/X11/fonts/75dpi/"
FontPath "/usr/local/lib/X11/fonts/local/"
# FontPath "/usr/local/lib/X11/fonts/Speedo/"
# FontPath "/usr/local/lib/X11/fonts/TrueType/"
# FontPath "/usr/local/lib/X11/fonts/freefont/"
EndSection
Section "ServerFlags"
EndSection
Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xorg"
Option "XkbModel" "pc101"
Option "XkbLayout" "lv"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "Auto" # Auto detect
Option "Device" "/dev/sysmouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Samsung Monitor"
HorizSync 31.5 - 82.0
VertRefresh 40-150
EndSection
Section "Device"
Identifier "Nvidia"
Driver "nvidia"
Option "NvAgp" "3"
#VideoRam 262144
# Insert Clocks lines here if appropriate
EndSection
Section "Screen"
Identifier "Screen 1"
Device "Nvidia"
Monitor "Samsung Monitor"
DefaultDepth 24
Subsection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
EndSection
Section "ServerLayout"
Identifier "Simple Layout"
Screen "Screen 1"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection
# Section "DRI"
# Mode 0666
# EndSection
here's my xorg.conf file
I marked red lines you should change in your xorg.conf
I might forgot something, but eh, ask and i will answer
also if you compile custom kernel, then leave
device agp commented