Bug 26391 - RandR support for Xvfb
Summary: RandR support for Xvfb
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/DDX/Xvfb (show other bugs)
Version: git
Hardware: Other All
: low enhancement
Assignee: Adam Jackson
QA Contact: Xorg Project Team
URL: http://patchwork.freedesktop.org/patc...
Whiteboard: 2011BRB_Reviewed
Keywords: patch
: 19510 (view as bug list)
Depends on:
Reported: 2010-02-02 08:39 UTC by Robert Collins
Modified: 2015-12-09 15:52 UTC (History)
8 users (show)

See Also:
i915 platform:
i915 features:

Exit more simply if fbScreenInit fails (684 bytes, patch)
2010-02-02 08:39 UTC, Robert Collins
no flags Details | Splinter Review
Enable basic randr support for xvfb (433 bytes, patch)
2010-02-02 08:40 UTC, Robert Collins
no flags Details | Splinter Review
randr support for xorg-server- (4.94 KB, patch)
2013-01-12 00:05 UTC, Mike Frysinger
no flags Details | Splinter Review

Description Robert Collins 2010-02-02 08:39:43 UTC
Created attachment 33006 [details] [review]
Exit more simply if fbScreenInit fails

We were investigating why tests running against Xvfb claimed RANDR wasn't present, and indeed, it wasn't :). The two patches attached here respectively tweak the handling of fbScreenInit failures to make it cleaner, and then init RandR for Xvfb.
Comment 1 Robert Collins 2010-02-02 08:40:26 UTC
Created attachment 33007 [details] [review]
Enable basic randr support for xvfb
Comment 2 Jeremy Huddleston Sequoia 2011-10-15 18:42:35 UTC
Please send your patch to the xorg-devel mailing list for review.
Comment 3 Jeremy Huddleston Sequoia 2011-10-15 18:44:06 UTC
*** Bug 19510 has been marked as a duplicate of this bug. ***
Comment 4 Mike Frysinger 2013-01-12 00:05:13 UTC
Created attachment 72880 [details] [review]
randr support for xorg-server-

i'm using this now with and it works nicely :)

patch by Lambros Lambrou @ Google
Comment 5 Bastien Nocera 2014-08-07 15:27:01 UTC
The patch at:
still applies, but hasn't been reviewed since it was posted to the mailing-list a year ago.

This patch would be useful to start using Xvfb in gnome-settings-daemon's test suite.
Comment 6 Peter Wu 2015-08-02 15:03:16 UTC
In June 2015 there was another attempt to get this patch merged[0], it seems that people are now recommending/leaning towards replacing xf86-video-dummy[1] by Xvfb[2][3].

The patch looks trivial enough to get merged, but maybe it never will due to Xvfb deprecation (=WONTFIX)?

 [0]: http://patchwork.freedesktop.org/patch/51428/
 [1]: http://cgit.freedesktop.org/xorg/driver/xf86-video-dummy/
 [2]: http://xpra.org/trac/wiki/Xdummy
 [3]: http://www.x.org/wiki/Releases/7.8/
Comment 7 Mike Frysinger 2015-09-17 16:41:47 UTC
yes, it seems silly that it hasn't been merged yet considering its simplicity.  if people want to deprecate things in the long run, that's fine, but i don't think that should hold up this patch.
Comment 8 Adam Jackson 2015-12-09 15:52:59 UTC
commit 3d68d1f26709ecb5ce22a9baa0d3d8162574ed6a
Author: Siim Põder <siim@p6drad-teel.net>
Date:   Mon Jun 8 22:14:12 2015 +0000

    vfb: add randr support (v2)
    The motivation for getting this is chrome remote desktop that runs under
    Xvfb and wants to use RANDR to adjust screen size according to the
    remote desktop client screen size. Apparently there are other use cases
    as well, the bug mentions gnome-settings-daemon testing.
    [ajax: massaged commit message]
    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=26391
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Lambros Lambrou <lambroslambrou@google.com>
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
    Signed-off-by: Michal Srb <msrb@suse.com>
    Signed-off-by: Siim Põder <siim@p6drad-teel.net>

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.