xpra icon
Bug tracker and wiki

Changes between Version 16 and Version 17 of Xdummy


Ignore:
Timestamp:
06/21/14 05:11:39 (6 years ago)
Author:
Antoine Martin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Xdummy

    v16 v17  
    55{{{#!div class="box"
    66== About ==
    7 Xdummy was originally developed by Karl Runge to allow a standard X11 server to be used by non-root users with the dummy video driver "[http://cgit.freedesktop.org/xorg/driver/xf86-video-dummy/ xf86-video-dummy]".
    8 The problem with that approach is that it is a hack using {{{LD_SO_PRELOAD}}} tricks to fool the X11 server process, and therefore not suitable for deployment in many environments.
     7Xdummy was originally developed by Karl Runge as a [http://www.karlrunge.com/x11vnc/Xdummy script] to allow a standard X11 server to be used by non-root users with the dummy video driver ([http://cgit.freedesktop.org/xorg/driver/xf86-video-dummy/ xf86-video-dummy]).
     8
     9Since then, the X11 server gained the ability to run without those {{{LD_SO_PRELOAD}}} hacks. This is now available for most distributions.
    910
    1011[[BR]]
    1112
    12 In the context of Xpra, Xdummy allows us to use a better, more up to date X11 display server, one that supports more extensions, especially the RandR and GL extensions (it may also be faster for some X11 operations - though not all, see [/attachment/wiki/Xdummy/Xvfb-vs-Xorg-x11perf.txt Xvfb-vs-Xorg-x11perf.txt]). For many display bugs (ie: #1, #2) this is the only workable solution: it allows Xpra to resize the virtual display to match the client's resolution so as to prevent windows and menus from overflowing beyond the edge of the screen. (see also [/wiki/FakeXinerama fake Xinerama])
     13In the context of Xpra, Xdummy allows us to use a better, more up to date X11 display server, one that supports more extensions, especially the [http://en.wikipedia.org/wiki/RandR RandR] and [http://en.wikipedia.org/wiki/GLX GLX] extensions (it may also be faster for some X11 operations - though not all, see [/attachment/wiki/Xdummy/Xvfb-vs-Xorg-x11perf.txt Xvfb-vs-Xorg x11perf]).
     14
     15For many display bugs (ie: #1, #2) this is the only workable solution: it allows Xpra to resize the virtual display to match the client's resolution so as to prevent windows and menus from overflowing beyond the edge of the screen. (see also [/wiki/FakeXinerama fake Xinerama])
    1316}}}
    1417
     
    2528
    2629=== Xdummy with Xpra ===
    27 With Xpra, this should all have been configured automatically for you by your package manager.
     30With Xpra, this should have been configured automatically for you when installing.
     31
    2832You can specify this virtual framebuffer alternative using the {{{--xvfb}}} switch or by setting the xvfb option in your {{{/etc/xpra/xpra.conf}}}:
    2933{{{
     
    3640=== Driver Conflicts (libGL) ===
    3741
    38 Proprietary drivers often install their own copy of {{{libGL}}} which conflicts with the use of software GL rendering. You cannot use this GL library to render directly on {{{Xdummy}}} (or {{{Xvfb}}}). The best way to deal with this is to use [http://www.virtualgl.org/ VirtualGL] to take advantage of the {{{OpenGL}}} acceleration provided by the graphics card, just run: {{{vglrun yourapplication}}}. The alternative is often to disable {{{OpenGL}}} altogether.
     42Proprietary drivers often install their own copy of {{{libGL}}} which conflicts with the use of software GL rendering. You cannot use this GL library to render directly on {{{Xdummy}}} (or {{{Xvfb}}}).
     43
     44The best way to deal with this is to use [http://www.virtualgl.org/ VirtualGL] to take advantage of the {{{OpenGL}}} acceleration provided by the graphics card, just run: {{{vglrun yourapplication}}}.
     45
     46The alternative is often to disable {{{OpenGL}}} altogether.
    3947(more information here: ticket:580#comment:3)
    4048}}}