xpra icon
Bug tracker and wiki

Changes between Version 6 and Version 7 of Xdummy


Ignore:
Timestamp:
05/16/14 12:41:02 (5 years ago)
Author:
Antoine Martin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Xdummy

    v6 v7  
    1111
    1212In 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])
    13 }}}
    14 
    15 {{{#!div class="box"
    16 == [[Image(http://xpra.org/icons/question.png)]] Status ==
    17 === Versions Required ===
    18 Most recent distributions now ship compatible packages though some may have issues with non world-readable binaries (see below), for those that ship outdated versions there are two changes to core Xorg code which are needed:
    19 * The [http://cgit.freedesktop.org/xorg/xserver/commit/?id=ead968a4300c0adeff89b9886e888b6d284c75cc xserver patch]: which is part of the 1.12 xserver.
    20 * This [http://cgit.freedesktop.org/xorg/driver/xf86-video-dummy/commit/?id=fb0888f90d5d1c10d69ec2add0a66e88c94f5d5c xf86-video-dummy patch]: which is part of version 0.3.5. (if your clients' screens are always smaller than 2048x2048, you may not need it)
    21 
    22 If your distribution ships older versions of those packages, you may want to try one of our [http://xpra.org/src/Xdummy/ patched binary packages] (no warranties given or implied)
    23 
    24 === non-suid binary ===
    25 If you distribution ships the newer version but only installs a suid Xorg binary, Xpra should have installed the [https://www.xpra.org/trac/browser/xpra/trunk/src/scripts/xpra_Xdummy xpra_Xdummy] wrapper script and configured xpra.conf to use it instead of the regular Xorg binary.
    26 This script takes care of copying the Xorg binary to a non-suid executable before running it.
    27 Note: in some cases, you may need to make the Xorg executable world-readable so that the wrapper can make the non-suid copy when needed:
    28 {{{
    29 sudo chmod +r /usr/bin/Xorg
    30 }}}
    3113}}}
    3214
     
    5941(the -noreset option is only needed if the window manager is not the first application started on the display, for example if you use the --start-child= option, or if you want the display to survive once the window manager exits - generally, this is a good idea since xpra could crash and when it exits cleanly via "xpra stop" it takes care of shutting down the X11 server anyway)
    6042}}}
     43
     44
     45{{{#!div class="box"
     46== [[Image(http://xpra.org/icons/question.png)]] Configuration ==
     47=== Configuration ===
     48
     49By default the configuration file shipped with xpra allocates 192MB of memory (96MB for versions 0.12 and older) and defines a large number of common screen resolutions, including double and triple display setups.
     50
     51But since it is impossible to pre-define all the combinations possible, if your client resolution does not match one of the pre-defined values, you may want to add your specific resolution to the configuration file.
     52Use a modeline calculator like [http://xtiming.sourceforge.net/cgi-bin/xtiming.pl xtiming.sf.net] and add the new modeline to the [http://xpra.org/xorg.conf /etc/xpra/xorg.conf].
     53
     54If you have an unusually large configuration, you may also need to increase the memory and/or increase the virtual size. If your new resolution does not get used, check the X11 server log file (usually in {{{~/.xpra/Xorg.$DISPLAY.log}}} with xpra)
     55}}}
     56
     57
     58{{{#!div class="box"
     59== [[Image(http://xpra.org/icons/question.png)]] Status ==
     60=== Versions Required ===
     61Most recent distributions now ship compatible packages though some may have issues with non world-readable binaries (see below), for those that ship outdated versions there are two changes to core Xorg code which are needed:
     62* The [http://cgit.freedesktop.org/xorg/xserver/commit/?id=ead968a4300c0adeff89b9886e888b6d284c75cc xserver patch]: which is part of the 1.12 xserver.
     63* This [http://cgit.freedesktop.org/xorg/driver/xf86-video-dummy/commit/?id=fb0888f90d5d1c10d69ec2add0a66e88c94f5d5c xf86-video-dummy patch]: which is part of version 0.3.5. (if your clients' screens are always smaller than 2048x2048, you may not need it)
     64
     65If your distribution ships older versions of those packages, you may want to try one of our [http://xpra.org/src/Xdummy/ patched binary packages] (no warranties given or implied)
     66
     67=== non-suid binary ===
     68If you distribution ships the newer version but only installs a suid Xorg binary, Xpra should have installed the [https://www.xpra.org/trac/browser/xpra/trunk/src/scripts/xpra_Xdummy xpra_Xdummy] wrapper script and configured xpra.conf to use it instead of the regular Xorg binary.
     69This script takes care of copying the Xorg binary to a non-suid executable before running it.
     70Note: in some cases, you may need to make the Xorg executable world-readable so that the wrapper can make the non-suid copy when needed:
     71{{{
     72sudo chmod +r /usr/bin/Xorg
     73}}}
     74}}}