LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 953|回复: 2

虚拟机怎么配置显卡和显示器

[复制链接]
发表于 2005-8-15 22:47:31 | 显示全部楼层 |阅读模式
无意中把linux的X11配置弄坏了,我从事的linux下的工作都是文本界面 的,今日发现X命令后一大堆错误,哪个配置过linux X的高手指导一下。

出错信息


  1. XFree86 Version 4.2.0 (Red Hat Linux release: 4.2.0-8) / X Window System
  2. (protocol Version 11, revision 0, vendor release 6600)
  3. Release Date: 23 January 2002
  4.         If the server is older than 6-12 months, or if your card is
  5.         newer than the above date, look for a newer version before
  6.         reporting problems.  (See http://www.XFree86.Org/)
  7. Build Operating System: Linux 2.4.17-0.13smp i686 [ELF]
  8. Build Host: daffy.perf.redhat.com

  9. Module Loader present
  10. Markers: (--) probed, (**) from config file, (==) default setting,
  11.          (++) from command line, (!!) notice, (II) informational,
  12.          (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
  13. (==) Log file: "/var/log/XFree86.0.log", Time: Mon Aug 15 10:17:47 2005
  14. (==) Using config file: "/etc/X11/XF86Config-4"
  15. (EE) No devices detected.

  16. Fatal server error:
  17. no screens found

  18. When reporting a problem related to a server crash, please send
  19. the full server output, not just the last messages.
  20. This can be found in the log file "/var/log/XFree86.0.log".
  21. Please report problems to xfree86@xfree86.org.
复制代码


配置文件如下

  1. # XFree86 4.2.0 configuration generated by Xconfigurator 4.10.7

  2. Section "ServerLayout"
  3.         Identifier "XFree86 Configured"
  4.         Screen      0  "Screen0" 0 0
  5.         InputDevice    "Mouse0" "CorePointer"
  6.         InputDevice    "Keyboard0" "CoreKeyboard"
  7. EndSection

  8. # Red Hat Linux 6.0 and later use the xfs font server for improved
  9. # interactive performance

  10. Section "Files"
  11.         FontPath "unix/:7100"
  12. EndSection

  13. # Module loading section

  14. Section "Module"
  15.         Load  "dbe"             # Double-buffering
  16.         Load  "GLcore"          # OpenGL support
  17.         Load  "dri"             # Direct rendering infrastructure
  18.         Load  "glx"             # OpenGL X protocol interface
  19.         Load  "extmod"          # Misc. required extensions
  20.         Load  "v4l"             # Video4Linux
  21.         # Load  "record"        # X event recorder
  22.         # You only need the following two modules if you do not use xfs.
  23.         # Load  "freetype"       # TrueType font handler
  24.         # Load  "type1"         # Adobe Type 1 font handler
  25. EndSection

  26. Section "InputDevice"
  27.         Identifier  "Keyboard0"
  28.         Driver      "keyboard"
  29.         Option      "XkbLayout" "us"
  30. EndSection

  31. Section "InputDevice"
  32.         Identifier  "Mouse0"
  33.         Driver      "mouse"
  34.         Option      "Device" "/dev/mouse"
  35.         Option      "Protocol" "IMPS/2"
  36.         Option      "Emulate3Buttons" "off"
  37.         Option      "ZAxisMapping" "4 5"
  38. EndSection

  39. Section "Monitor"
  40.         Identifier "Acer 54es"
  41.         VendorName "Unknown"
  42.         ModelName  "Unknown"
  43.         HorizSync 31.0-54.0
  44.         VertRefresh 50.0-110.0
  45.         Option "dpms"
  46. EndSection

  47. Section "Device"
  48.         Identifier "My Video Card"
  49.         Driver "ati"
  50.         BoardName "Unknown"
  51. EndSection

  52. Section "Device"
  53.         Identifier "Linux Frame Buffer"
  54.         Driver "fbdev"
  55.         BoardName "Unknown"
  56. EndSection

  57. Section "Screen"
  58.         Identifier "Screen0"
  59.         Device "My Video Card"
  60.         Monitor "Acer 54es"
  61.         DefaultDepth 16
  62.         Subsection "Display"
  63.                 Depth 16
  64.                 Modes "640x480"
  65.         EndSubSection
  66. EndSection

  67. Section "DRI"
  68.         Mode 0666
  69. EndSection
复制代码
发表于 2005-8-15 22:53:30 | 显示全部楼层
看你用什么虚拟机了
看手册
回复 支持 反对

使用道具 举报

发表于 2005-8-15 23:57:29 | 显示全部楼层
用X的配置命令重新配置一下就可以了
看你使用的是Xfree,我好久没用了,忘记了xfree的配置命令是什么
Xconfig??
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表