Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Problem with XGL and KDE 3.5
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
chittoor
n00b
n00b


Joined: 09 Apr 2006
Posts: 35

PostPosted: Sat Sep 23, 2006 4:33 am    Post subject: [SOLVED]Problem with XGL and KDE 3.5 Reply with quote

Hi! Today I though i'll give XGL a try and ended up with a strage problem.
Everything is fine without xgl but when I switch to xgl and restart xserver, I get a white desktop. Yup a white desktop. Everything seems to be in place (ie my panels, desktop icons etc) but the entire desktop is white. All programs start but even they are white. Also it looks like all the xgl effects are there (3d cube works. With all four faces white. BTW the top and bottom do have image properly displayed )

Here is my emere --info
Code:
emerge --info
Portage 2.1.2_pre1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4.90.20060915-r0, 2.6.17-beyond4 i686)
=================================================================
System uname: 2.6.17-beyond4 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo 2006.1
Gentoo Base System version 1.12.5
Last Sync: Thu, 21 Sep 2006 01:53:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 2.0.29
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17.50.0.3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -pipe -fno-ident -frename-registers"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -pipe -fno-ident -frename-registers -fno-enforce-eh-specs -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.gentoo.gr.jp/"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,--hash-style=both"
LINGUAS="en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/toolchain_overlay /usr/local/portage/xgl-coffee"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa arts bash-completion berkdb bitmap-fonts cairo cdr cli crypt cups dbus dlloader dri dvd dvdr eds elibc_glibc emboss encode esd fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal hashstyle input_devices_keyboard input_devices_mouse isdnlog jpeg kde kdehiddenvisibility kernel_linux ldap libg++ linguas_en_US mad mikmod mmx mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre perl png ppds pppd python qt3 qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl tcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_fbdev video_cards_i810 video_cards_nv video_cards_nvidia video_cards_radeon video_cards_vesa video_cards_vmware vorbis win32codecs xml xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS



Also I get some strage errors in Xorg and kdm log files

kdm.log

Code:
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Sep 23 09:46:25 2006
(==) Using config file: "/etc/X11/xorg.conf"
    xkb_keycodes             { include "xfree86+aliases(qwerty)" };
    xkb_types                { include "complete" };
    xkb_compatibility        { include "complete" };
    xkb_symbols              { include "pc(pc105)+us" };
    xkb_geometry             { include "pc(pc105)" };
    xkb_types                { include "%" };
    xkb_compatibility        { include "%" };
    xkb_symbols              { include "%" };
    xkb_geometry             { include "%" };
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Error:            Missing KeyNames section in a Keymap file
>                   Description of Keymap not compiled
Errors from xkbcomp are not fatal to the X server
(EE) Error loading keymap /usr/share/X11/xkb/compiled/server-0.xkm



Xorg.0.log
Code:
(II) XINPUT: Adding extended input device "Keyboard0" (type: KEYBOARD)
(II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE)
(II) XINPUT: Adding extended input device "NVIDIA Event Handler" (type: Other)
    xkb_keycodes             { include "xfree86+aliases(qwerty)" };
    xkb_types                { include "complete" };
    xkb_compatibility        { include "complete" };
    xkb_symbols              { include "pc(pc105)+us" };
    xkb_geometry             { include "pc(pc105)" };
(II) Mouse0: ps2EnableDataReporting: succeeded
    xkb_types                { include "%" };
    xkb_compatibility        { include "%" };
    xkb_symbols              { include "%" };
    xkb_geometry             { include "%" };
(EE) Error loading keymap /usr/share/X11/xkb/compiled/server-0.xkm



Xorg.93.log
Code:
(II) Loading font Bitmap
(II) LoadModule: "pcidata"
(II) Loading /usr/lib/xorg/modules/libpcidata.so
(II) Module pcidata: vendor="X.Org Foundation"
        compiled for 7.1.1, module version = 1.0.0
        ABI class: X.Org Video Driver, version 1.0
(++) using VT number 7

(WW) xf86OpenConsole: VT_GETSTATE failed: Input/output error
(WW) xf86OpenConsole: VT_ACTIVATE failed: Input/output error
(WW) xf86OpenConsole: VT_WAITACTIVE failed: Input/output error

Fatal server error:
xf86OpenConsole: VT_GETMODE failed Input/output error

(WW) xf86CloseConsole: KDSETMODE failed: Input/output error
(WW) xf86CloseConsole: VT_GETMODE failed: Input/output error


BTW desktop is fine without xgl.


Last edited by chittoor on Sun Sep 24, 2006 5:03 am; edited 1 time in total
Back to top
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1462
Location: Earth

PostPosted: Sat Sep 23, 2006 4:49 am    Post subject: Reply with quote

hallo,

after emerge XGL you must reinstall 'nvidia-drivers '

and

' eselect opengl set nvidia '

and more info please -> ' xorg.conf '


here are some infos http://wiki.gentoo-xeffects.org/Main_Page


CooSee ' Ya
_________________
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Back to top
View user's profile Send private message
chittoor
n00b
n00b


Joined: 09 Apr 2006
Posts: 35

PostPosted: Sat Sep 23, 2006 5:41 am    Post subject: Reply with quote

Already emerged my nvidia-drivers twice :(
But the problem persists.
As far as I know, I stuck to what's given in the wiki. I am using compiz-quinnstrorm from xgl-cofee trunk
Any more ideas ?
Back to top
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1462
Location: Earth

PostPosted: Sat Sep 23, 2006 5:58 am    Post subject: Reply with quote

chittoor wrote:
Already emerged my nvidia-drivers twice :(
But the problem persists.
As far as I know, I stuck to what's given in the wiki. I am using compiz-quinnstrorm from xgl-cofee trunk
Any more ideas ?


hallo,

how did you start XGL :?:

my /usr/kde/3.5/share/config/kdm/kdmrc :

ServerCmd=/usr/bin/Xgl -br -ac -accel xv:pbo -accel glx:pbuffer
ServerTimeout=30

and

/etc/env.d/99kde-env :

KDEDIRS=/usr
CONFIG_PROTECT=/usr/share/config
KDEWM=compiz-manager
#KDE_IS_PRELINKED=1


CooSee ' Ya
_________________
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Back to top
View user's profile Send private message
chittoor
n00b
n00b


Joined: 09 Apr 2006
Posts: 35

PostPosted: Sat Sep 23, 2006 9:41 am    Post subject: Reply with quote

kdmrc
ServerCmd=/usr/bin/Xgl -br -ac -accel glx:pbuffer -accel xv
ServerTimeout=30

Tried both
KDEWM=compiz-decorator
and KDEWM=compiz-manager

compiz-decorator
Code:
 
## Start compiz or compiz-quinnstorm
## compiz --replace gconf &
dbus-launch compiz --replace dbus csm &

sleep 2

## Start gnome-window-decorator or cgwd
## gnome-window-decorator &
dbus-launch cgwd --replace &


BTW if i use KDEWM=compiz-manager, all the effects are gone but desktop shows up correctly with its window decorations.
and if i use compiz-decorator as given in the wiki, the white desktop shows up with all the effects.

I just remembered, dbus was compiled with out gtk support, as it was not compiling with it. Does this make any difference ?
Back to top
View user's profile Send private message
chittoor
n00b
n00b


Joined: 09 Apr 2006
Posts: 35

PostPosted: Sat Sep 23, 2006 10:17 am    Post subject: Reply with quote

There is a similar thread here
https://forums.gentoo.org/viewtopic-t-500902.html

And some solution is provided here
http://www.compiz.net/topic-4576-compiz-quinn-white-window-contents-latest

Will try that out and tell

A post in the compiz formus


Code:
The problem is caused by recent API change in mesa; Since compiz-quinn includes its own old version of mesa, it can't work with Xgl built with new mesa. There is nothing wrong with xgl's or compiz's code, or your environment.


So I just have to wait ? and the patch he was talkin abt
Code:


I fixed the problem, patch =>
Code:

--- src/Makefile.am.old 2006-09-05 00:41:55.000000000 +0800
+++ src/Makefile.am     2006-09-18 21:55:20.000000000 +0800
@@ -7,10 +7,7 @@
 bin_PROGRAMS = compiz
 bin_SCRIPTS = compiz-start

-../mesa/lib/libGL.a:
-       make -C ../mesa/
-
-compiz_LDADD = @COMPIZ_LIBS@ ../mesa/lib/libGL.a -lm
+compiz_LDADD = @COMPIZ_LIBS@ -L/opt/mesa-xgl-cvs/lib -lGL -lm
 compiz_LDFLAGS = -export-dynamic
 compiz_SOURCES =   \
        main.c     \

(change "-L/opt/mesa-xgl-cvs/lib" to the mesa lib directory you use. Remove the option if you're not using nVIDIA driver)

And remove the /mesa directory in compiz

Cheers 126


How am I supposed to use it ?
Back to top
View user's profile Send private message
grimz
n00b
n00b


Joined: 29 Jun 2006
Posts: 53

PostPosted: Sat Sep 23, 2006 3:58 pm    Post subject: Reply with quote

Unfortunately I'm yet to work out how to apply his patch too. I'd really love to know the answer to this issue :)
Back to top
View user's profile Send private message
chittoor
n00b
n00b


Joined: 09 Apr 2006
Posts: 35

PostPosted: Sat Sep 23, 2006 4:25 pm    Post subject: Reply with quote

Ok. I didn't understood what he said exactly. I made a patch and ebuild to test it.
It installed with out any problem. But now I'm missing dri :( . And every thing is as if xgl is not installed though xgl is running lol .


compiz-quinnstorm-0.0.13.57-r1.ebuild
Code:
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit gnome2 eutils flag-o-matic multilib autotools

DESCRIPTION="Compiz window manager for AiGLX and XGL"
HOMEPAGE="http://compiz.net"
SRC_URI="http://distfiles.xgl-coffee.org/${PN}/${P}.tar.bz2"
LICENSE="X11"
SLOT="0"
KEYWORDS="~x86 ~ppc ~amd64"
IUSE="gnome svg"
RESTRICT="nomirror"

PDEPEND=">=x11-misc/compiz-quinnstorm-plugins-0.12
   x11-wm/cgwd
   x11-misc/csm
   x11-misc/compiz-manager"

DEPEND=">=media-libs/mesa-6.5.1-r1
   x11-libs/startup-notification
   media-libs/libpng
   media-libs/glew
   sys-apps/dbus
   x11-libs/libXdamage
   x11-libs/libXrandr
   x11-libs/libXcomposite
   gnome? (
      >=gnome-base/gconf-2.14
      x11-libs/libwnck
      gnome-base/gnome-desktop
      gnome-base/control-center
   )
   >=gnome-base/librsvg-2
   !x11-wm/compiz"

RDEPEND="${DEPEND}
   x11-apps/xvinfo
   x11-apps/xlsclients"

S="${WORKDIR}/compiz"

src_unpack() {
   gnome2_src_unpack

   cd "${S}"
   epatch "${FILESDIR}/${PN}-mesa.patch"
   epatch "${FILESDIR}/${PN}-dbus.service.patch"

}

src_compile() {
   use amd64 && replace-flags -O[1-9] -O0

   cd ${S}

   eautoreconf || die "eautoreconf failed"
   glib-gettextize --copy --force || die

   econf \
      --with-gl-libs="-Wl,-R/usr/$(get_libdir)/opengl/xorg-x11/lib/ -L/usr/$(get_libdir)/opengl/xorg-x11/lib/ -lGL" \
      --disable-kde \
      `use_enable gnome` || die "econf failed"

   emake || die "make failed"
}

src_install() {
   gnome2_src_install

   insinto /usr/share/dbus-1/services
   newins "${S}"/compiz.service org.compiz.dbus.service
}


compiz-quinnstorm-mesa.patch
Code:

--- src/Makefile.am   2006-09-23 17:03:31.000000000 +0530
+++ src/Makefile.am   2006-09-23 17:04:13.000000000 +0530
@@ -7,10 +7,7 @@
 bin_PROGRAMS = compiz
 bin_SCRIPTS = compiz-start
 
-../mesa/lib/libGL.a:
-   make -C ../mesa/
-
-compiz_LDADD = @COMPIZ_LIBS@ ../mesa/lib/libGL.a -lm
+compiz_LDADD = @COMPIZ_LIBS@ -Lusr/lib/opengl/nvidia/lib -lGL -lm
 compiz_LDFLAGS = -export-dynamic
 compiz_SOURCES =   \
    main.c      \


Save the patch in files folder and digest the ebuild.

One thing im not sure of is this line
+compiz_LDADD = @COMPIZ_LIBS@ -Lusr/lib/opengl/nvidia/lib -lGL -lm

He said use the path to your mesa libraries. But I find only nvidia(usr/lib/opengl/nvidia/lib) and xorg-x11(usr/lib/opengl/xorg-x11/lib) libraries on my system and don't know where to find mesa libraries :(.

Anyone has any more ideas on this ?



EDIT:
SOLVED:
Solution here https://forums.gentoo.org/viewtopic-t-500902.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum