I know the X.org server run is executed with certain value of bpp, 8bpp by default i think.
But how can I find out the actual bits per pixel using into my framebuffer while i'm on linux? is there any command that can get it?
Thanks.
I know the X.org server run is executed with certain value of bpp, 8bpp by default i think.
But how can I find out the actual bits per pixel using into my framebuffer while i'm on linux? is there any command that can get it?
Thanks.
In a terminal, run the
xwininfo
command, then choose a window - theDepth:
result is the bits per pixel. For example:You could also use
xdpyinfo
, which will give you more information than you probably want - including all available bit depths for your displays (without showing you which one is actually in use).adding an answer since I lack reputation to post a comment to David Purdue's answer..
As David mentions,
xdpyinfo
can be used. The advantage overxwininfo
is that you don't need to select a window, which can be handy when you are checking a virtual framebuffer created withXvfb
.Here is a snippet of the relevant output of the command
xdpyinfo
:The
depth of root window
reflects the bit depth of the root window, in this example it's 8 bits.The
depths
property lists the supported bit depths, the first number indicates the current bit depth.