Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Switched from xfree to xorg, now opengl doesn't work
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
mc_03
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2004
Posts: 94

PostPosted: Fri Aug 27, 2004 3:57 am    Post subject: Switched from xfree to xorg, now opengl doesn't work Reply with quote

Hi,
I successfully unmerged xfree and emerged xorg-x11, but now opengl programs, as well as glxinfo, do not load, choosing to segfault instead. I always get this error when I try to load an opengl program:

Code:
name of display: :0.0
Segmentation fault


I had DRI and opengl working fine with xfree (all the correct options in XF86Config) and I have even tried using the same config file for xorg, but this doesn't help the problem. I have an old ATI Rage 128 Pro, so the native X DRI drivers should work fine, no need to download anything from ATI. I'm running gentoo-dev-kernel 2.6.7. Anyone know how to fix this? Thanks.
[/code]
Back to top
View user's profile Send private message
tomthewombat
Apprentice
Apprentice


Joined: 29 Mar 2003
Posts: 244
Location: NY State

PostPosted: Fri Aug 27, 2004 4:05 am    Post subject: Reply with quote

Code:
opengl-update xorg-x11


you might want to try that.
_________________
http://www.wombatorium.net
Back to top
View user's profile Send private message
mc_03
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2004
Posts: 94

PostPosted: Fri Aug 27, 2004 4:17 am    Post subject: Reply with quote

I tried it, and it didn't change anything. :(
Back to top
View user's profile Send private message
rwf
Apprentice
Apprentice


Joined: 24 Jan 2004
Posts: 234
Location: mi.us

PostPosted: Wed Sep 08, 2004 7:12 pm    Post subject: Reply with quote

Had the same problem with kernel 2.6.8-gentoo-r3, xorg-x11-6.7.0-r2. and my ATI Rage 128 VR RL (AGP).

I was using 1280x1024, when I lower it to 1024x768, glxgears and glxinfo stopped seg faulting, but the FPS was terrible. Only 70-80.

I reverted to xfree and get 350FPS.

http://freedesktop.org/bugzilla/show_bug.cgi?id=930
Back to top
View user's profile Send private message
loki99
Advocate
Advocate


Joined: 10 Oct 2003
Posts: 2056
Location: Vienna, €urope

PostPosted: Wed Sep 08, 2004 8:53 pm    Post subject: Reply with quote

did you set the correct kernel options?
Back to top
View user's profile Send private message
jblebrun
n00b
n00b


Joined: 30 Jun 2003
Posts: 11
Location: Sacramento, CA

PostPosted: Fri Sep 17, 2004 3:46 am    Post subject: Reply with quote

I am having a similar problem. However, I discovered that if I run X as root, opengl stuff works just fine. That's weird! I did a diff of the Xorg.0.log files generated when I run as root, and as a normal user. Here is the result:

Code:

14c14
< (==) Log file: "/var/log/Xorg.0.log", Time: Thu Sep 16 17:58:58 2004
---
> (==) Log file: "/var/log/Xorg.0.log", Time: Thu Sep 16 17:58:40 2004
659c659
< (II) RADEON(0): [drm] mapped SAREA 0xe09f3000 to 0x423d1000
---
> (II) RADEON(0): [drm] mapped SAREA 0xe09f3000 to 0x42383000
665c665
< (II) RADEON(0): [agp] Ring mapped at 0x423d3000
---
> (II) RADEON(0): [agp] Ring mapped at 0x42385000
667c667
< (II) RADEON(0): [agp] Ring read ptr mapped at 0x424d4000
---
> (II) RADEON(0): [agp] Ring read ptr mapped at 0x42486000
669c669
< (II) RADEON(0): [agp] Vertex/indirect buffers mapped at 0x424d5000
---
> (II) RADEON(0): [agp] Vertex/indirect buffers mapped at 0x42487000
671c671
< (II) RADEON(0): [agp] GART Texture map mapped at 0x426d5000
---
> (II) RADEON(0): [agp] GART Texture map mapped at 0x42687000
756c756
< (II) RADEON(0): [drm] unmapping 8192 bytes of SAREA 0xe09f3000 at 0x423d1000
---
> (II) RADEON(0): [drm] unmapping 8192 bytes of SAREA 0xe09f3000 at 0x42383000


So, it seems like the only difference is where things are being mapped. I am not sure if this is arbitrary, or not. I figured I'd include it, just in case.

Also, I compiled glxinfo with some debug flags. I didn't do the whole Xorg tree with debug info, so there are some holes, but here's the backtrace from glxinfo:

Code:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 24808)]
0x401259d9 in free () from /lib/libc.so.6
(gdb) bt
#0  0x401259d9 in free () from /lib/libc.so.6
#1  0x4009aea7 in __glXInitialize () from /usr/lib/opengl/xorg-x11/lib/libGL.so.1

#8  0x401d6640 in __after_morecore_hook () from /lib/libc.so.6

#27 0x401c6fc4 in in6addr_loopback () from /lib/libc.so.6
#28 0x400bc9b6 in __PRETTY_FUNCTION__.1 () from /usr/lib/opengl/xorg-x11/lib/libGL.so.1


#44 0x40007b7b in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2
Previous frame inner to this frame (corrupt stack?)


Omitted lines were just "??" lines.

So, I'm not sure what else to do, at this point. I tried recompiling Xorg, but that didn't seem to do anything. Maybe I should do it with full debug info...
_________________
:) :) :) :)
Back to top
View user's profile Send private message
mc_03
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2004
Posts: 94

PostPosted: Sun Sep 19, 2004 3:04 am    Post subject: Reply with quote

Hmm... I switched from 24 bit depth to 16 bit, and now I get 1300 FPS in glxgears and Xorg doesnt segfault. Switching back and forth between colour depths, it's clear that this is the problem, but I can't see why... :|
Back to top
View user's profile Send private message
bmack500
n00b
n00b


Joined: 28 Sep 2003
Posts: 11
Location: Kentucky

PostPosted: Sun Sep 26, 2004 1:14 am    Post subject: Possible Resolution Reply with quote

I had this same problem. Then I noticed that at the bottom of the xorg.conf file, the following lines were commented out:


Section "DRI"
Mode 0666
EndSection

Uncommenting this worked, as well as uncommenting the linex for the GLX module and the dri module (not sure whey they were commented out in the first place).

Log out of x, /etc/init.d/xdm stop, /etc/init.d/xdm start, and it should work! Let me know...
Back to top
View user's profile Send private message
mc_03
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2004
Posts: 94

PostPosted: Sun Sep 26, 2004 6:30 am    Post subject: Reply with quote

I've always needed those sections uncommented to get any response out of glxinfo at all, so that's not the problem. AFAIK, you always need load glx, load dri and the DRI section uncommented to use direct rendering in any configuration.

I'm doing a fresh install of gentoo. Maybe the switch from xfree to xorg (or any number of tweaks and changes to my system over time) borked something, so I'm starting clean to see how things work out... *crosses fingers*
Back to top
View user's profile Send private message
bmack500
n00b
n00b


Joined: 28 Sep 2003
Posts: 11
Location: Kentucky

PostPosted: Mon Sep 27, 2004 7:10 am    Post subject: Hope it works out Reply with quote

I installed clean, using the "developers method" for a 2.6 and NPTL install. I've only got a 400Mhz k6-3, but it screams past any other distribution I've tried (RH9, FC2, Debian sarge, et al,, - unemployed and too much time on my hands).

Takes forever to compile, of course...

I'm going to set up prelinking next, why not get the additional boost?

PS - the default file I used for X was created with xorgconfig; not sure why those relevant sections were commented out.

PS - what are your "use" flags set to?
Back to top
View user's profile Send private message
mc_03
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2004
Posts: 94

PostPosted: Wed Sep 29, 2004 7:17 pm    Post subject: Reply with quote

Reinstalled, and I still get a segfault in 24 bit depth mode. :( As for USE flags, I've noticed that xorg can be compiled with sse, mmx and 3dnow which I do not use. Do you think this might fix the problem?
Back to top
View user's profile Send private message
mc_03
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2004
Posts: 94

PostPosted: Fri Oct 01, 2004 9:10 pm    Post subject: Reply with quote

YES! I recompiled xorg, and emerged the latest 2.6.8-gentoo-r5 kernel. I compiled the kernel with DRM manager built in instead of using x11-drm and the r128 module. Now it all works! My FPS has gone down from around 1300 to 1000 in glxgears, but gaming is about the same as it should be- only decent, but I'm not going to expect any better from my Rage 128! :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum