Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 237068 - x11-drivers/xf86-video-i810-2.4.2-r1 xorg-server-1.5.0 mesa-7.1 DRI enabled by looks weird
Summary: x11-drivers/xf86-video-i810-2.4.2-r1 xorg-server-1.5.0 mesa-7.1 DRI enabled b...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL: http://bugs.freedesktop.org/show_bug....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-08 14:41 UTC by Maciej Józiewicz
Modified: 2008-09-09 05:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
my current xorg.conf (xorg.conf,2.18 KB, text/plain)
2008-09-08 14:43 UTC, Maciej Józiewicz
Details
my Xorg log (Xorg.0.log,20.98 KB, text/plain)
2008-09-08 14:43 UTC, Maciej Józiewicz
Details
screenshot of glxgears (zrzutekranu.png,620.96 KB, image/png)
2008-09-08 14:44 UTC, Maciej Józiewicz
Details
output of glxinfo (glxinfo-output,7.00 KB, text/plain)
2008-09-08 14:49 UTC, Maciej Józiewicz
Details
Output of emerge --info (einfo,3.44 KB, text/plain)
2008-09-08 15:24 UTC, Gregor Best
Details
Output of lspci -v (pci,9.43 KB, text/plain)
2008-09-08 15:25 UTC, Gregor Best
Details
My Xorg.conf (xorg.conf,2.44 KB, text/plain)
2008-09-08 15:25 UTC, Gregor Best
Details
my Xorg.0.log (Xorg.0.log,60.04 KB, text/plain)
2008-09-08 15:26 UTC, Gregor Best
Details
my lspci -v output (lspci-output,10.48 KB, text/plain)
2008-09-08 15:38 UTC, Maciej Józiewicz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Józiewicz 2008-09-08 14:41:00 UTC
I have a Lenovo N200 with a GM965 chipset (X3100 graphics). I tried lots of different settings combinations in xorg.conf.

When Direct rendering is enabled both glxinfo and glxgears give this error:
"Failed to initialize TTM buffer manager.  Falling back to classic."

glxgears looks weird, is really slow (60 fps) and messes up everythin on the same "height" (screenshot attached). The affected windows/parts-of-desktop are redrawn after moving something on top of them etc. I'll attach a screenshot.

Games tend to crash the system - besides the fact that I can't see much. The system is unresponsive then but sometimes shuts down cleanly after I press the power button.

(I'm not sure if it's critical but it does crash and hang...)

Reproducible: Always

Steps to Reproduce:
1. startx
2. run glxgears or some other accelerated app

Actual Results:  
It looks as on the screenshot. Affects other apps. Uses very little cpu (2%).

Expected Results:  
Should look normal and run faster.

Portage 2.1.4.4 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r7 x86_64 Intel(R) Pentium(R) Dual CPU T2370 @ 1.73GHz
Timestamp of tree: Mon, 08 Sep 2008 13:16:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.vectranet.pl/gentoo/ ftp://ftp.vectranet.pl/gentoo/ http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl http://gentoo.po.opole.pl ftp://gentoo.po.opole.pl ftp://mirror.icis.pcz.pl/gentoo/ http://gentoo.mirror.pw.edu.pl/ "
LANG="pl_PL.utf8"
LC_ALL="pl_PL.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 apm avahi bash-completion berkdb bluetooth branding bzip2 cairo caps cddb cdr cli cracklib crypt css cups dbus dga djvu dri dts dvd dvdr dvdread eds encode esd exif fbcon ffmpeg flac fltk fortran gd gdbm gif gimp glut gnome gnutls gphoto2 gpm gstreamer gtk gtkhtml guile hal hddtemp iconv ieee1394 imagemagick imlib ipv6 java javascript jpeg jpeg2k lame latex lcms libcaca libgda libnotify lm_sensors lzo mad matroska midi mime mmx mng mono mp3 mpeg mplayer mudflap multilib musepack ncurses networkmanager nls nptl nptlonly nsplugin offensive ogg openal opengl openmp pam pcmcia pcre pda pdf perl png portaudio ppds python qt3 qt4 quicktime rdesktop readline reflection samba scanner sdl session slang spell sse sse2 ssl startup-notification svg symlink sysfs tcpd theora threads tiff tk truetype unicode usb vcd videos vim-syntax vorbis wavpack wifi wma wmf x264 xattr xine xinerama xml xorg xosd xpm xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Maciej Józiewicz 2008-09-08 14:43:02 UTC
Created attachment 164919 [details]
my current xorg.conf
Comment 2 Maciej Józiewicz 2008-09-08 14:43:51 UTC
Created attachment 164920 [details]
my Xorg log
Comment 3 Maciej Józiewicz 2008-09-08 14:44:47 UTC
Created attachment 164921 [details]
screenshot of glxgears
Comment 4 Maciej Józiewicz 2008-09-08 14:49:29 UTC
Created attachment 164923 [details]
output of glxinfo

The "Failed to initialize TTM buffer manager.  Falling back to classic." line is from the stderr and not stdout (ok I don't if it's written in C but I guess you get what I mean). So when I did 'glxinfo >> glxinfo-output' it was on the console and not in the file.
Comment 5 Gregor Best 2008-09-08 15:24:26 UTC
Created attachment 164925 [details]
Output of emerge --info
Comment 6 Gregor Best 2008-09-08 15:25:06 UTC
Created attachment 164927 [details]
Output of lspci -v
Comment 7 Gregor Best 2008-09-08 15:25:45 UTC
Created attachment 164928 [details]
My Xorg.conf
Comment 8 Gregor Best 2008-09-08 15:26:09 UTC
Created attachment 164930 [details]
my Xorg.0.log
Comment 9 Gregor Best 2008-09-08 15:26:59 UTC
I can confirm this bug, on my system it occured after an emerge --deep --update --newuse world, which gave me xorg-server-1.5.0 and xf86-video-i810-2.4.2-r1 . No program using GL works, most just show a black screen and lead to an unresponsive system (with MagicSysRq working). Others (like glxgears) just display ""Failed to initialize TTM buffer manager.  Falling back to classic." and die after a few seconds with a SIGSEV. glxinfo completely messes up the screen, leaving only a strip of about 20 pixels on the top of the screen intact, the rest is covered with a noisy white (don't know how to describe it better). The system is totally unresponsive in such a situation.

Worse that that, even after downgrading to xorg-server-1.4.2 and xf86-video-i810-2.4.0 the problem stays the same.

I attached the output of emerge --info, lspci -v, my xorg.conf and my Xorg.0.log.
Comment 10 Maciej Józiewicz 2008-09-08 15:38:25 UTC
Created attachment 164933 [details]
my lspci -v output

I guess I should submit that as well :)
Comment 11 Gregor Best 2008-09-08 15:49:29 UTC
Good news, I have a workaround for this problem. It seems it is not related to the version of xf86-video-i810. After I downgraded libdrm from libdrm-2.3.1 to libdrm-2.3.0 and mesa from mesa-7.1 to mesa-7.0.3, at least glxgears works without any problems. I yet have to check whether this is libdrm or mesa related and if the problem also occurs with xorg-server-1.5.0. I have not yet checked any other GL-using programs, but I will do so after submitting this comment.
Comment 12 Maciej Józiewicz 2008-09-08 16:36:33 UTC
(In reply to comment #11)
But with xorg-server-1.5.0 I can't downgrade mesa below 7.1 therefore I can't downgrade libdrm below 2.3.1.

So unless I want to downgrade also xorg (which I don't) there is no workaround for this (yet).

Comment 13 Rémi Cardona (RETIRED) gentoo-dev 2008-09-08 17:20:53 UTC
Could you guys try disabling framebuffer compression?

Thanks
Comment 14 Maciej Józiewicz 2008-09-08 18:05:10 UTC
(In reply to comment #13)
> Could you guys try disabling framebuffer compression?
> 
> Thanks
> 

Didn't change a thing - it still looks ugly/weird and is just as slow.

Thanks for interest though :)
Comment 15 Rémi Cardona (RETIRED) gentoo-dev 2008-09-08 22:45:14 UTC
Hum, this bug is beyond my knowledge...

All I can suggest now is to open a new bug in FreeDesktop's bugzilla : https://bugs.freedesktop.org/

Please read http://intellinuxgraphics.org/how_to_report_bug.html before filing the bug, and please add "remi@gentoo.org" as a CC there.

Thanks
Comment 16 Maciej Józiewicz 2008-09-09 00:29:58 UTC
Done.

It's here:
https://bugs.freedesktop.org/show_bug.cgi?id=17491

I changed it to UPSTREAM. If I should not have done so then please change it back or notify me. 
Comment 17 Rémi Cardona (RETIRED) gentoo-dev 2008-09-09 05:57:57 UTC
Nope, that's fine. A big thank you for taking the time to open the upstream bug.

See you in FreeDesktop's bugzilla :)