2014-12-17 14 views
15

Dopo l'aggiornamento di Cygwin, X Server non si avvia. Per quanto posso dire l'unico messaggio di errore dalla output del comando è:X non si avvia dopo l'aggiornamento cygwin

xinit: proprietà XFree86_VT ha inaspettatamente 0 prodotti invece di 1

/var/log/xwin/XWin.0.log non ha questo messaggio. Ho incollato l'intera uscita è in fondo.

Dopo l'installazione iniziale da un mirror cygwin, avevo utilizzato Cygwin Ports per ottenere una versione recente di git. Il mio ultimo aggiornamento è stato da Cygwin mirror. Potrebbe aver causato il problema?

Ho già provato a reinstallare tutto da cygwin mirror, utilizzando l'opzione di reinstallazione per ogni categoria. Ho qualche altra opzione oltre a disinstallare tutto e reinstallare?

 
$ /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. 

risposta

19

Ho incontrato lo stesso problema dopo l'aggiornamento CygWin.

xwin funziona bene per me ed è pulito, senza la brutta finestra di xterm.

alias runx="run xwin -multiwindow -noclipboard" 

Secondo Daniel, "-noclipboard" non è un must, grazie.

+1

Questo ha risolto il problema per me e non ha aperto una brutta finestra di xterm come ha fatto la risposta di @Miserable Variable. Per preferenze personali ho usato '-clipboard' piuttosto che' -noclipboard'. –

+1

Anche io in realtà ho optato per questa soluzione migliore :) –

+0

Questo ha funzionato come un sogno per me. Dopo mesi di ricerca di una soluzione. Aggiunto l'alias al mio '~/.profile'. Grazie – RiggsFolly

7

ho trovato la risposta su Cygwin-X mailing list:

 
Once I switched to 

xinit -- -multiwindow -clipboard & 

I was fine. 
4

Da http://x.cygwin.com/docs/ug/using.html:##

  • Si noti che non è più startxwin esce dopo ~/.startxwinrc ha completato, lasciando> X in esecuzione, ma, simile a startx, attende che ~/.startxwinrc uscite e poi uccide X

    Se non si desidera che il server X esca fino a quando non viene esplicitamente richiesto di farlo, terminare ~/.startxwinrc con qualcosa come exec sleep infinity.


Quindi, mettere alla fine del file ~/.startwinrc:

exec sleep infinity 
1

Ho avuto un problema, ma ha trovato che il collegamento per l'avvio xwin ha avuto l'obiettivo

C:\cygwin64\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/startxwin.exe 

Ma cambiare questo per

C:\cygwin64\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/startxwin 

funziona.