Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 380737 - kde-base/kwin-4.6.5 - doesn't detect DRI2 in case of Intel GMA [patch]
Summary: kde-base/kwin-4.6.5 - doesn't detect DRI2 in case of Intel GMA [patch]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard: fixed in 4.7.0
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-26 12:34 UTC by Balazs Nemeth
Modified: 2011-09-06 05:18 UTC (History)
0 users

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


Attachments
patch for kwin-4.6.5.ebuild (kwin-4.6.5-r1.patch,714 bytes, text/plain)
2011-08-26 12:34 UTC, Balazs Nemeth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Balazs Nemeth 2011-08-26 12:34:56 UTC
Created attachment 284697 [details]
patch for kwin-4.6.5.ebuild

kwin-4.6.5 fails to detect the DRI2 capability of Intel GMA.
As soon as you enable the Desktop Effects then kwin crashes.

This is a known issue by upstream: https://bugs.kde.org/show_bug.cgi?id=270942

This ticket is about to backport the fix from 4.7.0 to the current stable (4.6.5) version of kwin.

Fortunately the patch cleanly applicable to 4.6.5.

Patch is available here: http://commits.kde.org/kde-workspace/afe966579d56f85444c432a3a6adf026d2941bd5

I'll attach a patch against the modified ebuild.

Regards,
Balázs Németh



emerge --info
Portage 2.1.10.3 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.5, glibc-2.12.2-r0, 2.6.39-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.39-gentoo-r3-x86_64-Intel-R-_Core-TM-_i5_CPU_M_520_@_2.40GHz-with-gentoo-2.0.3
Timestamp of tree: Fri, 26 Aug 2011 00:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/ccache:          2.4-r9
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3                                                                                                                                                                                                              
sys-apps/openrc:          0.8.3-r1                                                                                                                                                                                                           
sys-apps/sandbox:         2.4                                                                                                                                                                                                                
sys-devel/autoconf:       2.13, 2.68                                                                                                                                                                                                         
sys-devel/automake:       1.9.6-r3, 1.11.1                                                                                                                                                                                                   
sys-devel/binutils:       2.21.1-r1                                                                                                                                                                                                          
sys-devel/gcc:            4.4.5                                                                                                                                                                                                              
sys-devel/gcc-config:     1.4.1-r1                                                                                                                                                                                                           
sys-devel/libtool:        2.4-r1                                                                                                                                                                                                             
sys-devel/make:           3.82                                                                                                                                                                                                               
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)                                                                                                                                                                                      
sys-libs/glibc:           2.12.2                                                                                                                                                                                                             
Repositories: gentoo unoffical-balabit-overlay                                                                                                                                                                                               
ACCEPT_KEYWORDS="amd64"                                                                                                                                                                                                                      
ACCEPT_LICENSE="* -@EULA PUEL skype-eula dlj-1.1 googleearth AdobeFlash-10 AdobeFlash-10.1"                                                                                                                                                  
CBUILD="x86_64-pc-linux-gnu"                                                                                                                                                                                                                 
CFLAGS="-march=native -O2 -pipe"                                                                                                                                                                                                             
CHOST="x86_64-pc-linux-gnu"                                                                                                                                                                                                                  
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"                                                                                                                                           
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"                                                            
CXXFLAGS="-march=native -O2 -pipe"                                                                                                                                                                                                           
DISTDIR="/_gentoo_portage/distfiles"                                                                                                                                                                                                         
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch webrsync-gpg"                                                                                                                                                                                                                                           
FFLAGS=""                                                                                                                                                                                                                                    
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.osuosl.org/"                                                                                                                    
LANG="hu_HU.UTF-8"                                                                                                                                                                                                                           
LC_ALL="hu_HU.UTF-8"                                                                                                                                                                                                                         
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en hu"
MAKEOPTS="-j3"
PKGDIR="/_gentoo_portage/packages"
PORTAGE_CONFIGROOT="/"
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="/_gentoo_portage/tmp"
PORTDIR="/_gentoo_portage/portage"
PORTDIR_OVERLAY="/_gentoo_portage/overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss exif fam firefox flac fortran ftp gdbm gdu gif gpm gtk iconv ipv6 jpeg kde kipi lcms libnotify mad mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl phonon plasma png policykit ppds pppd python qt3support qt4 readline sdl semantic-desktop session sse sse2 sse3 ssl ssse3 startup-notification svg sysfs syslog tcpd tiff truetype udev unicode usb vorbis x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en hu" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa intel fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

lspci

00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02) (prog-if 00 [VGA controller])
        Subsystem: Lenovo Device 215a
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 40
        Region 0: Memory at f2000000 (64-bit, non-prefetchable) [size=4M]
        Region 2: Memory at d0000000 (64-bit, prefetchable) [size=256M]
        Region 4: I/O ports at 1800 [size=8]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
                Address: fee0f00c  Data: 4159
        Capabilities: [d0] Power Management version 2
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [a4] PCI Advanced Features
                AFCap: TP+ FLR+
                AFCtrl: FLR-
                AFStatus: TP-
        Kernel driver in use: i915


# "kwin --replace" after I patched kwin

OpenGL vendor string:                   Tungsten Graphics, Inc
OpenGL renderer string:                 Mesa DRI Intel(R) Ironlake Mobile 
OpenGL version string:                  2.1 Mesa 7.11
OpenGL shading language version string: 1.20
Driver:                                 Intel
GPU class:                              i965
OpenGL version:                         2.1
GLSL version:                           1.20
Mesa version:                           7.11
X server version:                       1.10.2
Linux kernel version:                   2.6.39
Direct rendering:                       yes
Requires strict binding:                yes
GLSL shaders:                           yes
Texture NPOT support:                   yes
Comment 1 Balazs Nemeth 2011-08-26 12:39:40 UTC
before patching
# kwin --replace 

OpenGL vendor string:                   Tungsten Graphics, Inc                                                                                                                                                         
OpenGL renderer string:                 Mesa DRI Intel(R) Ironlake Mobile                                                                                                                                              
OpenGL version string:                  1.4 (2.1 Mesa 7.11)                                                                                                                                                            
Driver:                                 Intel                                                                                                                                                                          
GPU class:                              i965                                                                                                                                                                           
OpenGL version:                         1.4                                                                                                                                                                            
Mesa version:                           7.11                                                                                                                                                                           
X server version:                       1.10.2                                                                                                                                                                         
Linux kernel version:                   2.6.39                                                                                                                                                                         
Direct rendering:                       no                                                                                                                                                                             
Requires strict binding:                yes                                                                                                                                                                            
GLSL shaders:                           no                                                                                                                                                                             
Texture NPOT support:                   yes
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2011-08-27 22:13:35 UTC
I'd suggest you update to 4.7.0 instead (where the fix is already applied).
It's in the tree for over a month now, and if my colleagues from the kde team agree, I'll file a stablereq (without kdepim) after our meeting on tuesday...
Comment 3 Balazs Nemeth 2011-08-28 06:33:34 UTC
(In reply to comment #2)
> I'd suggest you update to 4.7.0 instead (where the fix is already applied).
> It's in the tree for over a month now, and if my colleagues from the kde team
> agree, I'll file a stablereq (without kdepim) after our meeting on tuesday...

I'll update to 4.7.0 as soon as it gets stable. Unfortunately I need to stick to the "as less keyworded packages as possible" policy. :)

Anyway I've been running the patched version for a couple of days now and so far it seems okay.
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2011-09-05 22:19:02 UTC
Fixed in kwin-4.6.5-r1
Comment 5 Balazs Nemeth 2011-09-06 05:18:41 UTC
(In reply to comment #4)
> Fixed in kwin-4.6.5-r1

Thank you very much!