Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 243780 - Two issues when using xf86-video-intel 2.X not seen in 1.7.4 relating to fonts and performance
Summary: Two issues when using xf86-video-intel 2.X not seen in 1.7.4 relating to font...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-24 03:06 UTC by Scott
Modified: 2008-11-01 17:43 UTC (History)
0 users

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


Attachments
Desktop appearance under 2.4.2-r3 (Screenshot2X.png,965.19 KB, image/png)
2008-10-24 03:11 UTC, Scott
Details
(Proper) Desktop appearance under the legacy 1.7.4 drivers (Screenshot174.png,989.13 KB, image/png)
2008-10-24 03:13 UTC, Scott
Details
(Broken) glxgears output under 2.4.2-r3 (ScreenshotGLX2X.png,385.44 KB, image/png)
2008-10-24 03:13 UTC, Scott
Details
(Expected) glxgears output under the legacy 1.7.4 drivers (ScreenshotGLX174.png,305.94 KB, image/png)
2008-10-24 03:14 UTC, Scott
Details
Xorg.0.log after X restart and glxgears call (Xorg.0.log,40.61 KB, text/plain)
2008-10-24 22:42 UTC, Scott
Details
Xorg.0.log with AIGLX disabled. (Xorg.0.log,40.51 KB, text/plain)
2008-10-25 15:39 UTC, Scott
Details
glxinfo with LIBGL_DEBUG set to verbose (glxinfo_verbose.txt,5.58 KB, text/plain)
2008-10-26 17:07 UTC, Scott
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scott 2008-10-24 03:06:44 UTC
There are two major issues I have with the 2.X series of drivers from intel.

1)  DRI does not work.
2)  My fonts are abnormally large (making my gnome-terminals also larger).  It seems my font DPI settings are being ignored in my xorg.conf.

Attached you will find my xorg.conf, and some screenshots.  The issues with 2X images occur both with and without the modline commented out in my xorg.conf.

The good news is removing xinerama support from all applications/libraries seems to have corrected my system lockups with the 2.X series.

Reproducible: Always

Steps to Reproduce:
1.  Install xf86-video-intel-2.X
2.  Restart X
3.  Work with GNOME/Run GLXGears.  You can see the issue right away in GDM when you login and your username is twice the size it should be.

Actual Results:  
See attached screenshots.

Expected Results:  
See attached screenshots.

Please do not deprecate 1.7.4 just yet :-)  I've added it to my package.unmask just so I can easily switch back and forth.
Comment 1 Scott 2008-10-24 03:08:38 UTC
Forgot my emerge --info...

Portage 2.1.4.5 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r8 i686)
=================================================================
System uname: 2.6.25-gentoo-r8 i686 Intel(R) Pentium(R) M processor 1400MHz
Timestamp of tree: Thu, 23 Oct 2008 23:45:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-util/cmake:      2.4.6-r1
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.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
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="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4m -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ "
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="us en en_US"
MAKEOPTS="-j2"
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.us.gentoo.org/gentoo-portage"
USE="X aac acl acpi aim alsa audiofile avahi berkdb bzip2 cdparanoia cdr cli cracklib crypt cups cxx dbus dri dvd dvdr encode exif firefox foomatic foomaticdb gdbm gif gimp ginac gnome gphoto2 gpm gstreamer gtk gtk2 hal iconv ieee1394 imagemagick ipod ipv6 isdnlog jabber java jikes jpeg jpeg2k lesstif lm_sensors logrotate midi mmx mono mozilla mp3 mpeg mplayer msn mudflap ncurses nls nptl nptlonly nsplugin openal opengl openmp pam pcmcia pcre pda pdf perl png posix pppd python quicktime rdesktop readline reflection session sharedmem simplexml slp sockets spell spl sqlite sse sse2 ssl svga sysfs tcpd threads tiff truetype unicode usb vim-syntax wifi win32codecs x86 xcomposite xine xml xorg xulrunner xvid yahoo zlib" ALSA_CARDS="intel8x0" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="us en en_US" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

And my xorg.conf...

$ cat /etc/X11/xorg.conf
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
    InputDevice    "TouchPad" "AlwaysCore"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        RgbPath      "/usr/share/X11/rgb"
        ModulePath   "/usr/lib/xorg/modules"
        ##Fonts##
        FontPath     "/usr/share/fonts/misc/"
        FontPath     "/usr/share/fonts/Type1/"
        FontPath     "/usr/share/fonts/100dpi/"
        FontPath     "/usr/share/fonts/75dpi/"
        FontPath     "/usr/share/fonts/ttf-bitstream-vera"
        FontPath     "/usr/share/fonts/cyrillic"
        FontPath     "/usr/share/fonts/encodings"
        FontPath     "/usr/share/fonts/util"
        FontPath     "/usr/share/fonts/corefonts/"
        FontPath     "/usr/share/fonts/cronyx/"
        FontPath     "/usr/share/fonts/default/"
        FontPath     "/usr/share/fonts/freefonts/"
        FontPath     "/usr/share/fonts/intlfonts/"
        FontPath     "/usr/share/fonts/terminus/"
