Is it possible to run XQuartz in 16-bit color mode on macOS High Sierra? I tried the suggestions in this question but they didn't seem to work for 16-bit color.
First, I tried setting the color depth in XQuartz preferences:
When I restarted X and checked the color depth using xwininfo -root
it showed Depth: 24
.
Next, I tried specifying the color depth inline when starting XQuartz:
xquartz -depth 16
This caused XQuartz to crash with the error: Xquartz: start_x11_server: (ipc/mig) server died
Last, I tried setting the color depth with defaults
defaults write org.macosforge.xquartz.X11 "depth" -int 16
This also resulted in a color depth of 24.
However, setting the color mode to 8-bit using any of the above techniques worked just fine. XQuartz started up, and xwininfo -root
showed Depth: 8
.
Any ideas what I might be doing wrong? I'm running macOS High Sierra and XQuartz 2.7.11 (xorg-server 1.18.4).
Edit: I tried with a value of 15, but xwininfo
is still reporting a color depth of 24.
Best Answer
Valid values for
"depth"
indefaults write org.macosforge.xquartz.X11 "depth" -int n
wheren
is one of the following:-1
8
15
24
These values were obtained using
defaults read org.macosforge.xquartz.X11 depth
after selecting each of the options in the menu.Here is the output of the
defaults
(read/write) andxwininfo -root
commands: