Bug 6153

Summary: DGA - XDGAOpenFramebuffer() fails
Product: xorg Reporter: James A Wright <james>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED WONTFIX QA Contact: Xorg Project Team <xorg-team>
Severity: major    
Priority: high    
Version: 6.9.0   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Xorg.0.log
none
my xorg.conf none

Description James A Wright 2006-03-06 03:41:35 UTC
I have an app that calls XDGAOpenFramebuffer() but it always seem to fail since
installing 6.9.0. I reinstalled the previous version (6.8.2) and the app works
fine. This happens on my desktop with the "nvidia" driver and my laptop with the
"radeon" driver.
Comment 1 Michel Dänzer 2006-03-07 03:31:12 UTC
Please attach (as opposed to paste) log files and corresponding config files.
Comment 2 James A Wright 2006-03-07 04:55:24 UTC
Created attachment 4845 [details]
Xorg.0.log

Attached log file as requested...
Comment 3 James A Wright 2006-03-07 04:56:21 UTC
Created attachment 4846 [details]
my xorg.conf 

Attached my "xorg.conf" file as requested...
Comment 4 James A Wright 2006-03-07 05:00:22 UTC
Note that i don;t see any erros occuring in the log file I attached above, but
what I do see is this when i try to run my test app:

JDraw - Detected DGA Mode: 5 640x480x8 60.0Hz
JDraw - Unable to open the DGA framebuffer
If you want to use X11 DGA, please make sure this executable is SUID root.

The code that generates this is:
  /* See if we can open access to the framebuffer */
  if (!XDGAOpenFramebuffer(Xdga.XDisplay, Xdga.XScreen)){
      puts("JDraw - Unable to open the DGA framebuffer");
      puts("\nIf you want to use X11 DGA, please make sure this executable is
SUID root.\n");
      XCloseDisplay(Xdga.XDisplay);
      Xdga.XDisplay = NULL;
      return FALSE;
  }


The only time this call normally fails is when the app is run by a user that
doesn;t have the required privs ie. non-root.  But since 6.9.0 it seems even
when i run it as "root" it fails...
Comment 5 James A Wright 2006-03-08 23:57:55 UTC
reassigned back to NEW
Comment 6 Michel Dänzer 2006-03-09 00:11:37 UTC
AFAIK the nvidia driver disables the non-mouse functionality of the DGA
extension by default. I suggest looking for this in its documentation.

The radeon driver doesn't support the non-mouse functionality of the DGA
extension with EXA. If you're not using EXA, please attach config and log files
for the radeon driver.
Comment 7 James A Wright 2006-03-09 00:21:34 UTC
(In reply to comment #6)
> AFAIK the nvidia driver disables the non-mouse functionality of the DGA
> extension by default. I suggest looking for this in its documentation.
> 
> The radeon driver doesn't support the non-mouse functionality of the DGA
> extension with EXA. If you're not using EXA, please attach config and log files
> for the radeon driver.

hmmm... so how is it it only stopped functioning since i installed xorg 6.9.0,
even though i'm using the same revision of the nVidia driver (7676)? 

Also when i boot into my other distro (Ubuntu) which has xorg 6.8.2 and the
nvidia driver also the app works fine!



Comment 8 Daniel Stone 2007-02-27 01:30:47 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 9 Jeremy Huddleston Sequoia 2011-10-02 02:04:20 UTC
Nobody is going to spend time fixing DGA when there are better alternatives.  
DGA will be dropped as soon as possible ;)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.