Resizing an Xvfb display

Erik picture Erik · Jun 15, 2011 · Viewed 18k times · Source

Simple Question: Is there a way to resize a Xvfb display?

I tried with RandR but it seems that the RandR extension is not supported by Xvfb. Are there other ways to resize the screen?

Thanks for your help!

Answer

edigu picture edigu · Sep 9, 2011

You can use the server-args command line argument to specify a custom resolution for the virtual frame buffer being created, but this does not change the resolution of an existing virtual frame buffer:

xvfb-run --server-args="-screen 0, 1024x768x24" ...