Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

[SOLVED] xorg+nvidia: "Failed to load module dri"

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
20 posts • Page 1 of 1
Author
Message
trepanne
n00b
n00b
Posts: 35
Joined: Sat Aug 23, 2003 1:43 am

[SOLVED] xorg+nvidia: "Failed to load module dri"

  • Quote

Post by trepanne » Sun Feb 14, 2010 2:26 pm

I've got this box with an nvidia Quadro NVS 420 card (dual GPU, four video outs). I had the whole thing set up correctly under OpenSolaris. Now I've wiped off osol & am trying to get Gentoo running on the same hardware, but it's not working. This is a new installation; no xorg upgrade issues.

In the kernel, I've configured module loading and MTRR support; I've turned off nvidia framebuffer.
The kernel I've built is linux-2.6.31-gentoo-r6.
The /usr/src/linux symlink is pointed correctly, and gets picked up as such by "eselect kernel list".
In /etc/make.conf, I've set INPUT_DEVICES="evdev mouse keyboard"; VIDEO_CARDS="nvidia nv".
I've installed xorg-server-1.6.5-r1, and nvidia-drivers-190.42-r3.
Using the eselect tool, I've set the OpenGL to use nvidia's implementation.

If I try issuing "startx" without any xorg.conf, the system locks & needs a hard reset. I get the same behavior if I load an xorg.conf generated by X itself.

If I use the same xorg.conf that was working for me successfully under solaris, or a fresh xorg.conf generated by nvidia's script for doing so, then X fails to start, issuing errors that it "failed to load module dri" and "failed to load module dri2", because neither can be found. I've tried inserting a "Module" section in xorg.conf, not loading any DRI, but alas, the behavior remains the same.

Looking through XOrg.log, HAL seems to be detecting my input devices nicely, and I get all sorts of debug output indicating that the nvidia driver is doing its thing and understanding its configurations. It just seems to be this bit about the DRI. What am I doing wrong?

I'll reproduce below my xorg.conf which worked under osol, which I'm trying to reuse under Linux. It's cleaner than the one auto-configured by the nvidia utility.

TIA

=====

# Xorg 1.5.3
# nVidia Quadro NVS 420 dual-GPU quad output

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
Screen 1 "Screen1" Above "Screen0"
EndSection

Section "ServerFlags"
Option "Xinerama" "off"
EndSection

Section "Monitor"
Identifier "Monitor0"
ModelName "Acer X233H"
Option "DPMS"
EndSection

Section "Monitor"
Identifier "Monitor1"
ModelName "Philips 170B"
EndSection

Section "Device"
Identifier "gpu0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "Quadro NVS 420"
BusID "PCI:3:0:0"
EndSection

Section "Device"
Identifier "gpu1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "Quadro NVS 420"
BusID "PCI:4:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "gpu0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "on"
Option "MetaModes" "DFP-0: 1920x1080, DFP-1: 1920x1080"
Option "TwinViewOrientation" "DFP-0 LeftOf DFP-1"
EndSection

Section "Screen"
Identifier "Screen1"
Device "gpu1"
Monitor "Monitor1"
EndSection
Last edited by trepanne on Mon Feb 15, 2010 1:29 pm, edited 1 time in total.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56264
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Feb 14, 2010 2:51 pm

trepanne,

The nVidia binary blob does not use dri or dri2, so those errors can be safely ignored.
It does its own thing for direct rendering.

Change your Section "ServerLayout" to use a single screen until we get nvidia working.
The log is more useful than the xorg.config.

Code: Select all

emerge wgetpaste
wgetpaste -s ca /var/log/Xorg.0.log
to put your log on the web. Tell us the URL you get
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
trepanne
n00b
n00b
Posts: 35
Joined: Sat Aug 23, 2003 1:43 am

  • Quote

Post by trepanne » Sun Feb 14, 2010 3:01 pm

NeddySeagoon:
Change your Section "ServerLayout" to use a single screen until we get nvidia working.
Done.
to put your log on the web. Tell us the URL you get
http://pastebin.ca/1796265

Many thanks.
Top
Rexilion
Veteran
Veteran
User avatar
Posts: 1044
Joined: Tue Mar 17, 2009 10:25 am

  • Quote

