My system:

$lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:        14.04
Codename:       trusty


$ dpkg -s xvfb
Package: xvfb
Status: install ok installed
Priority: optional
Section: x11
Installed-Size: 2140
Maintainer: Ubuntu X-SWAT <ubuntu-x@lists.ubuntu.com>
Architecture: amd64
Multi-Arch: foreign
Source: xorg-server
Version: 2:1.15.1-0ubuntu2.7
Provides: xserver

Current problem:

Xvfb do not support RANDR extension, even if I add the flag:

+extension RANDR

If I run xdpyinfo, RANDR is not on the list. It's a missing feature or a bug. I found a reference here with a patch: https://bugzilla.novell.com/show_bug.cgi?id=823410

And looks like that in other distros like debian, there is already a testing build of Xvfb with support: Running Firefox in Xvfb: extension "RANDR" missing on display

I am trying to run a program throught Xvfb, and it returns the following error:

Xlib:  extension "RANDR" missing on display ":99".

The program works if I run it via ssh/command line. The problem appears to be the the lack of support for "RANDR" in xvfb.

My question is: what is the easiest way to get xvfb with "RANDR" support in my system?


A solution seems to be to replace xvfb with a real X11 server using the dummy driver from the package xserver-xorg-video-dummy. This askubuntu answer provides an example Xorg.conf file, but most people seem to refer to this xpra wiki on using this driver, with its example conf file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.