View previous topic :: View next topic |
Author |
Message |
remix l33t
Joined: 28 Apr 2004 Posts: 797 Location: hawaii
|
Posted: Fri Jul 24, 2009 4:21 am Post subject: Please help me get Xorg working with nvidia driver |
|
|
Xorg used to work very well with nvidia driver, then i updated the system to use the new modularized xorg.
here is what i got.
x11-base/xorg-x11-7.2
x11-drivers/nvidia-drivers-71.86.09
also tried with
x11-drivers/nvidia-drivers-96.43.13
anything higher than those versions are not supposed to work with my video card, which is an old agp nvidia card.
also, my mouse and keyboard aren't working when i get X to work using driver 'nv'
Code: | # **********************************************************************
# 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
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
# Load "type1"
Load "freetype"
# Load "xtt"
# This loads the GLX module
# Load "glx"
# This loads the DRI module
# Load "dri"
EndSection
# **********************************************************************
# Files section. This allows default font and rgb paths to be set
# **********************************************************************
Section "Files"
# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)
#
FontPath "/usr/share/fonts/misc/"
# FontPath "/usr/share/fonts/TTF/"
# FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
# The module search path. The default path is shown here.
# ModulePath "/usr/lib/modules"
EndSection
# **********************************************************************
# Input devices
# **********************************************************************
# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************
Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************
Section "InputDevice"
# Identifier and driver
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2" # PS/2 Mouse
Option "Device" "/dev/input/mice"
# Option "Resolution" "256"
Option "ZAxisMapping" "4 5"
EndSection
# **********************************************************************
# Monitor section
# **********************************************************************
# Any number of monitor sections may be present
Section "Monitor"
Identifier "My Monitor"
HorizSync 45 - 50
VertRefresh 50-70
EndSection
# **********************************************************************
# Graphics device section
# **********************************************************************
Section "Device"
Identifier "NVIDIA GeForce"
Driver "nv"
#VideoRam 65536
# 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 "NVIDIA GeForce"
Monitor "My Monitor"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "1360x768" "1024x768" "800x600"
ViewPort 0 0
EndSubsection
EndSection
# **********************************************************************
# ServerLayout sections.
# **********************************************************************
Section "ServerLayout"
# The Identifier line must be present
Identifier "Simple Layout"
Screen "Screen 1"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection
# Section "DRI"
# Mode 0666
# EndSection
|
can someone help me? _________________ help the needy |
|
Back to top |
|
|
sebaro Veteran
Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
Posted: Fri Jul 24, 2009 4:59 am Post subject: |
|
|
Did you add "nvidia" to VIDEO_CARDS and only "evdev" to INPUT_DEVICES in make.conf?
Did you emerge xorg-server with "hal" flag on?
Here's my xorg.conf:
Code: | # XORG-1.5
Section "Module"
Load "dbe"
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection
Load "glx"
EndSection
Section "Files"
FontPath "/usr/share/fonts/misc:unscaled"
FontPath "/usr/share/fonts/100dpi:unscaled"
FontPath "/usr/share/fonts/75dpi:unscaled"
FontPath "/usr/share/fonts/dejavu"
FontPath "/usr/share/fonts/freefonts"
FontPath "/usr/share/fonts/corefonts"
FontPath "/usr/share/fonts/encodings"
EndSection
Section "ServerFlags"
Option "AutoAddDevices" "On"
Option "AutoEnableDevices" "On"
Option "AllowEmptyInput" "On"
EndSection
Section "Monitor"
Identifier "MB19TU"
HorizSync 31.5 - 79.0
VertRefresh 50-70
Option "UseEdidDpi" "FALSE"
Option "DPI" "96x96"
Option "DPMS"
#DisplaySize 338 270
EndSection
Section "Device"
Identifier "Nvidia GeForce MX4000"
Driver "nvidia"
Option "NoLogo" "Yes"
Option "HWCursor" "On"
EndSection
Section "Screen"
Identifier "Screen 1"
Device "Nvidia GeForce MX4000"
Monitor "MB19TU"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
EndSection
Section "ServerLayout"
Identifier "Simple Layout"
Screen "Screen 1"
EndSection
|
|
|
Back to top |
|
|
Frustie Tux's lil' helper
Joined: 31 Aug 2007 Posts: 102 Location: My own little planet.
|
Posted: Fri Jul 24, 2009 11:31 am Post subject: |
|
|
did you recompile
xf86-input-mouse
xf86-input-keyboard
xf86-input-evdev
? |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Sun Jul 26, 2009 11:01 am Post subject: |
|
|
Moved from Installing Gentoo to Desktop Environments.
desktop stuff, so moved here _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
remix l33t
Joined: 28 Apr 2004 Posts: 797 Location: hawaii
|
Posted: Fri Jul 31, 2009 4:26 am Post subject: |
|
|
i did what you guys suggested. still doesn't work. error below
# emerge -pv xorg-server nvidia-drivers
Code: | [ebuild R ] x11-base/xorg-server-1.5.3-r6 USE="hal nptl xorg -3dfx -debug -dmx -ipv6 -kdrive -minimal -sdl -tslib" INPUT_DEVICES="evdev -acecad -aiptek -citron -elographics -fpit -hyperpen -joystick -keyboard -mouse -mutouch -penmount -synaptics -tslib -virtualbox -vmmouse -void -wacom" VIDEO_CARDS="nvidia -apm -ark -ast -chips -cirrus -dummy -epson -fbdev -fglrx -geode -glint -i128 -i740 (-impact) -imstt -intel -mach64 -mga -neomagic (-newport) -nv -r128 -radeon -radeonhd -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -vermilion -vesa -via -virtualbox -vmware -voodoo -xgi" 0 kB
[ebuild R ] x11-drivers/nvidia-drivers-71.86.09 USE="-acpi -custom-cflags -gtk (-multilib)" 0 kB
|
# cat /var/log/Xorg.0.log
Code: | X.Org X Server 1.5.3
Release Date: 5 November 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.29-gentoo-r5 i686
Current Operating System: Linux geexbox 2.6.29-gentoo-r5 #7 Tue Jul 21 22:18:46 HST 2009 i686
Build Date: 30 July 2009 05:55:25PM
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Jul 30 18:47:25 2009
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "Simple Layout"
(**) |-->Screen "Screen 1" (0)
(**) | |-->Monitor "My Monitor"
(**) | |-->Device "NVIDIA GeForce"
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/share/fonts/dejavu" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/share/fonts/freefonts" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/share/fonts/corefonts" does not exist.
Entry deleted from font path.
(WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/encodings".
Entry deleted from font path.
(Run 'mkfontdir' on "/usr/share/fonts/encodings").
(WW) The directory "/usr/share/fonts/TTF/" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/share/fonts/OTF" does not exist.
Entry deleted from font path.
(**) FontPath set to:
/usr/share/fonts/misc:unscaled,
/usr/share/fonts/100dpi:unscaled,
/usr/share/fonts/75dpi:unscaled,
/usr/share/fonts/misc/,
/usr/share/fonts/Type1/,
/usr/share/fonts/100dpi/,
/usr/share/fonts/75dpi/,
/usr/share/fonts/misc/,
/usr/share/fonts/Type1/,
/usr/share/fonts/100dpi/,
/usr/share/fonts/75dpi/,
built-ins
(==) ModulePath set to "/usr/lib/xorg/modules"
(II) Cannot locate a core pointer device.
(II) Cannot locate a core keyboard device.
(II) The server relies on HAL to provide the list of input devices.
If no devices become available, reconfigure HAL or disable AllowEmptyInput.
(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
(II) No APM support in BIOS or kernel
(II) Loader magic: 0x9e0
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.4
X.Org Video Driver: 4.1
X.Org XInput driver : 2.1
X.Org Server Extension : 1.1
(II) Loader running on linux
(--) using VT number 3
(--) PCI:*(0@1:0:0) nVidia Corporation NV11 [GeForce2 MX/MX 400] rev 178, Mem @ 0xee000000/0, 0xf0000000/0, BIOS @ 0x????????/65536
(II) System resource ranges:
[0] -1 0 0xffffffff - 0xffffffff (0x1) MX[B]
[1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
[2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
[3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
[4] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
[5] -1 0 0x00000000 - 0x00000000 (0x1) IX[B]
(II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
(II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
(II) "glx" will be loaded. This was enabled by default and also specified in the config file.
(II) "record" will be loaded by default.
(II) "dri" will be loaded by default.
(II) LoadModule: "dbe"
(II) Loading /usr/lib/xorg/modules/extensions//libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
compiled for 1.5.3, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 1.1
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions//libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
compiled for 1.5.3, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 1.1
(II) Loading extension SHAPE
(II) Loading extension MIT-SUNDRY-NONSTANDARD
(II) Loading extension BIG-REQUESTS
(II) Loading extension SYNC
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XC-MISC
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-Misc
(II) Loading extension DPMS
(II) Loading extension TOG-CUP
(II) Loading extension Extended-Visual-Information
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "freetype"
(WW) Warning, couldn't open module freetype
(II) UnloadModule: "freetype"
(EE) Failed to load module "freetype" (module does not exist, 0)
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions//libglx.so
(II) Module glx: vendor="NVIDIA Corporation"
compiled for 4.0.2, module version = 1.0.0
Module class: XFree86 Server Extension
ABI class: XFree86 Server Extension, version 0.1
(II) NVIDIA GLX Module 71.86.09 Mon Feb 23 16:22:33 PST 2009
(II) Loading extension GLX
(II) LoadModule: "record"
(II) Loading /usr/lib/xorg/modules/extensions//librecord.so
(II) Module record: vendor="X.Org Foundation"
compiled for 1.5.3, module version = 1.13.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 1.1
(II) Loading extension RECORD
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions//libdri.so
(II) Module dri: vendor="X.Org Foundation"
compiled for 1.5.3, module version = 1.0.0
ABI class: X.Org Server Extension, version 1.1
(II) Loading extension XFree86-DRI
(II) LoadModule: "nvidia"
(II) Loading /usr/lib/xorg/modules/drivers//nvidia_drv.so
dlopen: /usr/lib/xorg/modules/drivers//nvidia_drv.so: undefined symbol: AllocateScreenPrivateIndex
(EE) Failed to load /usr/lib/xorg/modules/drivers//nvidia_drv.so
(II) UnloadModule: "nvidia"
(EE) Failed to load module "nvidia" (loader failed, 7)
(EE) No drivers available.
Fatal server error:
no screens found |
# cat /etc/X11/xorg.conf
Code: | Section "Module"
Load "dbe" # Double buffer extension
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
# Load "type1"
Load "freetype"
# Load "xtt"
Load "glx"
EndSection
Section "Files"
FontPath "/usr/share/fonts/misc:unscaled"
FontPath "/usr/share/fonts/100dpi:unscaled"
FontPath "/usr/share/fonts/75dpi:unscaled"
FontPath "/usr/share/fonts/dejavu"
FontPath "/usr/share/fonts/freefonts"
FontPath "/usr/share/fonts/corefonts"
FontPath "/usr/share/fonts/encodings"
FontPath "/usr/share/fonts/misc/"
# FontPath "/usr/share/fonts/TTF/"
# FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/75dpi/"
EndSection
Section "Monitor"
Identifier "My Monitor"
HorizSync 45 - 50
VertRefresh 50-70
Option "UseEdidDpi" "FALSE"
Option "DPI" "96x96"
Option "DPMS"
EndSection
Section "Device"
Identifier "NVIDIA GeForce"
Driver "nvidia"
Option "NoLogo" "true"
Option "HWCursor" "On"
# Option "UseEdidDpi" "FALSE"
# Option "DPI" "44.3 x 44.3"
#VideoRam 65536
EndSection
Section "Screen"
Identifier "Screen 1"
Device "NVIDIA GeForce"
Monitor "My Monitor"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "1360x768" "1024x768" "800x600"
ViewPort 0 0
EndSubsection
EndSection
Section "ServerLayout"
# The Identifier line must be present
Identifier "Simple Layout"
Screen "Screen 1"
EndSection |
xorg will work with driver "nv" though, the mouse and keyboard does not function. i can cat /dev/input/mice and i know my mouse works. Xsession and fluxbox do not allow me to move my mouse or use my keyboard though. _________________ help the needy |
|
Back to top |
|
|
sebaro Veteran
Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
Posted: Fri Jul 31, 2009 4:41 am Post subject: |
|
|
For mouse & keyboard add to xorg.conf:
Code: | Section "ServerFlags"
Option "AutoAddDevices" "On"
Option "AutoEnableDevices" "On"
Option "AllowEmptyInput" "On"
EndSection |
And about nvidia driver, did you try the 96* version?
Does lsmod show "nvidia"? |
|
Back to top |
|
|
alatar n00b
Joined: 12 Feb 2009 Posts: 61
|
Posted: Fri Jul 31, 2009 6:28 am Post subject: |
|
|
Code: | Fatal server error:
no screens found |
I face this error form time to time after 'emerge -uDN world'. But after emerging nvidia drivers again and doing 'module-rebuild populate' everything works. Also you can recheck HAL logs since Xorg loads configuration from it. |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri Jul 31, 2009 12:15 pm Post subject: |
|
|
What kind of video card are you using, because you are using a pretty old version of the nvidia driver actually. |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Fri Jul 31, 2009 12:20 pm Post subject: |
|
|
... and can you post your emerge --info |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Tue Oct 06, 2009 11:00 am Post subject: |
|
|
Quote: | Did you add "nvidia" to VIDEO_CARDS and only "evdev" to INPUT_DEVICES in make.conf? |
what is the significance of evdev here? I have INPUT_DEVICES="keyboard mouse" , is that no longer correct?
_________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
|
Back to top |
|
|
sebaro Veteran
Joined: 03 Jul 2006 Posts: 1141 Location: Romania
|
Posted: Tue Oct 06, 2009 11:10 am Post subject: |
|
|
Gentree wrote: | Quote: | Did you add "nvidia" to VIDEO_CARDS and only "evdev" to INPUT_DEVICES in make.conf? |
what is the significance of evdev here? I have INPUT_DEVICES="keyboard mouse" , is that no longer correct?
|
Yes it is. But now you can use HAL for input devices.
http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.5-upgrade-guide.xml |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6103 Location: Dallas area
|
Posted: Tue Oct 06, 2009 11:45 am Post subject: |
|
|
I have no VIDEO_CARDS or INPUT_DEVICES in my make.conf, it works fine for me.
I also have no INPUTDEVICE lines or sections in my xorg.conf, again no problems.
Hal works just fine. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Peach Advocate
Joined: 08 Mar 2003 Posts: 3686 Location: London, UK
|
Posted: Wed Nov 04, 2009 8:39 pm Post subject: |
|
|
remix wrote: | # cat /var/log/Xorg.0.log
Code: | X.Org X Server 1.5.3
...
(II) LoadModule: "nvidia"
(II) Loading /usr/lib/xorg/modules/drivers//nvidia_drv.so
dlopen: /usr/lib/xorg/modules/drivers//nvidia_drv.so: undefined symbol: AllocateScreenPrivateIndex
(EE) Failed to load /usr/lib/xorg/modules/drivers//nvidia_drv.so
(II) UnloadModule: "nvidia"
(EE) Failed to load module "nvidia" (loader failed, 7)
(EE) No drivers available.
Fatal server error:
no screens found |
|
I think you should consider this:
http://en.gentoo-wiki.com/wiki/Nvidia#nvidia_drv.so:_undefined_symbol_with_xorg-server-1.5
still I didn't find the source of the problem and you should be aware of these bugs:
x11-drivers/nvidia-drivers-71.86.11 version bump
Stable x11-drivers/nvidia-drivers-71.86.11
pls upvote
if wonder if this can be solved somehow. _________________ Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom |
|
Back to top |
|
|
sirlark Guru
Joined: 25 Oct 2004 Posts: 306 Location: Limerick, Ireland
|
|
Back to top |
|
|
Peach Advocate
Joined: 08 Mar 2003 Posts: 3686 Location: London, UK
|
Posted: Thu Nov 05, 2009 8:01 pm Post subject: |
|
|
sirlark wrote: | This should solve your input problems at least. Sorry, but I can't help with the nvidia stuff. |
thanks but I've already read that stuff since my other systems are newer and went through all this without problems.
the problem here is related to nvidia stuff
and it seems like there will be no solution to it:
http://tinyurl.com/y8vpeen _________________ Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom |
|
Back to top |
|
|
|