glxinfo: 'Direct rendering: no' on 915GM video chipset on Gutsy

Bug #154104 reported by Ralph Bonnell
16
Affects Status Importance Assigned to Milestone
xserver-xorg-video-intel (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: xserver-xorg-video-intel

I had beryl working on Feisty. When I upgraded to Gutsy my X environment is much. much slower. After reading various postings, it seems Direct rendering should be on, and it is not. I have a Fujitsu P7120D with an intel 915GM chipset. I have tried the 'i810' driver (Which was default) as well at the 'intel' driver in my xorg.conf file. Also glxgears crashes X. I will attach the output of xorg.conf, Xorg.0.log, and glxinfo.

Revision history for this message
Ralph Bonnell (ralph-bonnell) wrote :
Revision history for this message
Ralph Bonnell (ralph-bonnell) wrote :
Revision history for this message
Ralph Bonnell (ralph-bonnell) wrote :
Revision history for this message
Ralph Bonnell (ralph-bonnell) wrote :

I should probably mention that when I upgraded, I allowed the installer to uninstall beryl and all obsoleted packages. My notebook is running the new compiz-fusion packages.

Revision history for this message
Xamusk (ronanpaixao) wrote :

I can confirm that, both with the intel driver and with the i810 one.
glxgears doesn't work as expected, with slow framerate, even if it shows good numbers. It appears software rendering.

Revision history for this message
Peter Clifton (pcjc2) wrote :

Can you reproduce the crash with the "intel" driver please, and after you restart, post the log file /var/log/Xorg.0.log.old

Thanks!

Changed in xserver-xorg-video-intel:
status: New → Incomplete
Revision history for this message
Ralph Bonnell (ralph-bonnell) wrote :
Revision history for this message
Peter Clifton (pcjc2) wrote :

Can you post the output of the command:
xrandr

I'm wondering.. do you have your monitors setup in a side-by side configuration? If so, the 1280x1024 and 1280x768 stacked side by side will exceed the 2048 maximum width for certain operations. I just noticed my glxinfo direct rendering reports as off with a wide twin monitor setup (I just turned it on to try and reproduce a different bug).

Revision history for this message
Ralph Bonnell (ralph-bonnell) wrote :

cyber@kusanagi:~$ xrandr
X Error of failed request: BadRequest (invalid request code or no such operation)
  Major opcode of failed request: 151 (RANDR)
  Minor opcode of failed request: 6 ()
  Serial number of failed request: 9
  Current serial number in output stream: 9
cyber@kusanagi:~$

I am an instructor, so I constantly have to plug into external video for class purposes. I always use 1024x768 out my external video port, and this system never works with both screens active, so I use a Y cable and plug into a projector and a spare monitor at my various training centers. I have not been able to make both screens work at the same time yet... An hour ago I was still in a classroom so my video was going out my external port only when I ran that last test.

Revision history for this message
Peter Clifton (pcjc2) wrote :

Is that with the "intel" driver?, as from the last log I posted, it seems that the RANDR extention loaded ok.

Revision history for this message
Ralph Bonnell (ralph-bonnell) wrote :

Yup! It is with the 'intel' driver. It seems to load the extension, but when I run xrandr i get the BadRequest. Is there a command I can run to see which extensions loaded properly? I can try compiling the driver on http://www.intellinuxgraphics.org/ but I don't think that should be necessary as I only have a 915GM. I was hoping to keep my ubuntu distro in the dpkg database properly.

Revision history for this message
Dean Povey (dean-povey) wrote :

Please note, I have more or less the same graphics setup (Dell Optiplex 520 with and identical problems. Since upgrading from Feisty to Gutsy I notice that window redraws were happening very slowly. Following all the above instructions leads to similar results with one exception: glxgears crashes the Xserver (nothing interesting in the Xorg.0.log file).

I tried deleting Xorg.conf and reconfiguring with dpkg-reconfigure in case something in old xorg.conf was causing it, but no joy.

Revision history for this message
Dean Povey (dean-povey) wrote :

Sorry that should have been (Dell Optiplex 520 with Intel 82945G/GZ integrated controller and using the i810 driver).

Revision history for this message
Ralph Bonnell (ralph-bonnell) wrote :

Any ideas? I am going to downgrade soon as this video performance makes my system to slow to use. Should I try compiling the http://www.intellinuxgraphics.org/ drivers?

Revision history for this message
Sumant Oemrawsingh (soemraws) wrote :

Did you try to remove xserver-xorg-xgl? Whereas Feisty needed that, Gutsy doesn't anymore, and xserver-xorg-video-intel is all that is needed (for intel video cards of course).

Revision history for this message
Dean Povey (dean-povey) wrote :

I removed xserver-xgl package (which is what I assume you meant) and at that seems to fix the problem. Window refresh works fine and glxgears does not crash and is nice and smooth as expected. I can also turn on "Extra Visual Effects" in Appearance Preferences without the screen going crazy which wasn't working before.

So far this seems to pretty much fix the problem for me.

Revision history for this message
Ralph Bonnell (ralph-bonnell) wrote :

WOOHOO!! Removing the xserver-xgl package worked for me too! The question now is why did the installer not do this for me... Well, anyhow, thanks!

Revision history for this message
Martin Eisenhardt (martin-eisenhardt) wrote :

This problem still exists for me. I have a Samsung X20 with a mobile 915G integrated graphics controller.

Until about last week, compiz-fusion worked fine using the normal xserver-xorg. After some updates (the "normal" ones coming out of the standard repositories!), compiz-fusion stopped working and complains in the following way:

mneisen@samsumm:~$ compiz --replace
Checking for Xgl: not present.
Detected PCI ID for VGA: 00:02.0 0300: 8086:2592 (rev 03) (prog-if 00 [VGA])
Checking for texture_from_pixmap: present.
Checking for non power of two support: present.
Checking for Composite extension: present.
Comparing resolution (1400x1050) to maximum 3D texture size (2048): Passed.
Checking for nVidia: not present.
Checking for FBConfig: present.
Checking for Xgl: not present.
Starting kde-window-decorator
/usr/bin/compiz.real (core) - Fatal: No GLXFBConfig for default depth, this isn't going to work.
/usr/bin/compiz.real (core) - Error: Failed to manage screen: 0
/usr/bin/compiz.real (core) - Fatal: No manageable screens found on display :0

If I install XGL, compiz will work, but it is unbearingly slow - and it wasn't that slow until last week. Plus, I have noticed that my GFX card has no direct rendering any more:

mneisen@samsumm:~$ glxinfo | grep direct
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
OpenGL renderer string: Mesa GLX Indirect

I would appreciate if someone could sort this out. If you need any additional information, please do not hesitate to ask.

Revision history for this message
marianne (marianne-promberger) wrote :

I have the same problem as Martin. Xubuntu Gutsy on a Thinkpad X41
Video card: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev03)

Using "intel" driver in xorg.conf.

xrandr works fine to project to an external monitor with dual monitor setup, but:

compiz --replace

gives:

Checking for Xgl: not present.
Detected PCI ID for VGA: 00:02.0 0300: 8086:2592 (rev 03) (prog-if 00 [VGA])
Checking for texture_from_pixmap: present.
Checking for non power of two support: present.
Checking for Composite extension: present.
Comparing resolution (1024x768) to maximum 3D texture size (2048): Passed.
Checking for nVidia: not present.
Checking for FBConfig: present.
Checking for Xgl: not present.
Starting emerald

(emerald:6204): Wnck-WARNING **: Property _NET_WM_NAME contained invalid UTF-8

/usr/bin/compiz.real (core) - Fatal: No GLXFBConfig for default depth, this isn't going to work.
/usr/bin/compiz.real (core) - Error: Failed to manage screen: 0
/usr/bin/compiz.real (core) - Fatal: No manageable screens found on display :0.0
exec: 378: /usr/bin/metacity: not found

and I get the same as MArtin for glxinfo | grep direct

thanks,
m.

Revision history for this message
derwiki (derewecki) wrote :

I have the same problem as Martin and marianne on a Thinkpad Z60t with an Intel graphics card. This is a fresh install of Xubuntu 7.10.

From lspci:
00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 03)

