Vitruvian Penguin
knoppix

[knoppix:3087] Re: 32bit color depth

Date: Sun, 21 Mar 2004 01:03:02 +0900
X-mailer: Sylpheed version 0.9.6 (GTK+ 1.2.10; i386-pc-linux-gnu)
尾山です。こんばんは。

xdpyinfo コマンドで X の情報を取得できます。
例えば、うちだとこんな感じです。

knoppix@1[knoppix]$ xdpyinfo
name of display:    :0.0
version number:    11.0
vendor string:    The XFree86 Project, Inc
vendor release number:    40300000
XFree86 version: 4.3.0
maximum request size:  4194300 bytes
:
省略
:
screen #0:
  dimensions:    1600x1200 pixels (542x406 millimeters)
  resolution:    75x75 dots per inch
  depths (7):    16, 1, 4, 8, 15, 24, 32
  root window id:    0x48
  depth of root window:    16 planes
  number of colormaps:    minimum 1, maximum 1
  default colormap:    0x20
  default number of colormap cells:    64
  preallocated pixels:    black 0, white 65535
  options:    backing-store NO, save-unders NO
  largest cursor:    1600x1200
  current input event mask:    0xda4031
    KeyPressMask             EnterWindowMask          LeaveWindowMask
    KeymapStateMask          StructureNotifyMask      SubstructureNotifyMask
    SubstructureRedirectMask PropertyChangeMask       ColormapChangeMask
  number of visuals:    16
  default visual id:  0x23
:
省略
:

screen #0 がディスプレイ0番目の情報をあらわしていて、
dimensions : モニタ解像度
resolution : モニタ上の表示解像度
depth(n)   : X サーバの表示可能な色深度 (n:色深度の数)
depth of root window : ルートウィンドウの色深度

だと思います。(かなり憶測入ってますけど(汗
というわけなので、おそらく depth of root window のところを
見ればわかると思います。

で、どこを変更すればお望みの色深度で X サーバを起動できる
のかというと、/etc/X11/XF86Config-4 の default depth 行を
次のように変更するとできると思います。

変更前
        DefaultColorDepth 16
変更後
        DefaultColorDepth 32

また、この変更は cloop ファイルの中に入っているファイルを
変更することになるので、HD インストールしていれば簡単に
書き換えられるかなと思います。

この変更をしても再起動するたびに XF86Config-4 の
DefaultColorDepth 16 に戻ってしまう場合には、
/etc/X11/XF86Config-4.in を同様に編集してみて下さい。

ではでは。
<Prev in Thread] Current Thread [Next in Thread>