Chinaunix

标题: vnc怎么上24位色? [打印本页]

作者: zo0o    时间: 2009-03-26 03:02
标题: vnc怎么上24位色?
改了半天 一直是16位色

vnc是通过x加载的
xorg.cnf里面那个vnc subsecion加depth好像没作用,客户端这块都是最大了~ 可链接信息里面 还是显示用的是16位 不是24位。奇怪~~


  1. Section "Module"
  2.         Load  "extmod"
  3.         Load  "dbe"
  4.         Load  "glx"
  5.         Load  "freetype"
  6.         Load  "type1"
  7.         Load  "record"
  8.         Load  "dri"
  9.         Load  "vnc"
  10.         SubSection "vnc"
  11.                 Option      "RSA_Private_Key_File" "/root/.vnc/private.key"
  12.                 Option      "AllowedUsers" "*:d"
  13.         EndSubSection
  14. EndSection

  15. Section "InputDevice"
  16.         Identifier  "Keyboard0"
  17.         Driver      "kbd"
  18.         Option      "XkbModel" "pc105"
  19.         Option      "XkbLayout" "us"
  20. EndSection

  21. Section "Monitor"
  22.         Identifier   "Monitor0"
  23.         ModelName    "LCD Panel 1280x1024"
  24. ### Comment all HorizSync and VertSync values to use DDC:
  25.         HorizSync    31.5 - 64.0
  26.         VertRefresh  56.0 - 65.0
  27.         Option      "dpms"
  28. EndSection

  29. Section "Device"
  30.         Identifier  "Videocard0"
  31.         Driver      "mga"
  32. EndSection

  33. Section "Screen"
  34.         Identifier "Screen0"
  35.         Device     "Videocard0"
  36.         Monitor    "Monitor0"
  37.         DefaultDepth     24
  38.         SubSection "Display"
  39.                 Viewport   0 0
  40.                 Depth     24
  41.                 Modes    "1024x768" "800x600" "640x480"
  42.         EndSubSection
  43.         SubSection "Display"
  44.                 Viewport   0 0
  45.                 Depth     16
  46.                 Modes    "800x600"
  47.         EndSubSection
  48. EndSection
复制代码





欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2