Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to use xvfb as a secondary screen, but I am struggling getting the two screens working together. xvfb does not seem to have the randr extension.

So is there another possibility to create a virtual screen that could be in dual-head mode together with my real screen?

share|improve this question

migrated from stackoverflow.com Apr 28 '11 at 21:39

This question came from our site for professional and enthusiast programmers.

Xnest does not support randr either. But Xephyr does.

share|improve this answer

You could try using the xf86-video-dummy driver with Xorg to make the second screen.

share|improve this answer

Have you considered using Xnest? That works by creating a virtual X server that just proxies all of its incoming X protocol calls to the real X server. It also does not support randr, however, so you may want to consider removing your dependency on that (by switching to an alternate window manager or the like).

share|improve this answer
That looks good!I will look into using Xnest together with xinerama to archieve my goal. Stupid me: I thought Xnest only was for testing purposes in terms of creating a kind of jail for Xclients. Anyway, thank you very much! – twall Apr 28 '11 at 20:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.