LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 04-19-2006, 08:41 AM   #1
rrr-jr
Member
 
Registered: Jul 2003
Location: Romania
Distribution: Gentoo GNU/Linux
Posts: 65

Rep: Reputation: 15
Intel 82915G/GV/910GL Dri not working at all


My direct rendering worked just fine until today when I upgraded Mesa to 6.5-r2 (because I wanted to upgrade my opengl version to 1.3 because it was 1.2 and I wanted to play glest ) and then I did some stupid things I guess ... combined the binaries snapshots from dri.freedesktop.org and stuff like that.
After I got mad with it I decided to remove everything ... and I did that including my gentoo-sources but I did not remove the mesa because I did not seem that mesa was the problem.
I've reinstalled gentoo-sources, built the i915 module in it and then tried to run Xorg7.
Everytime I try to run it with (Load glx and Load dri) My monitor blacks out but when I remove the modules everything goes fine just no direct rendering ... I'm listing some info in the next lines :

Code:
rrr # dmesg |grep drm
[drm] Initialized drm 1.0.1 20051102
[drm] Initialized i915 1.4.0 20060119 on minor 0

rrr # dmesg |grep agp
Linux agpgart interface v0.101 (c) Dave Jones
agpgart: Detected an Intel 915G Chipset.
agpgart: Detected 32508K stolen memory.
agpgart: AGP aperture is 256M @ 0xe0000000
This is my xorg log with glx and dri loaded (note: this is what I recover after a couple of ctrl+alt+del 's):
/var/log/Xorg.0.log

http://86.122.192.88/xorg/Xorg.0.log

and my xorg.conf:

http://86.122.192.88/xorg/xorg.conf
 
Old 04-19-2006, 11:59 AM   #2
Quantumstate
Member
 
Registered: Jun 2005
Location: Seattle, Ecotopia
Distribution: Debian Testing with xfce
Posts: 219

Rep: Reputation: 19
Might be the problem is a missing library. Check /var/log/kdm.log and try running GTK apps from a console so you can see errors. Although there are no instructions for Xorg7.0 that I could find, I had to install most libraries that looked like libx???n.deb . (Debian)

Also, in your xorg.conf, YOU MUST NOT HAVE:
Code:
RgbPath      "/usr/share/X11/rgb"
ModulePath   "/usr/lib/xorg/modules"
My modules:
Code:
Section "Module"
#broken	Load	"GLcore"
	Load	"bitmap"
	Load	"dbe"
	Load	"ddc"
	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"record"
#	Load	"speedo"
	Load	"type1"
	Load	"vbe"
EndSection
Also, if you want xkb to work (<Ctl><Alt><F1>, etc), you have to set aside /etc/X11/xkb and put a symlink there to /usr/share/X11/xkb . Although for me, that link was somehow removed after a day or so, inexplicably. (Debian Sarge)

Last edited by Quantumstate; 04-19-2006 at 12:06 PM.
 
Old 04-19-2006, 12:14 PM   #3
rrr-jr
Member
 
Registered: Jul 2003
Location: Romania
Distribution: Gentoo GNU/Linux
Posts: 65

Original Poster
Rep: Reputation: 15
I don't know if you saw my xorg.conf but i've attached in my first post ... i already have the paths that u told me and these are my modules:
Code:
Section "Module"
        Load  "glx"
        Load  "extmod"
        Load  "dbe"
        Load  "record"
        Load  "xtrap"
        Load  "dri"
        Load  "freetype"
        Load  "type1"
EndSection
 
Old 04-19-2006, 12:24 PM   #4
Quantumstate
Member
 
Registered: Jun 2005
Location: Seattle, Ecotopia
Distribution: Debian Testing with xfce
Posts: 219

Rep: Reputation: 19
I did see your xorg.conf. That's why I'm saying this.

Listen carefully now: NOT, NOT those lines! You must not have those lines. They are a big part of your problem.
 
Old 04-19-2006, 12:34 PM   #5
rrr-jr
Member
 
Registered: Jul 2003
Location: Romania
Distribution: Gentoo GNU/Linux
Posts: 65

Original Poster
Rep: Reputation: 15
oh ... sorry ... thought you wrote with CAPITAL letter that those lines i didnt had to have I still understood something else ... sorry again
 
Old 04-19-2006, 02:49 PM   #6
kg4ysy
Member
 
Registered: May 2005
Location: North Carolina
Distribution: Gentoo
Posts: 123

Rep: Reputation: 19
could you post your /proc/config.gz

I redid my kernel without editing my xorg, and now direct rendering doesn't work on my computer (it did b4 i changed the kernel)

thx
 
Old 04-19-2006, 03:02 PM   #7
Quantumstate
Member
 
Registered: Jun 2005
Location: Seattle, Ecotopia
Distribution: Debian Testing with xfce
Posts: 219

Rep: Reputation: 19
I don't have a /proc/config.gz . (Debian Sarge) Is this the kernel parameters?

I'm in the process now of recompiling 2.6.16, due to advice here. I have direct rendering with Xorg 7.0, but video is slow and CPU is pegged, so I suspect kernel DRM or Mesa.

If you haven't already, follow these steps.
 
Old 04-20-2006, 03:58 AM   #8
rrr-jr
Member
 
Registered: Jul 2003
Location: Romania
Distribution: Gentoo GNU/Linux
Posts: 65

Original Poster
Rep: Reputation: 15
Due to further changes that you said to do ( removing those lines from xorg.conf) I can't seem to get it working ... but I have observed that if i uncomment the dri module it works and only if I uncomment the glx module it freezes when I start Xorg.
Where does the glx module come from? (Xorg ?!)
Should I reinstall Xorg (7) ?

Note: I use to have the Load dri and glx modules commented out in xorg.conf
 
Old 04-20-2006, 01:38 PM   #9
Quantumstate
Member
 
Registered: Jun 2005
Location: Seattle, Ecotopia
Distribution: Debian Testing with xfce
Posts: 219

Rep: Reputation: 19
kg4, you've removed the DRM kernel module, and now no direct rendering. This proves that you were improperly depending on it, rather than DRM from Xorg. (In Debian, /usr/lib/xorg/modules/linux/libdrm.so) I don't know what version of Xorg you're running, but I'm running 7.0, and used this. Also, tell us what AGP chipset you have, as I asked in the other thread.


Quote:
Originally Posted by rrr-jr
Note: I use to have the Load dri and glx modules commented out in xorg.conf
Set it exactly like mine, as I say.

Last edited by Quantumstate; 04-20-2006 at 02:01 PM.
 
Old 04-20-2006, 02:46 PM   #10
Quantumstate
Member
 
Registered: Jun 2005
Location: Seattle, Ecotopia
Distribution: Debian Testing with xfce
Posts: 219

Rep: Reputation: 19
If your Xorg DRM library is there, and you are running v7.0, but
# grep "Direct rendering" /var/log/Xorg.0.log
(WW) R128(0): Direct rendering disabled

... check earlier in the log, and see if you have:
Code:
(II) Loading /usr/lib/xorg/modules/linux/libdrm.so
(II) Module drm: vendor="X.Org Foundation"
	compiled for 7.0.0, module version = 1.0.0
	ABI class: X.Org Server Extension, version 0.2
(II) Loading extension XFree86-DRI

There are no instructions for installing v7.0 that I could find, but in addition to all the libx???n libraries you need to install, it's a good idea to install all the protocol modules as well. I don't know about other distros, but in Debian the protocol modules start with x11-proto-???.

Last edited by Quantumstate; 04-20-2006 at 03:26 PM.
 
Old 04-24-2006, 11:42 AM   #11
rrr-jr
Member
 
Registered: Jul 2003
Location: Romania
Distribution: Gentoo GNU/Linux
Posts: 65

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Quantumstate
# grep "Direct rendering" /var/log/Xorg.0.log
this gives me the following ...:
Code:
(II) Loading sub module "drm"
(II) LoadModule: "drm"
(II) Loading /usr/lib/xorg/modules/linux/libdrm.so
(II) Module drm: vendor="X.Org Foundation"
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmOpenByBusid: drmOpenMinor returns 7
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
(II) I810(0): [drm] DRM interface version 1.2
(II) I810(0): [drm] created "i915" driver at busid "pci:0000:00:02.0"
(II) I810(0): [drm] added 8192 byte SAREA at 0xf884c000
(II) I810(0): [drm] mapped SAREA 0xf884c000 to 0xb7b8b000
(II) I810(0): [drm] framebuffer handle = 0xe0020000
(II) I810(0): [drm] added 1 reserved context for kernel
(II) I810(0): [drm] Registers = 0xf2000000
(II) I810(0): [drm] ring buffer = 0xe0000000
(II) I810(0): [drm] init sarea width,height = 1280 x 1024 (pitch 2048)
(II) I810(0): [drm] Mapping front buffer
(II) I810(0): [drm] Front Buffer = 0xe0020000
(II) I810(0): [drm] Back Buffer = 0xef000000
(II) I810(0): [drm] Depth Buffer = 0xee800000
(II) I810(0): [drm] textures = 0xe0c20000
(II) I810(0): [drm] Initialized kernel agp heap manager, 37486592
(II) I810(0): [drm] dma control initialized, using IRQ 16
(II) I810(0): [drm] installed DRM signal handler
I said earlier that not the drm module gives me problems but the glx, which if I uncomment in xorg.conf it freezes my whole computer.

Code:
# grep glx /var/log/Xorg.0.log
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="X.Org Foundation"

Last edited by rrr-jr; 04-24-2006 at 11:43 AM.
 
Old 06-23-2006, 01:51 PM   #12
sdexp
Member
 
Registered: Sep 2003
Location: USA
Distribution: Ubuntu Linux
Posts: 103

Rep: Reputation: 15
I notice your driver is i810. Shouldn't you use an i910 driver? I have i915 and everything seems to work fine except for direct rendering.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing DRI on Intel i915gm Abomb Linux - Software 1 03-22-2006 10:38 AM
DRI Problem...intel i810 syssandy Slackware 1 01-23-2006 12:51 PM
intel i810 dri problem... time112852 Linux - Software 6 12-03-2005 02:40 AM
DRI support for intel 845 GV jai_joy Linux - Newbie 7 11-09-2004 03:45 AM
ATI 9800 + Intel 82875 + DRI (fglrx_dri) al1 Linux - Hardware 5 08-16-2004 11:55 AM


All times are GMT -5. The time now is 12:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration