Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xgl, Radeon 7500 and KDE without kdm
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
andyknownasabu
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 281
Location: Zurich, Switzerland

PostPosted: Sat Jun 03, 2006 9:57 am    Post subject: Xgl, Radeon 7500 and KDE without kdm Reply with quote

Hi all,

I followed the Xgl howto in the Gentoo wiki and was able to compile all necessary packages
without any problems (gcc 4.1).

But how can I manage to get Xgl working with my Radeon 7500 and without
usind kdm? Doing the "modify startx" stuff from the wiki?

I tried to do
Code:
Xgl :1 -ac -accel glx:pbuffer -accel xv:pbuffer
LD_LIBRARY_PATH=/usr/lib/opengl/xorg-x11/lib/ DISPLAY=:1 compiz gconf
gconf-editor

but I get:
Code:
Fatal server error:
Server is already active for display 1
        If this server is no longer running, remove /tmp/.X1-lock
        and start again.


Any ideas/help would be highly appreciated! Thanks!
_________________
Please, also have a look at:
Global Marshall Plan Initiative
http://www.globalmarshallplan.org/
Back to top
View user's profile Send private message
Quad970
n00b
n00b


Joined: 01 Jun 2006
Posts: 10
Location: Atlanta, GA

PostPosted: Sun Jun 04, 2006 2:04 am    Post subject: Re: Xgl, Radeon 7500 and KDE without kdm Reply with quote

andyknownasabu wrote:

Hi all,

I followed the Xgl howto in the Gentoo wiki and was able to compile all necessary packages
without any problems (gcc 4.1).

But how can I manage to get Xgl working with my Radeon 7500 and without
usind kdm? Doing the "modify startx" stuff from the wiki?

I tried to do
Code:
Xgl :1 -ac -accel glx:pbuffer -accel xv:pbuffer
LD_LIBRARY_PATH=/usr/lib/opengl/xorg-x11/lib/ DISPLAY=:1 compiz gconf
gconf-editor

but I get:
Code:
Fatal server error:
Server is already active for display 1
        If this server is no longer running, remove /tmp/.X1-lock
        and start again.



You were right on with the modifying of the /usr/bin/startx script.

I mostly followed the wiki, but I haven't bothered to set up Xsession, so its a little bit different

1) Copy startx to a new file. For simplicity's sake, I copied it to /usr/bin/startxgl

2) edit the line in the new startxgl file that says
Code:
xinit $clientargs -- $serverargs -deferglyphs 16 &

(its near the end of the file) to say
Code:
xinit $clientargs -- /usr/bin/Xgl -ac -accel xv:pbuffer -accel glx:pbuffer $serverargs -deferglyphs 16 &


3) This is where I differ from the wiki, but I find it works just as well. Instead of using the wiki's compizrc script, I put the if statement into my .xinitrc, so it should look like the following
Code:

if [ `ps -A | grep Xgl | wc -l` == "1" ]; then
        DISPLAY=:0 LD_LIBRARY_PATH=/usr/lib/opengl/xorg-x11/lib/ compiz --replace gconf &
        sleep 1;
        DISPLAY=:0 gnome-window-decorator &
fi
exec /usr/kde/3.5/bin/startkde


Now that you have modified these two files, you can simply type startx to start a normal X session, or startxgl to start an Xgl session.

I'm sure there is a much nicer way to do things with XSESSION in /etc/rc.conf , but I haven't gotten around to playing with that yet.
Back to top
View user's profile Send private message
andyknownasabu
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 281
Location: Zurich, Switzerland

PostPosted: Sun Jun 04, 2006 8:55 am    Post subject: Re: Xgl, Radeon 7500 and KDE without kdm Reply with quote

Quad970 wrote:


You were right on with the modifying of the /usr/bin/startx script.
[...]


Hi and thanks a lot for your explanations! :-)
With them I was finally able to start the Xgl server and get at
least a rough impression what's possible with Xgl.
Only a rough one because it's so _slow_...

Do you know if/and how it's possible to speed up things
a little bit and for example how I can disable the
shadows as I don't want them (I'm more interested in
the cool window behaviours *g)

Thanks!
_________________
Please, also have a look at:
Global Marshall Plan Initiative
http://www.globalmarshallplan.org/
Back to top
View user's profile Send private message
Quad970
n00b
n00b


Joined: 01 Jun 2006
Posts: 10
Location: Atlanta, GA

PostPosted: Sun Jun 04, 2006 12:52 pm    Post subject: Reply with quote

I'd go out on a limb and say you have compiz-quinnstorm installed (Since it is acting slowly).

I've been seeing that on my machines with quinnstorm installed as well. My short term fix is to install compiz-vanilla.
Back to top
View user's profile Send private message
andyknownasabu
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 281
Location: Zurich, Switzerland

PostPosted: Sun Jun 04, 2006 1:40 pm    Post subject: Reply with quote

Quad970 wrote:
I'd go out on a limb and say you have compiz-quinnstorm installed (Since it is acting slowly).


No, I'm already using compiz-vanilla... :-(
But as it seems the problem is the missing dri acceleration as
described here:
https://forums.gentoo.org/viewtopic-t-468178.html
_________________
Please, also have a look at:
Global Marshall Plan Initiative
http://www.globalmarshallplan.org/
Back to top
View user's profile Send private message
Quad970
n00b
n00b


Joined: 01 Jun 2006
Posts: 10
Location: Atlanta, GA

PostPosted: Sun Jun 04, 2006 3:03 pm    Post subject: Reply with quote

It would help to get direct rendering working.

EDIT: Xgl doesn't need direct rendering, since it uses mesa

Can you post your make.conf?


Last edited by Quad970 on Sun Jun 04, 2006 3:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
andyknownasabu
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 281
Location: Zurich, Switzerland

PostPosted: Sun Jun 04, 2006 3:10 pm    Post subject: Reply with quote

Quad970 wrote:
It would help to get direct rendering working.

Can you post your make.conf?


Thanks for your help offer! ;)

Well, as described in the other thread I got it working with the normal
x server by compiling by hand...
Should glxinfo also show that dri is enabled in Xgl or is it normal
behaviour that it says "no"?

Sure, I could post my make.conf but as its quite long which
part are you interested in? I would cut it out from the whole
file...
_________________
Please, also have a look at:
Global Marshall Plan Initiative
http://www.globalmarshallplan.org/
Back to top
View user's profile Send private message
Quad970
n00b
n00b


Joined: 01 Jun 2006
Posts: 10
Location: Atlanta, GA

PostPosted: Sun Jun 04, 2006 3:19 pm    Post subject: Reply with quote

I'm looking for if you set VIDEO_CARDS variable in make.conf.

Xgl by default uses indirect rendering through mesa (from digging around in my configuration). I was thinking of normal Xorg at the time.

So therefore, glxinfo should report no on direct rendering when using Xgl

Also, post the output of
Code:
emerge -pv mesa
Back to top
View user's profile Send private message
andyknownasabu
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 281
Location: Zurich, Switzerland

PostPosted: Sun Jun 04, 2006 3:26 pm    Post subject: Reply with quote

Quad970 wrote:
I'm looking for if you set VIDEO_CARDS variable in make.conf.

Xgl by default uses indirect rendering through mesa (from digging around in my configuration). I was thinking of normal Xorg at the time.

Also, post the output of
Code:
emerge -pv mesa


Well, actually I've just read schmobag's posting and I've seen
that VIDEO_CARDS="radeon" is needed (which is probably why mesa
didn't compile any dri drivers). I only had vesa and fbgl before and
I'm compiling xf86-ati-drivers and mesa at the moment.

Code:
emerge -pv mesa

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-libs/mesa-6.5.1_alpha20060524  USE="3dnow mmx motif nptl sse -debug" VIDEO_CARDS="radeon* -i810 -mach64 -mga -none -r128 -s3virge -savage -sis -tdfx -trident -via" 0 kB [3]

Total size of downloads: 0 kB
Portage overlays:
 [1] /usr/local/portage
 [2] /usr/portage/local/layman/java-experimental
 [3] /usr/portage/local/layman/portage-xgl

_________________
Please, also have a look at:
Global Marshall Plan Initiative
http://www.globalmarshallplan.org/
Back to top
View user's profile Send private message
Quad970
n00b
n00b


Joined: 01 Jun 2006
Posts: 10
Location: Atlanta, GA

PostPosted: Sun Jun 04, 2006 3:30 pm    Post subject: Reply with quote

I also read schmobag's post.

That is exactly where I was going with the make.conf and emerge -pv mesa.
Back to top
View user's profile Send private message
andyknownasabu
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 281
Location: Zurich, Switzerland

PostPosted: Sun Jun 04, 2006 3:32 pm    Post subject: Reply with quote

Quad970 wrote:
I also read schmobag's post.

That is exactly where I was going with the make.conf and emerge -pv mesa.

When the compile has finished I'll try and report again :-)
_________________
Please, also have a look at:
Global Marshall Plan Initiative
http://www.globalmarshallplan.org/
Back to top
View user's profile Send private message
andyknownasabu
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 281
Location: Zurich, Switzerland

PostPosted: Sun Jun 04, 2006 4:45 pm    Post subject: Reply with quote

OK, with VIDEO_CARDS="radeon" set in /etc/make.conf mesa compiles
the dri drivers, now... But nevertheless it still states that dri is disabled
if I start Xgl (and KDE) and it's still _very_ slow. Any ideas concerning this?
_________________
Please, also have a look at:
Global Marshall Plan Initiative
http://www.globalmarshallplan.org/
Back to top
View user's profile Send private message
Quad970
n00b
n00b


Joined: 01 Jun 2006
Posts: 10
Location: Atlanta, GA

PostPosted: Sun Jun 04, 2006 7:00 pm    Post subject: Reply with quote

Are you using the latest xgl-coffee overlay?

if not, I'd set that up and then recompile cairo pango and gtk as described in the wiki.
Back to top
View user's profile Send private message
andyknownasabu
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 281
Location: Zurich, Switzerland

PostPosted: Sun Jun 04, 2006 7:09 pm    Post subject: Reply with quote

Quad970 wrote:
Are you using the latest xgl-coffee overlay?

if not, I'd set that up and then recompile cairo pango and gtk as described in the wiki.

I'm using the portage-xgl overlay... For some reason the cairo ebuild is gone
since yesterday so I'm at least not able to compile the one from the overlay
(perhaps that's not necessary anymore?!). But I'll try to recompile pango
and gtk... ;) Thanks!
_________________
Please, also have a look at:
Global Marshall Plan Initiative
http://www.globalmarshallplan.org/
Back to top
View user's profile Send private message
Quad970
n00b
n00b


Joined: 01 Jun 2006
Posts: 10
Location: Atlanta, GA

PostPosted: Sun Jun 04, 2006 7:10 pm    Post subject: Reply with quote

That's because the new cairo is hard masked in portage itself.

package.unmask it and build it. Its version 1.1.6-r1 IIRC

You do have to build pango and gtk so that they link against cairo-1.1.6-r1

http://packages.gentoo.org/ebuilds/?cairo-1.1.6-r1

BTW, I'm using xgl-coffee. A review of portage-xgl vs xgl-coffee is here. https://forums.gentoo.org/viewtopic-t-464648.html
Back to top
View user's profile Send private message
andyknownasabu
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 281
Location: Zurich, Switzerland

PostPosted: Mon Jun 05, 2006 10:07 am    Post subject: Reply with quote

Quad970 wrote:
That's because the new cairo is hard masked in portage itself.

package.unmask it and build it. Its version 1.1.6-r1 IIRC

You do have to build pango and gtk so that they link against cairo-1.1.6-r1

http://packages.gentoo.org/ebuilds/?cairo-1.1.6-r1

BTW, I'm using xgl-coffee. A review of portage-xgl vs xgl-coffee is here. https://forums.gentoo.org/viewtopic-t-464648.html

I've recompiled cairo, pango and gtk+ but it's still very slow. :-(
I'll have a look at the given url now... Thanks for that!

EDIT:
Seems as if the two overlays have become exactly the same in the meanwhile, I just checked out the recent
xgl-coffee tree but there's not a single difference to the portage-xgl one.
_________________
Please, also have a look at:
Global Marshall Plan Initiative
http://www.globalmarshallplan.org/
Back to top
View user's profile Send private message
andyknownasabu
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 281
Location: Zurich, Switzerland

PostPosted: Mon Jun 05, 2006 10:26 pm    Post subject: Reply with quote

I've found something new in my Xorg.93.log:
Code:
(II) RADEON(0): AGP card detected
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenByBusid: drmOpenMinor returns 8
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
(II) RADEON(0): [dri] Found DRI library version 1.2.0 and kernel module version 1.22.0
(**) RADEON(0): AGP 4x mode is configured
(II) RADEON(0): AGP Fast Write disabled by default
(II) Loading sub module "shadowfb"
(II) LoadModule: "shadowfb"
(II) Loading /usr/lib/xorg/modules/libshadowfb.so
(II) Module shadowfb: vendor="X.Org Foundation"
        compiled for 7.1.0, module version = 1.0.0
        ABI class: X.Org ANSI C Emulation, version 0.3
(II) RADEON(0): Page flipping disabled
(II) RADEON(0): Will try to use DMA for Xv image transfers
(WW) RADEON(0): [dri] limiting video memory to one aperture of 131072K
(WW) RADEON(0): [dri] detected radeon kernel module version 1.22 but 1.23 or newer is required for full memory mapping.
(II) RADEON(0): Detected total video RAM=65536K, accessible=131072K (PCI BAR=262144K)
(--) RADEON(0): Mapped VideoRAM: 65536 kByte (64 bit DDR SDRAM)
(II) RADEON(0): Color tiling enabled by default

Perhaps the (WW) are causing my speed problems? I'm using kernel version 2.6.16-gentoo-r8...
I've seen that x11-drm-20051223 seems to provide the radeon kernel module but as it's from
2005 I'd assume that the version from the kernel is newer, isn't it?
_________________
Please, also have a look at:
Global Marshall Plan Initiative
http://www.globalmarshallplan.org/
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