glxinfo | grep direct
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
OpenGL renderer string: Mesa GLX Indirect

compiz --replace
Checking for Xgl: not present.
Detected PCI ID for VGA: 00:02.0 0300: 8086:2592 (rev 03) (prog-if 00 [VGA])
Checking for texture_from_pixmap: present.
Checking for non power of two support: present.
Checking for Composite extension: present.
Comparing resolution (1280x768) to maximum 3D texture size (2048): Passed.
Checking for nVidia: not present.
Checking for FBConfig: present.
Checking for Xgl: not present.
Starting emerald
/usr/bin/compiz.real (core) - Fatal: No GLXFBConfig for default depth, this isn't going to work.
/usr/bin/compiz.real (core) - Error: Failed to manage screen: 0
/usr/bin/compiz.real (core) - Fatal: No manageable screens found on display :0.0

Let me know if there's anything you need from me to help resolve this issue!

Revision history for this message
Mark Rijckenberg (markrijckenberg) wrote :

Hi all,

I am using a Dell Latitude D510 and using the intel driver (not the i810 driver) in Ubuntu Hoary (8.04 pre-release version).

I have attached a working version of xorg.conf that enables direct rendering on my pc and that allows compiz-fusion to work correctly. I installed fusion-icon using aptitude and run "fusion-icon" as a shell command whenever I want to activate compiz-fusion.

When launching fusion-icon, it gives the following feedback in the KDE konsole. So it complains, but compiz-fusion works anyway, by reverting to indirect rendering....

* Detected Session: kde
 * Searching for installed applications...
 * Intel detected, exporting: INTEL_BATCH=1
 * No GLX_EXT_texture_from_pixmap with direct rendering context
 ... present with indirect rendering, exporting: LIBGL_ALWAYS_INDIRECT=1
 * Using the GTK Interface
 * Starting Compiz
 ... executing: compiz.real --replace --sm-disable --ignore-desktop-hints ccp --indirect-rendering
compiz.real (core) - Warn: Unable to parse XML metadata from file "ccp.xml"
compiz.real (dbus) - Error: dbus_bus_get error: Failed to execute dbus-launch to autolaunch D-Bus session
compiz.real (dbus) - Error: InitObject failed
compiz.real (core) - Error: Couldn't activate plugin 'dbus'
compiz.real (video) - Warn: No 8 bit GLX pixmap format, disabling YV12 image format
compiz.real (dbus) - Error: dbus_bus_get error: Failed to execute dbus-launch to autolaunch D-Bus session
compiz.real (dbus) - Error: InitObject failed

See following URL for info on how to clean up and reinstall compiz-fusion from scratch in Ubuntu Gutsy Gibbon:

http://kevin.vanzonneveld.net/techblog/article/upgrade_to_ubuntu_gutsy_with_compizfusion/

Hope this helps you out!

Merry Christmas to everyone,

Mark Rijckenberg

Revision history for this message
marianne (marianne-promberger) wrote :

Thanks Mark! Fantastic.

Your xorg.conf works for me -- just copied it and overwrote mine.

"compiz --replace & " now gets a running compiz. I don't even get any error messages at the console.

"glxinfo | grep direct" gives "direct rendering: Yes"

(I don't know what you mean with fusion-icon. "sudo aptitude install fusion icon" for me finds no package. But I has already installed compiz and emerald before and now it works.

When I have time (after New Year's), I'll compare my xorg.conf to yours and see what the critical difference might be, and post the result here.

Thanks again for posting!
m.

Revision history for this message
Mark Rijckenberg (markrijckenberg) wrote :

@marianne: I am using the cutting edge Kubuntu "Hardy Heron" (v8.04) repositories in my sources.list.

Here is how I installed fusion-icon:

$ sudo aptitude install fusion-icon
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following NEW packages will be installed:
  fusion-icon
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 28.8kB of archives. After unpacking 270kB will be used.
Writing extended state information... Done
Get:1 http://be.archive.ubuntu.com hardy/universe fusion-icon 0.0.0+git20071028-0ubuntu2 [28.8kB]
Fetched 28.8kB in 0s (83.0kB/s)
Selecting previously deselected package fusion-icon.
(Reading database ... 172361 files and directories currently installed.)
Unpacking fusion-icon (from .../fusion-icon_0.0.0+git20071028-0ubuntu2_all.deb) ...
Setting up fusion-icon (0.0.0+git20071028-0ubuntu2) ...

"Fusion-icon" replaces the old command "beryl-manager" that existed before compiz-fusion. Both are very handy tray icons.

Regards,

Mark

Revision history for this message
Ubuntu Tinkerer (rationaltree) wrote :

I really don't think this is a bug.... it isn't hard to fix neither.

Just add

 Option "DRI" "true"

in the device section that deals with your graphic card drivers. Yeah, I'm talking about xorg.conf

Also, you must add

   Load "dri"

in your module section.

Seriously, doing this is far much better than just copy-paste some other guys xorg.conf! If you ask me that is just crazy! xorg.conf does like hundreds and hundreds of things. If you get luckily and it works, then it is only a matter of time when you get some other problems!

Well atleast this worked out fine for me!

Revision history for this message
Ubuntu Tinkerer (rationaltree) wrote :

Also, I'm pretty sure that your compiz problem has its roots in something else! Cause my glxinfo also said that direct rendering was not enabled. But I was still able to get compiz running under aiglx.

But I must say something else too. I am using ATI 9800, so maybe we are not dealing with the same kind of issue. Sorry if that is true.

But I suspect that I'm right since I can't find

   Option "DRI" "true"

In Ralph Bonnells xorg.con

Revision history for this message
marianne (marianne-promberger) wrote :

PureRumble,

I agree that at least for me, this doesn't look like a bug, since now it works.

However, it didn't work when I already had
Option "DRI" "true"
and
 Load "dri"
in /etc/X11/xorg.conf

Find my entire xorg.conf before it worked attached.

Yes, of course I kept a backup of xorg.conf. And once I noticed that Mark's xorg.conf worked, I kept only the graphics sections. I want to get around to changing those, too, since they don't seem to work for me when I use an external monitor.

But with xorg.conf, there are so many settings, and up until now I haven't figured out exactly what it is in Mark's xorg.conf that I was missing -- at least not anything like a single line (but then again, I haven't had a lot of time lately to look through it carefully).

Revision history for this message
Veloce (kerry-mayes) wrote :

My experience, and discussion on the Ubuntu forum, suggests that this is an issue with the upgrade from Feisty to Gutsy. New Gutsy installations didn't have the problem.

Changes to xorg.conf were all in vain (and all the helpful comments from people who had done fresh installs of Gutsy were worse than useless!)

I initially fixed it by following the suggestion on the ubuntu forum to:

apt-get remove .*mesa.* .*xserver-xorg.*
apt-get install ubuntu-desktop

But I ended up doing a fresh install of Gutsy.

Revision history for this message
Bryce Harrington (bryce) wrote :

Sounds like Ralph and Dean got the original problem sorted out so am closing as fixed.

Martin, marianne, and others, also looks like you got your issue sorted out, but it sounds like it was unrelated to Ralph's original issue anyway. If anyone else has issues that sound similar to this, please open a new bug rather than reopening this one. Thanks!

Changed in xserver-xorg-video-intel:
status: Incomplete → Fix Released
Revision history for this message
Dyno (dyno-fu) wrote :

this is really a upgrade issule and install libgl1-mesa-dri will solve issue as Martin Eisenhardt run into. see bug#119353

Revision history for this message
Jany (janychany) wrote :

I can't enable direct rendering on my Gateway MX6638b laptop with Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller... I have Ubuntu 8.04 and I try to configure my xorg.conf but still can't enable dri...

Compiz works good but some effects are very slow... 3D is very very slow.

$ glxinfo
name of display: :0.0
libGL error: open DRM failed (Operation not permitted)
libGL error: reverting to (slow) indirect rendering
display: :0 screen: 0
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
[...]

Here is my xorg.conf:

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "InputDevice"
 Identifier "Generic Keyboard"
 Driver "kbd"
 Option "XkbRules" "xorg"
 Option "XkbModel" "pc105"
 Option "XkbLayout" "gb"
EndSection

Section "InputDevice"
 Identifier "Configured Mouse"
 Driver "mouse"
 Option "CorePointer"
EndSection

Section "InputDevice"
 Identifier "Synaptics Touchpad"
 Driver "synaptics"
 Option "SendCoreEvents" "true"
 Option "Device" "/dev/psaux"
 Option "Protocol" "auto-dev"
 Option "HorizEdgeScroll" "0"
 Option "SHMConfig" "true"
 Option "RightEdge" "5900"
 Option "HorizTwoFingerScroll" "1"
 Option "FastTaps" "1"
EndSection

Section "Device"
 Identifier "Configured Video Device"
EndSection

Section "Monitor"
 Identifier "Configured Monitor"
EndSection

Section "Screen"
 Identifier "Default Screen"
 Monitor "Configured Monitor"
 Device "Configured Video Device"
EndSection

Section "ServerLayout"
 Identifier "Default Layout"
 Screen "Default Screen"
 InputDevice "Synaptics Touchpad"
EndSection

How can I configure my xorg.conf to get direct rendering work??? Please help!!!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.