xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.

Version 10 (modified by Antoine Martin, 8 years ago) (diff)

add virtualgl workaround

[[Image(...)]] Xdummy


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 "xf86-video-dummy". 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.

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 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 fake Xinerama)


Xdummy standlone

With this new xserver, you can start a new display using the dummy driver without needing any special privileges whilst still specifying your own log and config files:

Xorg -noreset +extension GLX +extension RANDR +extension RENDER -logfile ./10.log -config ./xorg.conf :10

You can find a sample configuration file for dummy here: xorg.conf. (It contains many of the most common resolutions you are likely to need, including those found on phones and tablets. However if your client uses unusual resolutions, for instance multiple screens of differing sizes, you may want to add new Modelines to match your specific resolution)

Xdummy with Xpra

With Xpra, this should all have been configured automatically for you by your package manager (whenever possible..). You can specify this virtual framebuffer alternative using the --xvfb switch:

xpra --xvfb="Xorg -dpi 96 -noreset -nolisten tcp \
			+extension GLX +extension RANDR +extension RENDER \
			-logfile ${HOME}/.xpra/Xvfb-10.log -config ${HOME}/xorg.conf" \
			start :10

or more simply by setting the xvfb option in your /etc/xpra/xpra.conf:

xvfb=Xorg -dpi 96 -noreset -nolisten tcp \
			+extension GLX +extension RANDR +extension RENDER \
			-logfile ${HOME}/.xpra/Xvfb-10.log -config ${HOME}/xorg.conf

(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)

Driver Conflicts (libGL)

Some proprietary drivers may install their own copy of libGL which conflicts with the use of software GL rendering. The best way to deal with this is to use 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.


By 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.

But 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. Use a modeline calculator like xtiming.sf.net and add the new modeline to the /etc/xpra/xorg.conf.

If 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)


Versions Required

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:

If your distribution ships older versions of those packages, you may want to try one of our patched binary packages (no warranties given or implied)

non-suid binary

If you distribution ships the newer version but only installs a suid Xorg binary, Xpra should have installed the xpra_Xdummy wrapper script and configured xpra.conf to use it instead of the regular Xorg binary. This script takes care of copying the Xorg binary to a non-suid executable before running it. 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:

sudo chmod +r /usr/bin/Xorg

Attachments (1)

Download all attachments as: .zip