How to get Xvfb to work on 32 bit color

Robus picture Robus · Apr 17, 2010 · Viewed 10.2k times · Source

Can anybody tell me how to get Xvfb to work on 32bit color? Vnc4server works fine for example, but didn't fit my purpose.

> /etc/X11# Xvfb :1 -screen 0 1600x1200x24
error opening security policy file /etc/X11/xserver/SecurityPolicy
(EE) XKB: Couldn't open rules file /usr/share/X11/xkb/rules/base
Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!
[config/hal] couldn't initialise context: (null) ((null))
FreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be 1; fixing.

Aka - it works, while:

> /etc/X11# Xvfb :1 -screen 0 1600x1200x32
Fatal server error:
Couldn't add screen 0

Answer

Pascal Hofmann picture Pascal Hofmann · Jan 17, 2011

32 is no valid depth, see this bug report

Try this instead: Xvfb :1 -screen 0 1600x1200x24+32