升级Cygwin后,X Server无法启动。据我所知,命令输出中唯一的错误信息是:
xinit:XFree86_VT属性意外地有0个项而不是1个
/var/log/xwin/XWin.0.log
没有此消息。我已粘贴整个输出位于底部。
从cygwin镜像初始安装后,我使用Cygwin Ports获取了git
的最新版本。我的最新更新来自Cygwin镜像。这可能导致了这个问题吗?
我已经尝试从cygwin镜像重新安装所有内容,使用每个类别的重新安装选项。除了卸载所有内容并重新安装之外,我还有其他选择吗?
$ /usr/bin/startxwin Welcome to the XWin X Server Vendor: The Cygwin/X Project Release: 1.16.2.0 OS: CYGWIN_NT-6.1 OAKN00563024A 1.7.33-2(0.280/5/3) 2014-11-13 15:47 x86_64 OS: Windows 7 Service Pack 1 [Windows NT 6.1 build 7601] (Win64) Package: version 1.16.2-1 built 2014-11-11 XWin was started with the following command line: /usr/bin/XWin :0 -multiwindow -nolisten tcp -auth /home/I063510/.serverauth.1328 (II) xorg.conf is not supported (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information LoadPreferences: /home/I063510/.XWinrc not found LoadPreferences: Loading /etc/X11/system.XWinrc LoadPreferences: Done parsing the configuration file... winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL winDetectSupportedEngines - Returning, supported engines 00000015 winSetEngine - Multi Window or Rootless => ShadowGDI winScreenInit - Using Windows display depth of 32 bits per pixel winAllocateFBShadowGDI - Creating DIB with width: 1600 height: 900 depth: 32 winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32 MIT-SHM extension disabled due to lack of kernel support XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel glWinSelectGLimplementation: Loaded 'cygnativeGLthunk.dll' GL_VERSION: 4.3.0 GL_VENDOR: NVIDIA Corporation GL_RENDERER: Quadro K2100M/PCIe/SSE2 (II) AIGLX: enabled GLX_SGI_make_current_read (II) AIGLX: enabled GLX_MESA_copy_sub_buffer (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control (II) AIGLX: enabled GLX_SGIX_pbuffer (II) AIGLX: enabled GLX_ARB_multisample and GLX_SGIS_multisample (II) 1002 pixel formats reported by wglGetPixelFormatAttribivARB (II) AIGLX: Set GLX version to 1.4 (II) 825 fbConfigs (II) ignored pixel formats: 0 not OpenGL, 54 RBGA float, 87 RGBA unsigned float, 0 unknown pixel type, 36 unaccelerated (II) GLX: Initialized Win32 native WGL GL provider for screen 0 winPointerWarpCursor - Discarding first warp: 800 450 (--) 8 mouse buttons found (--) Setting autorepeat to delay=500, rate=31 (--) Windows keyboard layout: "00000409" (00000409) "US", type 7 (--) Found matching XKB configuration "English (USA)" (--) Model = "pc105" Layout = "us" Variant = "none" Options = "none" Rules = "base" Model = "pc105" Layout = "us" Variant = "none" Options = "none" winInitMultiWindowWM - DISPLAY=:0.0 winMultiWindowXMsgProc - DISPLAY=:0.0 winProcEstablishConnection - winInitClipboard returned. winClipboardThreadProc - DISPLAY=:0.0 OS maintains clipboard viewer chain: yes winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the display. winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the display. winClipboardProc - XOpenDisplay () returned and successfully opened the display. xinit: XFree86_VT property unexpectedly has 0 items instead of 1 xinit: connection to X server lost waiting for X server to shut down winClipboardProc - winClipboardFlushWindowsMessageQueue trapped WM_QUIT message, exiting main loop. winClipboardProc - XDestroyWindow succeeded. winClipboardIOErrorHandler! winMultiWindowXMsgProcIOErrorHandler! winInitMultiWindowXMsgProc - Caught IO Error. Exiting. winDeinitMultiWindowWM - Noting shutdown in progress (EE) Server terminated successfully (0). Closing log file.
答案 0 :(得分:19)
CygWin升级后我遇到了同样的问题。
xwin对我来说很好,它很干净,没有丑陋的xterm窗口。
alias runx="run xwin -multiwindow -noclipboard"
根据Daniel的说法,“-noclipboard”不是必须的,谢谢。
答案 1 :(得分:7)
我在Cygwin-X mailing list找到答案:
Once I switched to xinit -- -multiwindow -clipboard & I was fine.
答案 2 :(得分:5)
来自http://x.cygwin.com/docs/ug/using.html:##
- 请注意,在〜/ .startxwinrc完成后,startxwin不再退出,让> X运行,但是,与startx类似,等待〜/ .startxwinrc退出然后杀死X.
如果您不希望X服务器退出,直到明确告知这样做,请使用 exec sleep infinity 之类的内容结束〜/ .startxwinrc。
所以,放在〜/ .startwinrc:
exec sleep infinity
答案 3 :(得分:1)
我遇到了这样的问题,但发现启动xwin的快捷方式有目标
C:\cygwin64\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/startxwin.exe
但是将其更改为
C:\cygwin64\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/startxwin
让它发挥作用。