Cygwin/X打不开的解决方法

分类: 代码, 笔记 | 标签: | 日期:2010-09-03 | 287 views

升级到Cygwin 1.7.7 版本之后,突然发现X-Server打开错误。

   1: ------------------------------------------------------------------------------------ XWin.0.log

   2: Welcome to the XWin X Server

   3: Vendor: The Cygwin/X Project

   4: Release: 1.8.2.0 (10802000)

   5: Build Date: 2010-08-06

   6:

   7: Contact: cygwin-xfree@cygwin.com

   8: XWin was started with the following command line:

   9:

  10: X :0 -multiwindow

  11:

  12: ddxProcessArgument - Initializing default screens

  13: winInitializeDefaultScreens - primary monitor w 1920 h 1080

  14: winInitializeDefaultScreens - native DPI x 96 y 96

  15: winInitializeDefaultScreens - Returning

  16: [  3755.474] winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1

  17: [  3755.474] (II) xorg.conf is not supported

  18: [  3755.474] (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information

  19: [  3755.474] LoadPreferences: /home/laixin/.XWinrc not found

  20: [  3755.474] LoadPreferences: Loading /etc/X11/system.XWinrc

  21: [  3755.474] LoadPreferences: Done parsing the configuration file...

  22: [  3755.474] winGetDisplay: DISPLAY=:0.0

  23: [  3755.474] winDetectSupportedEngines - Windows NT/2000/XP

  24: [  3755.521] winDetectSupportedEngines - DirectDraw installed

  25: [  3755.521] winDetectSupportedEngines - Allowing PrimaryDD

  26: [  3755.521] winDetectSupportedEngines - DirectDraw4 installed

  27: [  3755.521] winDetectSupportedEngines - Returning, supported engines 0000001f

  28: [  3755.521] winSetEngine - Multi Window or Rootless =>; ShadowGDI

  29: [  3755.521] winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per pixel

  30: [  3755.536] winAllocateFBShadowGDI - Creating DIB with width: 1920 height: 1080 depth: 32

  31: [  3755.536] winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff

  32: [  3755.536] winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32

  33: [  3755.536] null screen fn ReparentWindow

  34: [  3755.536] null screen fn RestackWindow

  35: [  3755.536] InitQueue - Calling pthread_mutex_init

  36: [  3755.536] InitQueue - pthread_mutex_init returned

  37: [  3755.536] InitQueue - Calling pthread_cond_init

  38: [  3755.536] InitQueue - pthread_cond_init returned

  39: [  3755.536] winInitMultiWindowWM - Hello

  40: [  3755.536] winInitMultiWindowWM - Calling pthread_mutex_lock ()

  41: [  3755.536] winMultiWindowXMsgProc - Hello

  42: [  3755.536] Screen 0 added at virtual desktop coordinate (0,0).

  43: [  3755.536] winMultiWindowXMsgProc - Calling pthread_mutex_lock ()

  44: [  3755.536] MIT-SHM extension disabled due to lack of kernel support

  45: [  3755.552] XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel

  46: [  3755.568] (II) AIGLX: Loaded and initialized /usr/lib/dri/swrast_dri.so

  47: [  3755.568] (II) GLX: Initialized DRISWRAST GL provider for screen 0

  48: [  3755.568] [dix] Could not init font path element /usr/share/fonts/TTF/, removing from list!

  49: [  3755.568] [dix] Could not init font path element /usr/share/fonts/OTF/, removing from list!

  50: [  3755.568] [dix] Could not init font path element /usr/share/fonts/Type1/, removing from list!

  51: [  3755.926] (EE) XKB: Could not invoke xkbcomp

  52: [  3755.926] (EE) XKB: Couldn't compile keymap

  53: [  3755.926] XKB: Failed to compile keymap

  54: [  3755.926] Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config.

  55: [  3755.926]

  56: Fatal server error:

  57: [  3755.926] Failed to activate core devices.

按照网上的提示重装了与xorg有关的所有包,也无济于事。最终还是搜到了我要的解决方法:

1. 退出所有Cygwin进程并关闭所有相关服务。

开始->运行      ash或者dash     也可以从cmd命令行中执行

在ash或者dash中执行引号内内容’/bin/rebaseall’

使用Cygwin.bat启动一次Cygwin。再次启动X server

2. 如果在X server启动后在应用程序中无法键入,尝试使用下面的命令来启动X Server

XWin -multiwindow -clipboard -silent-dup-error -xkblayout us &

参考来自:鳥哥的 Linux 私房菜-新手討論區 • 檢視主題 – 關於在cygwin下執行startx指令

你也许会喜欢的日志

目前还没有人发表评论  ↓发表评论↓

[ Ctrl+Enter提交 ]

3437471453591321281023251740504243322112038418334931126263041298715442436271424616193932548

Freelance PHP Developer