how can i get rid of driver,that i got from net (source code)

In the nvidia documentation there is a list of the files, but it's not always correct.
What I usually do is:
  • kldunload nvidia and delete /boot/modules/nvidia.ko
  • find files in /usr/local with a name starting with XXX and delete them
  • search in /usr/local/lib, /usr/local/bin, /usr/local/man and /compat/linux for files containing nvidia, NVIDIA or vdpau in the name and delete them (you may want to check against the list in the nvidia docs)
  • rm -rf /usr/local/share/doc/NVIDIA*
  • reinstall (e.g. portupgrade -f) xorg-server libGL (I usually build a package on my box, to have them ready to restore).
  • reinstall the driver and reboot

You can also try restoring the files from XXX-* backups but it could be a pain if many builds have been done.
 
Back
Top