EndSection

Section "Module"
        Load  "record"
        Load  "GLcore"
        Load  "xtrap"
        Load  "dbe"
        Load  "dri"
        Load  "glx"
        Load  "freetype"
        Load  "type1"
        SubSection  "extmod"
          Option    "omit xfree86-dga"   # don't initialise the DGA extension
        EndSubSection

EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
    Option "XkbRules"   "xorg"
        Option "XkbModel"   "pc104"
    Option "XkbLayout"  "en_US"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "InputDevice"
    Identifier  "TouchPad"
    Driver      "synaptics"
    Option      "Device"                "/dev/input/mouse1"
    Option      "Protocol"              "auto-dev"
    Option      "LeftEdge"              "120"
    Option      "RightEdge"             "830"
    Option      "TopEdge"               "120"
    Option      "BottomEdge"            "650"
    Option      "FingerLow"             "14"
    Option      "FingerHigh"            "15"
    Option      "MaxTapTime"            "180"
    Option      "MaxTapMove"            "110"
    Option      "EmulateMidButtonTime"  "75"
    Option      "VertScrollDelta"       "20"
    Option      "HorizScrollDelta"      "20"
    Option      "MinSpeed"              "0.3"
    Option      "MaxSpeed"              "0.75"
    Option      "AccelFactor"           "0.015"
    Option      "EdgeMotionMinSpeed"    "200"
    Option      "EdgeMotionMaxSpeed"    "200"
    Option      "UpDownScrolling"       "1"
    Option      "CircularScrolling"     "1"
    Option      "CircScrollDelta"       "0.1"
    Option      "CircScrollTrigger"     "2"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Dell"
        ModelName    "D400 LCD 12.1 XGA"
        # 1024x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 64.11 MHz
    Modeline "1024x768_60.00"  64.11  1024 1080 1184 1344  768 769 772 795  -HSync +Vsync
    DisplaySize 270.93333333333 203.2
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"                   # [<bool>]
        #Option     "SWcursor"                  # [<bool>]
        #Option     "ColorKey"                  # <i>
        #Option     "CacheLines"                # <i>
        #Option     "Dac6Bit"                   # [<bool>]
        #Option     "DRI"                       # [<bool>]
        #Option     "NoDDC"                     # [<bool>]
        #Option     "ShowCache"                 # [<bool>]
        #Option     "XvMCSurfaces"              # <i>
        #Option     "PageFlip"                  # [<bool>]
        Identifier  "Card0"
        Driver      "i810"
        VendorName  "Intel Corporation"
        BoardName   "82852/855GM Integrated Graphics Device"
        BusID       "PCI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        Subsection "Display"
            Depth       24
            Modes       "1024x768"
            ViewPort    0 0
        EndSubsection
EndSection

Section "DRI"
     Mode 0666
EndSection

Comment 2 Scott 2008-10-24 03:11:27 UTC
Created attachment 169670 [details]
Desktop appearance under 2.4.2-r3

This shows the large fonts and xterms under 2.4.2-r3
Comment 3 Scott 2008-10-24 03:13:01 UTC
Created attachment 169672 [details]
(Proper) Desktop appearance under the legacy 1.7.4 drivers

This is how the desktop looks under 1.7.4.
Comment 4 Scott 2008-10-24 03:13:50 UTC
Created attachment 169674 [details]
(Broken) glxgears output under 2.4.2-r3

Broken DRI under 2.X.
Comment 5 Scott 2008-10-24 03:14:32 UTC
Created attachment 169676 [details]
(Expected) glxgears output under the legacy 1.7.4 drivers

DRI works.
Comment 6 Rémi Cardona (RETIRED) gentoo-dev 2008-10-24 06:47:11 UTC
Ok about your fonts, you just need to set the proper DPI using Gnome's appearance configuration applet. This is basically a known bug on xorg-server 1.3 which I think you're using.

About DRI, I'm going to need more info. Could you please attach /var/log/Xorg.0.log ?

One last thing, please comment out those lines, they should not be needed anymore with newer servers:

    # 1024x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 64.11 MHz
    Modeline "1024x768_60.00"  64.11  1024 1080 1184 1344  768 769 772 795 
-HSync +Vsync
    DisplaySize 270.93333333333 203.2

Thanks
Comment 7 Scott 2008-10-24 22:42:29 UTC
Created attachment 169768 [details]
Xorg.0.log after X restart and glxgears call

After commenting out the DisplaySize and ModeLine, a stop/start of xdm, and a quick glxgears call (still broken), this is the Xorg log.
Comment 8 Rémi Cardona (RETIRED) gentoo-dev 2008-10-25 10:45:17 UTC
Could you try disabling AIGLX?

And for the display size, which one is correct? Your values of 270.93333333333 and 203.2 seem a bit weird to me...

Thanks :)
Comment 9 Scott 2008-10-25 15:37:39 UTC
This display size was calculated based ont his thread on the forums:

http://forums.gentoo.org/viewtopic-t-514639-highlight-.html

Which basically is a calculation which created a 1024x768 desktop w/ 96dpi fonts.

The following was added to my xorg.conf:

# Added 2008-10-25 as per Remi
# Debugging step to try and fix
# direct rendering
Section "ServerFlags"
    Option "AIGLX" "off"
EndSection

X was started, and the DRI issue remains.

I will attach the new Xorg.0.log.
Comment 10 Scott 2008-10-25 15:39:13 UTC
Created attachment 169830 [details]
Xorg.0.log with AIGLX disabled.
Comment 11 Scott 2008-10-26 17:07:32 UTC
Created attachment 169944 [details]
glxinfo with LIBGL_DEBUG set to verbose

AIGLX re-enabled, glxinfo (verbose) output.  I have tried rebuilding most of X, has not helped (after trying to upgade to xorg-server 1.5, one of the packages had a name collision so I had to roll back).
Comment 12 Scott 2008-10-31 02:48:36 UTC
Ok, I masked a whole lot to upgrade Xorg 7.4 with xorg-server 1.5.  My fonts in gnome look terrible (still working on that) but at least DRI works.  My only issue now is that TTF is not supported, so my DRI is slow, but at least enabled.

So, the solution to my bug is as follows:
1)  Fix DPI in gnome.
2)  Unmask xorg-x11 by adding ~x86 for all required packages (scripting this is highly recommended) and rebuilding X, also unmask the xf86-video-intel driver so you pick up 2.5.0 (which wont build unless you upgrade to xorg-server 1.5, part of unmasking to install xorg-X11-7.4)...

So DRI is still broken, but for very different reasons that this bug originally stated.

This thread talks about what is wrong:

http://forums.gentoo.org/viewtopic-t-706953-highlight-glxgears.html
Comment 13 Rémi Cardona (RETIRED) gentoo-dev 2008-10-31 07:37:56 UTC
Could you be a little bit more precise? What versions are you currently using? Is there anything left to fix? Your last message is not very clear...

Thanks
Comment 14 Scott 2008-10-31 22:33:47 UTC
Upgraded to xf86-video-intel-2.5.0, xorg-server-1.5.2, x11-base/xorg-x11-7.4.  It fixed DRI, but I get a warning about missing TTM and my FPS is less than 30.
Comment 15 Rémi Cardona (RETIRED) gentoo-dev 2008-10-31 23:38:42 UTC
TTM is gone, so that's normal. As for the low FPS, please check with glxinfo that "Intel DRI" is used, and not "Software Renderer DRI".

If the Intel DRI driver is indeed used, then I guess there's nothing left to do but to wait for GEM to stabilize. It's the only way to get decent perfs for Intel hardware.

I'm currently trying to push upstream to do some work on older chipset (so far, anything older than 965 may or may not work as they've barely tested those...)

Thanks
Comment 16 Scott 2008-11-01 04:10:50 UTC
It says:
(glxinfo | grep -i rend)

direct rendering: Yes
OpenGL renderer string: Mesa DRI Intel(R) 852GM/855GM 20061102 x86/MMX/SSE2

Comment 17 Rémi Cardona (RETIRED) gentoo-dev 2008-11-01 08:07:22 UTC
As far as I'm concerned, everything is fixed... (Probably not what you wanted to hear)

For the performance side of things, we'll have to wait for GEM. Maybe you could also open a bug over at http://bugs.freedesktop.org ...

Thanks
Comment 18 Scott 2008-11-01 17:43:59 UTC
I agree this bug is fixed; the remaining issue is not within your control.  Now I just need to wait for a slew of packages to be marked stable so I can cleanup my package.keywords.  Thanks for all the help.