Страница 1 из 1
NVidia Drivers and OpenGL
Добавлено: 2007-06-10 11:21:42
Alucard
Поставил вчера драйвера NVidia из портов, отредактировал файл /etc/X11/xorg.conf заменил везьде используемый драйвер с "nv" на "nvidia", а так же Load "glx".... после этого попробовал запустить Quake3, выдал ошибку что не может быть инициализирован OpenGL...
glxinfo пишет следующую ошибку:
Код: Выделить всё
/libexec/ld-elf.so.1: /usr/X11R6/lib/libGL.so.1: Undefined symbol "_nv001211gl"
В чем может быть проблема?
Добавлено: 2007-06-10 12:08:49
vintovkin
xorg.conf
в студию!!
Добавлено: 2007-06-10 12:27:46
Alex Keda
в том, что надо было ставить нвидиа-скрипт из портов и запускать его.
там не всё так гладко
Добавлено: 2007-06-10 12:38:33
Гость
vintovkin писал(а):xorg.conf в студию!!
Код: Выделить всё
# **********************************************************************
# Module section -- this section is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#
Section "Module"
# This loads the DBE extension module.
Load "dbe" # Double buffer extension
Load "bitmap"
Load "dri"
Load "extmod"
Load "glx"
Load "speedo"
Load "type1"
# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
Load "freetype"
EndSection
# **********************************************************************
# Files section. This allows default font and rgb paths to be set
# **********************************************************************
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
# FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/local/"
# FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
# FontPath "/usr/X11R6/lib/X11/fonts/freefont/"
FontPath "/usr/X11R6/lib/X11/fonts/win-ttf"
# ModulePath "/usr/X11R6/lib/modules"
EndSection
# **********************************************************************
# Server flags section.
# **********************************************************************
Section "ServerFlags"
# Option "NoTrapSignals"
# Option "DontVTSwitch"
# Option "DontZap"
# Option "Dont Zoom"
# Option "DisableVidModeExtension"
# Option "AllowNonLocalXvidtune"
# Option "DisableModInDev"
# Option "AllowNonLocalModInDev"
EndSection
# **********************************************************************
# Input devices
# **********************************************************************
# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************
Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xorg"
Option "XkbModel" "microsoft"
Option "XkbLayout" "us,ru"
Option "XkbVariant" "basic,winkeys"
Option "XkbOptions" "grp:ctrl_shift_toggle,numpad:microsoft"
EndSection
# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************
Section "InputDevice"
# Identifier and driver
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "Auto" # Auto detect
Option "Device" "/dev/sysmouse"
# Option "Protocol" "Xqueue"
# Option "Resolution" "256"
# Option "BaudRate" "9600"
# Option "SampleRate" "150"
Option "ZAxisMapping" "4 5 6 7"
EndSection
# **********************************************************************
# Other input device sections
# this is optional and is required only if you
# are using extended input devices. This is for example only. Refer
# to the xorg.conf man page for a description of the options.
# **********************************************************************
#
# Section "InputDevice"
# Identifier "Mouse2"
# Driver "mouse"
# Option "Protocol" "MouseMan"
# Option "Device" "/dev/mouse2"
# EndSection
#
# Section "InputDevice"
# Identifier "spaceball"
# Driver "magellan"
# Option "Device" "/dev/cua0"
# EndSection
#
# Section "InputDevice"
# Identifier "spaceball2"
# Driver "spaceorb"
# Option "Device" "/dev/cua0"
# EndSection
#
# Section "InputDevice"
# Identifier "touchscreen0"
# Driver "microtouch"
# Option "Device" "/dev/ttyS0"
# Option "MinX" "1412"
# Option "MaxX" "15184"
# Option "MinY" "15372"
# Option "MaxY" "1230"
# Option "ScreenNumber" "0"
# Option "ReportingMode" "Scaled"
# Option "ButtonNumber" "1"
# Option "SendCoreEvents"
# EndSection
#
# Section "InputDevice"
# Identifier "touchscreen1"
# Driver "elo2300"
# Option "Device" "/dev/ttyS0"
# Option "MinX" "231"
# Option "MaxX" "3868"
# Option "MinY" "3858"
# Option "MaxY" "272"
# Option "ScreenNumber" "0"
# Option "ReportingMode" "Scaled"
# Option "ButtonThreshold" "17"
# Option "ButtonNumber" "1"
# Option "SendCoreEvents"
# EndSection
# **********************************************************************
# Monitor section
# **********************************************************************
# Any number of monitor sections may be present
Section "Monitor"
Identifier "Sony"
# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.
HorizSync 31.5 - 64.3
# HorizSync 30-64 # multisync
# HorizSync 31.5, 35.2 # multiple fixed sync frequencies
# HorizSync 15-25, 30-50 # multiple ranges of sync frequencies
# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.
VertRefresh 50-100
EndSection
# **********************************************************************
# Graphics device section
# **********************************************************************
# Any number of graphics device sections may be present
# Standard VGA Device:
Section "Device"
Identifier "Standard VGA"
VendorName "Unknown"
BoardName "Unknown"
# The chipset line is optional in most cases. It can be used to override
# the driver's chipset detection, and should not normally be specified.
# Chipset "generic"
# The Driver line must be present. When using run-time loadable driver
# modules, this line instructs the server to load the specified driver
# module. Even when not using loadable driver modules, this line
# indicates which driver should interpret the information in this section.
Driver "nvidia"
# The BusID line is used to specify which of possibly multiple devices
# this section is intended for. When this line isn't present, a device
# section can only match up with the primary video device. For PCI
# devices a line like the following could be used. This line should not
# normally be included unless there is more than one video device
# intalled.
# BusID "PCI:0:10:0"
# VideoRam 256
# Clocks 25.2 28.3
EndSection
# Device configured by xorgconfig:
Section "Device"
Identifier "GeForce2 MX400 PCI"
Driver "nvidia"
VideoRam 32768
# Insert Clocks lines here if appropriate
EndSection
# **********************************************************************
# Screen sections
# **********************************************************************
# Any number of screen sections may be present. Each describes
# the configuration of a single screen. A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.
Section "Screen"
Identifier "Screen 1"
Device "GeForce2 MX400 PCI"
Monitor "Sony"
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
lissyara писал(а):надо было ставить нвидиа-скрипт из портов и запускать его
Всмысле?
Добавлено: 2007-06-10 12:56:21
Alex Keda
в прямом
Добавлено: 2007-06-10 13:25:56
Гость
Anonymous писал(а):vintovkin писал(а):xorg.conf в студию!!
Код: Выделить всё
# **********************************************************************
# Module section -- this section is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#
Section "Module"
# This loads the DBE extension module.
Load "dbe" # Double buffer extension
Load "bitmap"
Load "dri"
Load "extmod"
Load "glx"
Load "speedo"
Load "type1"
# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
Load "freetype"
EndSection
# **********************************************************************
# Files section. This allows default font and rgb paths to be set
# **********************************************************************
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
# FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/local/"
# FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
# FontPath "/usr/X11R6/lib/X11/fonts/freefont/"
FontPath "/usr/X11R6/lib/X11/fonts/win-ttf"
# ModulePath "/usr/X11R6/lib/modules"
EndSection
# **********************************************************************
# Server flags section.
# **********************************************************************
Section "ServerFlags"
# Option "NoTrapSignals"
# Option "DontVTSwitch"
# Option "DontZap"
# Option "Dont Zoom"
# Option "DisableVidModeExtension"
# Option "AllowNonLocalXvidtune"
# Option "DisableModInDev"
# Option "AllowNonLocalModInDev"
EndSection
# **********************************************************************
# Input devices
# **********************************************************************
# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************
Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xorg"
Option "XkbModel" "microsoft"
Option "XkbLayout" "us,ru"
Option "XkbVariant" "basic,winkeys"
Option "XkbOptions" "grp:ctrl_shift_toggle,numpad:microsoft"
EndSection
# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************
Section "InputDevice"
# Identifier and driver
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "Auto" # Auto detect
Option "Device" "/dev/sysmouse"
# Option "Protocol" "Xqueue"
# Option "Resolution" "256"
# Option "BaudRate" "9600"
# Option "SampleRate" "150"
Option "ZAxisMapping" "4 5 6 7"
EndSection
# **********************************************************************
# Other input device sections
# this is optional and is required only if you
# are using extended input devices. This is for example only. Refer
# to the xorg.conf man page for a description of the options.
# **********************************************************************
#
# Section "InputDevice"
# Identifier "Mouse2"
# Driver "mouse"
# Option "Protocol" "MouseMan"
# Option "Device" "/dev/mouse2"
# EndSection
#
# Section "InputDevice"
# Identifier "spaceball"
# Driver "magellan"
# Option "Device" "/dev/cua0"
# EndSection
#
# Section "InputDevice"
# Identifier "spaceball2"
# Driver "spaceorb"
# Option "Device" "/dev/cua0"
# EndSection
#
# Section "InputDevice"
# Identifier "touchscreen0"
# Driver "microtouch"
# Option "Device" "/dev/ttyS0"
# Option "MinX" "1412"
# Option "MaxX" "15184"
# Option "MinY" "15372"
# Option "MaxY" "1230"
# Option "ScreenNumber" "0"
# Option "ReportingMode" "Scaled"
# Option "ButtonNumber" "1"
# Option "SendCoreEvents"
# EndSection
#
# Section "InputDevice"
# Identifier "touchscreen1"
# Driver "elo2300"
# Option "Device" "/dev/ttyS0"
# Option "MinX" "231"
# Option "MaxX" "3868"
# Option "MinY" "3858"
# Option "MaxY" "272"
# Option "ScreenNumber" "0"
# Option "ReportingMode" "Scaled"
# Option "ButtonThreshold" "17"
# Option "ButtonNumber" "1"
# Option "SendCoreEvents"
# EndSection
# **********************************************************************
# Monitor section
# **********************************************************************
# Any number of monitor sections may be present
Section "Monitor"
Identifier "Sony"
# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.
HorizSync 31.5 - 64.3
# HorizSync 30-64 # multisync
# HorizSync 31.5, 35.2 # multiple fixed sync frequencies
# HorizSync 15-25, 30-50 # multiple ranges of sync frequencies
# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.
VertRefresh 50-100
EndSection
# **********************************************************************
# Graphics device section
# **********************************************************************
# Any number of graphics device sections may be present
# Standard VGA Device:
Section "Device"
Identifier "Standard VGA"
VendorName "Unknown"
BoardName "Unknown"
# The chipset line is optional in most cases. It can be used to override
# the driver's chipset detection, and should not normally be specified.
# Chipset "generic"
# The Driver line must be present. When using run-time loadable driver
# modules, this line instructs the server to load the specified driver
# module. Even when not using loadable driver modules, this line
# indicates which driver should interpret the information in this section.
Driver "nvidia"
# The BusID line is used to specify which of possibly multiple devices
# this section is intended for. When this line isn't present, a device
# section can only match up with the primary video device. For PCI
# devices a line like the following could be used. This line should not
# normally be included unless there is more than one video device
# intalled.
# BusID "PCI:0:10:0"
# VideoRam 256
# Clocks 25.2 28.3
EndSection
# Device configured by xorgconfig:
Section "Device"
Identifier "GeForce2 MX400 PCI"
Driver "nvidia"
VideoRam 32768
# Insert Clocks lines here if appropriate
EndSection
# **********************************************************************
# Screen sections
# **********************************************************************
# Any number of screen sections may be present. Each describes
# the configuration of a single screen. A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.
Section "Screen"
Identifier "Screen 1"
Device "GeForce2 MX400 PCI"
Monitor "Sony"
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
lissyara писал(а):надо было ставить нвидиа-скрипт из портов и запускать его
Всмысле?
не уверен что поможет ,но пробуй ...
хуже не будет=))
даёш команды:
Код: Выделить всё
#rm /etc/X11/xorg.conf
#Xorg -configure
#cp /root/xorg.conf.new /etc/X11/xorg.conf
#startx
Добавлено: 2007-06-10 15:40:23
Alucard
Гость писал(а):не уверен что поможет ,но пробуй ...
хуже не будет=))
Как и ождалось не помогло... glxinfo так же выдавал ошибку.... решел снести драйвер и поставить заново, сделал make deinstall и make install, после этого иксы вообще не стартуют, пишет ошибка в библиотеках OpenGL... (с "nv" стартует вроде-бы нормально)
Вообще есть возможность нормально переставить nvidia drivers?... а то сносить систему и ставить опять все программы заново не очень-то хочется....
Добавлено: 2007-06-10 23:02:27
Toptyg
хех из портов не ставлю , скачай с офф сайта дистриб, как тебе выше писали, можешь мою тему глянуть как я ставил последную версию драйвера.
Сисмему низя переставлять, драйвера разные пробуй ставить.
Добавлено: 2007-06-11 0:17:44
Alex Keda
вообще, делать логические выводы умеем ?
/usr/ports/x11/nvidia-xconfig
Добавлено: 2007-06-11 11:19:47
Alucard
lissyara писал(а):вообще, делать логические выводы умеем ? /usr/ports/x11/nvidia-xconfig
Вобще-то я с самого начала так делал (повторный запуск nvidia-xconfig позволил запустить иксы нормально с драйвером "nvidia" но OpenGL так и не работает
)....
и все равно glxinfo выдает :
Код: Выделить всё
/libexec/ld-elf.so.1: /usr/X11R6/lib/libGL.so.1: Undefined symbol "_nv001211gl"
Toptyg писал(а):скачай с офф сайта дистриб, как тебе выше писали, можешь мою тему глянуть как я ставил последную версию драйвера.
Обычно тоже ставил дрова с оффсайта, на 5.4 все было OK на 6.2 не собираются (compat 5.x установлен)....
Добавлено: 2007-06-15 14:10:41
dark_mag
а что пишет?
я ставил на фрю 6.2 дрова с оф сайта NVIDIA-FreeBSD-x86-1.0-9631.tar.gz, правда с небольшой правкой переменных в мейкфайлах.
Добавлено: 2007-06-19 21:09:04
Din
Помимо прочего надо перекомпилить ядро с убранным AGP а дрова нвидии компилить без поддержки FreeBSD AGP
Код: Выделить всё
ядро
#device agp # support several AGP chipsets
драйвер
# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for nvidia-driver-1.0.9746_5
_OPTIONS_READ=nvidia-driver-1.0.9746_5
WITHOUT_FREEBSD_AGP=true < это
WITHOUT_VM86_INT10CALL=true
WITHOUT_ACPI=true
WITH_LINUX=true
Добавлено: 2007-06-20 8:59:47
Alucard
dark_mag писал(а):а что пишет?
Код: Выделить всё
===> src (install)
install -o root -g wheel -m 555 nvidia.ko /boot/modules
kldxref /boot/modules
===> lib (install)
===> lib/libGL (install)
===> lib/libnvidia-tls (install)
===> lib/libGLcore (install)
===> lib/libXvMCNVIDIA (install)
===> lib/compat (install)
===> lib/compat/libGL (install)
===> lib/compat/libnvidia-tls (install)
===> lib/compat/libGLcore (install)
===> x11 (install)
===> x11/driver (install)
*** Error code 71
Stop in /usr/distr/NVIDIA-FreeBSD-x86-1.0-7184/x11/driver.
*** Error code 1
Stop in /usr/distr/NVIDIA-FreeBSD-x86-1.0-7184/x11.
*** Error code 1
Stop in /usr/distr/NVIDIA-FreeBSD-x86-1.0-7184.
Хех... а эту проблему с nividia-драйверами я все-таки решил... надо было создать в директории /lib/modules две поддиректории drivers и extensions... вот так... Q3 запускается..
Добавлено: 2007-07-03 22:24:37
Alex Keda
кстати - тоже столкнулся с необходимостью руками создавать директорию extensions (оно вместо неё файл создаёт)
до гучи - последняя версия драйвера вызывала падение иксов по signal 11 при попытке заюзать opengl - лечиться отключением glx в конфиге, либо откатом на предполседнюю версию...
Добавлено: 2007-07-04 10:51:38
anatolik.kiev
Привет Всем,у меня была такая же проблема.
Я ее решил так: взял переставил дрова на nvidia меньшей версией(стояли nvidia-driver-9631,а я переставил на nvidia-driver-7184)
P.S.Попробуй сконфигурировать работу драйвера с помощью nvidia-xconfig
Удачи
Добавлено: 2007-07-04 10:55:47
Alex Keda
хе - юзал, тока diff старого и нового файла показал два отличия - и те в отсупах - в числе пробелов.
я и руками неплохо справился
))
однако - пашет нормально тока на старой версии