Post by Rexilion » Sun Feb 14, 2010 4:14 pm

Does it work? Or does it deadlock again?
Top
trepanne
n00b
n00b
Posts: 35
Joined: Sat Aug 23, 2003 1:43 am

  • Quote

Post by trepanne » Sun Feb 14, 2010 4:24 pm

Does it work? Or does it deadlock again?
Taking the other screen out of the ServerLayout changed nothing, unfortunately.
I should note that using my own xorg.conf (as opposed to X's) does not lock the machine; it's just that the X server refuses to start in a more normal fashion (the LCD backlight goes off, there's a delay while X does its thing, and then it dumps me back into a bash prompt with some debug output).
The only errors I really get are about DRI, which is why I thought that might be source of the problem.

I'm sure it's something very basic that I've screwed up. Any hints on how I might trace the source of the problem?

TIA
Top
Staren
n00b
n00b
Posts: 27
Joined: Mon Sep 08, 2003 2:51 am
Location: Riviere-du-Loup, Canada

  • Quote

Post by Staren » Sun Feb 14, 2010 5:00 pm

Something similar happened to me when I got my new computer, a few weeks ago. I lost my notes but I remember that I tried nv, vesa and vga modes without success. I remember very well that I succeded only after I emerged and configured x11-wm/twm :o ( I just learned that twm ins't included anymore in the xorg-x11 ebuild... ) Can't remember what mode I used at the time but it's easy to test. Give it a try and see what happens! Best of lucks!!!
Top
tryn
Guru
Guru
User avatar
Posts: 325
Joined: Sat Dec 21, 2002 8:13 pm
Location: 39.885° N. -88.913° W.

  • Quote

Post by tryn » Sun Feb 14, 2010 5:09 pm

Is this a old box?

I have a web page that shows most of the nvidia cards and I can not find the one that you have listed in your post.
nvidia Quadro NVS 420 card
If it is a older card maybe you could try this one and see if it works.
x11-drivers/nvidia-drivers-96.43.14

These are the ones that I use for my computer with its older card.

I just googled the card and I see that it isn't a old one so the older drivers wouldn't be the problem.
Last edited by tryn on Sun Feb 14, 2010 7:07 pm, edited 1 time in total.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56264
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Feb 14, 2010 5:31 pm

trepanne,

It looks like Xorg started normally, found nothing to do, then quit.

What window manager do you have installed?
Do you get errors about twm, xterm and xclock are not found ?
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Rexilion
Veteran
Veteran
User avatar
Posts: 1044
Joined: Tue Mar 17, 2009 10:25 am

  • Quote

Post by Rexilion » Sun Feb 14, 2010 6:38 pm

I think he just did:

X

If X is executed like that, it won't quit untill you kill it (or CTRL+ALT+BACKSPACE).

Besides, I got xinit with the minimal useflag (no twm, xclock etc) and everything works fine.
Top
dmpogo
Advocate
Advocate
Posts: 3730
Joined: Thu Sep 02, 2004 9:21 pm
Location: Canada

  • Quote

Post by dmpogo » Sun Feb 14, 2010 7:33 pm

Rexilion wrote:I think he just did:

X

If X is executed like that, it won't quit untill you kill it (or CTRL+ALT+BACKSPACE).

Besides, I got xinit with the minimal useflag (no twm, xclock etc) and everything works fine.
He used startx, so it is supposed to ran what is in .xinitrc and quit when the last command in this file exits
Top
trepanne
n00b
n00b
Posts: 35
Joined: Sat Aug 23, 2003 1:43 am

  • Quote

Post by trepanne » Sun Feb 14, 2010 11:49 pm

Yes, this sounds right. No window manager.

I just installed xorg-server (not xorg-x11), and I do indeed get errors about not finding twm, xterm, and other commands inside /etc/X11/xinit/xinitrc.

I have installed KDE4, and would like to use kdm. I've placed XSESSION="KDE-4" in /etc/rc.conf, but that's not doing the trick. What do I need to do?

Thanks for the help gentlemen.
Top
whiteghost
Guru
Guru
User avatar
Posts: 374
Joined: Sun Jul 26, 2009 10:59 am
Location: north dakota
Contact:
Contact whiteghost
Website

  • Quote

Post by whiteghost » Mon Feb 15, 2010 12:18 am

trepanne wrote:Yes, this sounds right. No window manager.

I just installed xorg-server (not xorg-x11), and I do indeed get errors about not finding twm, xterm, and other commands inside /etc/X11/xinit/xinitrc.

I have installed KDE4, and would like to use kdm. I've placed XSESSION="KDE-4" in /etc/rc.conf, but that's not doing the trick. What do I need to do?

Thanks for the help gentlemen.
rc-update add hald default
rc-update add dbus default
rc-update add consolekit default

Open /etc/conf.d/xdm for editing:

nano -w /etc/conf.d/xdm

You see a DISPLAYMANAGER variable, probably set to DISPLAYMANAGER="xdm"
Change it to the display manager you have installed.

DISPLAYMANAGER="kdm"
www.informationclearinghouse.info
May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason.
Top
trepanne
n00b
n00b
Posts: 35
Joined: Sat Aug 23, 2003 1:43 am

  • Quote

Post by trepanne » Mon Feb 15, 2010 1:15 am

whiteghost - thanks. I did as you wrote, and then started the xdm service with /etc/init.d/xdm start. kdm started right up & posted the graphic login screen (even though I was already logged in).

So I guess it's intended that I should further say rc-update add xdm default, and do my logins that way?

I think that's probably good enough. Thanks are particularly due to NeddySeagoon & whitegost.

But as long as I'm digging in here, how do I get kdm to start if I want to do CLI logins and start the GUI with startx (or another means)?

Thanks guys, you're really helpful.
Top
whiteghost
Guru
Guru
User avatar
Posts: 374
Joined: Sun Jul 26, 2009 10:59 am
Location: north dakota
Contact:
Contact whiteghost
Website

  • Quote

Post by whiteghost » Mon Feb 15, 2010 1:24 am

don't think you need xdm default. actually xdm is another package probably not installed.
from login screen there should be a button for options / configuration to set autologin. i use gdm.
from command line

Code: Select all

kdm
www.informationclearinghouse.info
May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason.
Top
whiteghost
Guru
Guru
User avatar
Posts: 374
Joined: Sun Jul 26, 2009 10:59 am
Location: north dakota
Contact:
Contact whiteghost
Website

  • Quote

Post by whiteghost » Mon Feb 15, 2010 1:41 am

i just emerged xdm.
rc-update add xdm default
edited /etc/conf.d/xdm
to
DISPLAYMANAGER="gdm"
and everything is auto now.
www.informationclearinghouse.info
May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason.
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Mon Feb 15, 2010 2:08 am

So, do you see something or you still have a black screen ?
Top
trepanne
n00b
n00b
Posts: 35
Joined: Sat Aug 23, 2003 1:43 am

  • Quote

Post by trepanne » Mon Feb 15, 2010 2:19 am

So, do you see something or you still have a black screen ?
I'm responding to you now from Firefox running in KDE on the box in question. I was getting black screen only when I tried "startx" with a blank xorg.conf, or with an xorg.conf generated by X -configure. Not terribly interested in chasing that down, since I have a good xorg.conf I worked out under osol.

But speaking of my xorg.conf... as I said, I've got a multihead video setup. 2 monitors side by side are Screen1, and then 1 monitor above those 2 is Screen0. I am now getting kdm/KDE running only on Screen1 below. The top monitor shows a black screen - nothing. I can roll the mouse up onto that screen, but when I do so, it loses the KDE cursor and reverts to the "X" character cursor we used to see with twm.

Anybody know how I get another instance of kdm running on Screen0?
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Mon Feb 15, 2010 2:23 am

Now that you have at least a Screen, we will try to make your dual screen working :P
Top
trepanne
n00b
n00b
Posts: 35
Joined: Sat Aug 23, 2003 1:43 am

[SOLVED] xorg+nvidia: "Failed to load module dri"

  • Quote

Post by trepanne » Mon Feb 15, 2010 1:28 pm

I'll just mark this resolved, then.
Thanks guys.
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Tue Feb 16, 2010 2:22 am

No problem :P
Top
Post Reply

20 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy