Hello there,

I'm quite new to clutter and hardware-accelerated graphics under linux.

For a starting point I've set myself the following goal: I'd like to be
able fill two displays with 2D-Graphics in realtime while interacting
via multiple input devices (including keyboard and mouse).

I started with the C examples but switched to pyclutter for faster
prototyping. I'm currently testing clutter for output of a custom GUI on
my machine with a dual monitor setup and an ATI graphics card on
Ubuntu Linux with the fglrx driver.

I was already successful at using clutter-gtk to maximize two GTK
windows with embedded clutter view. But I'd like to avoid this approach
as it includes overhead of handling  window focus and adds additional
dependencies.

Clutter already has a function on the stage, which allows to get the
whole screen as drawing area. This works fine, if used with only one
monitor configured. But there are problems, when configuring
two monitors as screen, as outline by the following xorg.conf snippet:

Section "Screen"
        Identifier "aticonfig-Screen[0]-0"
        Device     "aticonfig-Device[0]-0"
        Monitor    "aticonfig-Monitor[0]-0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Virtual 3360 1050
        EndSubSection
EndSection

Although set_fullscreens switches the second monitors content, it
displays (a not so random) part of graphics memory. I tried either a small
python
programm with pyclutter and one in C with the same results. This leads me to
the
following questions, which I hope someone on this list knows the answers to:

1. Is this behaviour in control of the clutter library or is this a problem
    of the underlying libraries/drivers ?
2. Is there possibly another workaround than GTK window handling ?
3. Do you need any other kind of information to answer these questions?

Hardware:
> lspci
02:00.0 VGA compatible controller: ATI Technologies Inc RV710 [Radeon HD
4550]

> fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon HD 4500 Series
OpenGL version string: 3.2.9756 Compatibility Profile Context

Used Software:

Manually compiled:
clutter-1.2.4

>From Distribution:
libgtk2.0-0-dev                 2.20.0-0ubuntu4
fglrx                                2:8.723.1-0ubuntu2

Thanks,
Martin

Reply via email to