Bug 247374

Summary: Better AIGLX integration
Product: [openSUSE] openSUSE 11.0 Reporter: Felix Rommel <felix.rommel>
Component: X.OrgAssignee: David Reveman <dreveman>
Status: RESOLVED FIXED QA Contact: E-mail List <xorg-maintainer-bugs>
Severity: Enhancement    
Priority: P5 - None CC: cyberorg, eich, forgotten_--EoyBps8f, martin.schlander, sndirsch
Version: Alpha 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: compiz-mnager
xorg.conf for Intel graphic cards for AIGLX
xorg for fglrx 8.44 + aiglx

Description Felix Rommel 2007-02-21 15:00:48 UTC
It would be great if you better integrate AIGLX in the next openSUSE versions.

Your gnome-xgl-settings tool is great for setting up Compiz without editing config files in command line.

How about an option in your gnome-xgl-settings for choosing AIGLX instead of XGL - dependant on your graphic card? Or even an option for autodetection which one to use - AIGLX or XGL.

For example: I have an Intel graphics card and AIGLX is much better for this card than XGL.

I think the new Nvidia drivers even do not need AIGLX nor XGL any more. It would be great to also add an option/autodection for that case, too.
Comment 1 Stefan Dirsch 2007-02-21 16:36:07 UTC
I agree. See also Bug #234154.
Comment 2 Rafał Miłecki 2007-05-17 17:31:03 UTC
It's very nice idea. I think SaX2 should have "Enable AIGLX" option, just like enabling acceleration.
Comment 17 Stefan Dirsch 2007-11-22 11:04:56 UTC
*** Bug 343360 has been marked as a duplicate of this bug. ***
Comment 19 Stefan Dirsch 2007-12-20 13:53:23 UTC
Still I don't get compiz working with AIGLX/fglrx.

# DISPLAY=:0.0 compiz --ignore-desktop-hints --replace --indirect-rendering ccp
compiz: Trying '/usr/$LIB/libIndirectGL.so.1'
compiz (core) - Fatal: No GLXFBConfig for default depth, this isn't going to work.
compiz (core) - Error: Failed to manage screen: 0
compiz (core) - Fatal: No manageable screens found on display :0.0

AIGLX and Composite is enabled in xorg.conf. DRI of course as welll. I have no idea how anybody managed this. SONAME is already fixed in the (beta) version I tried.
Comment 20 Jigish Gohil 2007-12-20 13:58:02 UTC
compiz --no-libgl-fallback --ignore-desktop-hints --replace --indirect-rendering ccp&
Comment 21 Jigish Gohil 2007-12-20 14:00:30 UTC
Forgot to mention, I couldn't get 8.43 +AIGLX working on Alpha0 xorg packages or packages from xorg73 and xorg74 repository. Got it working after installing xorg packages from 10.3 on alpha0.
Comment 22 Stefan Dirsch 2007-12-20 14:03:05 UTC
This is even worse.

#compiz --no-libgl-fallback --ignore-desktop-hints --replace --indirect-rendering ccp
compiz (core) - Fatal: GLX_EXT_texture_from_pixmap is missing
compiz (core) - Error: Failed to manage screen: 0
compiz (core) - Fatal: No manageable screens found on display :0
Comment 23 Stefan Dirsch 2007-12-20 14:04:17 UTC
I'm testing with openSUSE 10.3 + compiz from Factory and the fglrx driver beta version built for openSUSE 10.3.
Comment 24 Jigish Gohil 2007-12-20 14:08:27 UTC
I got tfp missing on all the xorg I tried except for the one that came in 10.3.

Try the compiz-manager script I am attaching that works for me.
Comment 25 Jigish Gohil 2007-12-20 14:10:56 UTC
Created attachment 188400 [details]
compiz-mnager

starts compiz with correct options
Comment 26 Felix Rommel 2007-12-20 14:25:47 UTC
Created attachment 188401 [details]
xorg.conf for Intel graphic cards for AIGLX

@Stefan: if you have a Intel graphics chip, try the xorg.conf file. Then you have to start Compiz with

compiz --replace ccp & gtk-window-decorator --replace &

I use a newer Compiz 0.6.2 from SUSE community repositories.
Comment 27 Stefan Dirsch 2007-12-20 14:28:50 UTC
Felix, I'm testing with fglrx driver.
Comment 28 Stefan Dirsch 2007-12-20 16:02:16 UTC
Thanks, the script fixes my issues. It turned out that I need additionally
"--no-libgl-fallback" and "LIBGL_ALWAYS_INDIRECT=1" needs to be set as well,
e.g.

  LIBGL_ALWAYS_INDIRECT=1 compiz --no-libgl-fallback --replace ccp &
  emerald &

works for me now. :-)





  
Comment 29 Jigish Gohil 2007-12-20 16:08:47 UTC
Yay, so now we look forward to sax profile for fglrx so we do not have to modify xorg.conf manually to run AIGLX?
Comment 30 Stefan Dirsch 2007-12-20 16:16:37 UTC
Jigish, nothing has been decided yet WRT AIGLX/Xgl for fglrx driver, e.g. keyboard handling was completely broken with AIGLX. I'm now trying to get AIGLX running with intel.
Comment 31 Stefan Dirsch 2007-12-20 16:37:52 UTC
Ok. For intel I can use:

  compiz --replace ccp &
  emerald &

and even keyboard input works fine. So this seems to be a fglrx driver issue.

Comment 32 Jigish Gohil 2007-12-20 16:41:03 UTC
What keyboard issue? WORKSFORME and may others :)
Comment 33 Stefan Dirsch 2007-12-20 16:49:03 UTC
You can't type anything any more. You even won't get a prompt in a xterm. This is fglrx only.
Comment 34 Jigish Gohil 2007-12-21 08:45:11 UTC
Using fglrx 8.44 + AIGLX

1. LD_LIBRARY_PATH is no longer required.
2. Keyboard/mouse works without any issue
3. Monitor remains blank if resolution is configured using Sax2 (have to use aticonfig to correct xorg.conf)
4. Resolution 1440x900 is not detected at all (worked properly on 8.43)
I am stuck with 1280x1024 :(

Attaching the xorg.conf which is mix of sax, aticonfig generated and some manual additions to get rid of blank screen and AIGLX working.
Comment 35 Jigish Gohil 2007-12-21 08:46:21 UTC
Created attachment 188502 [details]
xorg for fglrx 8.44 + aiglx
Comment 36 Stefan Dirsch 2007-12-21 09:33:35 UTC
> 3. Monitor remains blank if resolution is configured using Sax2 (have to use
> aticonfig to correct xorg.conf)

Could you check if SaX2 generates a modeline? This always happen to me (related to non-working DDC caused by a broken monitor cable missing a pin) and is the culprit for the blank monitor. Removing the modeline fixes the issue. SaX2 no longer does this in factory.

>4. Resolution 1440x900 is not detected at all (worked properly on 8.43)
>I am stuck with 1280x1024 :(

No driver update without regression. Please consider opening a bugreport at the "upstream" bugzilla.
Comment 37 Stefan Dirsch 2008-03-14 17:14:22 UTC
Fixed for openSUSE 11.0 Alpha3

sax2.changes
-------------------------------------------------------------------
Fri Mar 14 15:20:31 CET 2008 - sndirsch@suse.de

- AIGLX+Composite4nv_nvidia_fglrx_intel.diff:
  * enable Composite for nv/nvidia (bnc #247374)
  * enable AIGLX + Composite for fglrx/intel (bnc #247374)

We verified that it doesn't hurt to have AIGLX/Composite enabled when the user still prefers Xgl.