Problem starting the X server

Joel Ledain <[email protected]>
Newsgroups gmane.os.cygwin.xfree
Message-ID <[email protected]>
Hello good guys,

I just installed the Cygwin packages on top of a "Windows 7". The 
machine is Gateway NV55S28u. Install went fine. Rebooted the machine and 
tried the bash window, this works fine. Then tried to start the X 
server, and here I have a problem. I thing my problem is related to the 
keyboard binding/support/missing packages...

I tried to use the command setxkbmap, but without the X server running I 
am not getting anything beside "cannot open display".

For the Windows control panel -> devices -> keyboard, I see a "standard 
PS2 keyboard".  I have the xkeyboard-config package installed.

I am attaching the log of my troubles.

Thanks in advance for your great help.
Joel LEDAIN

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/
typescript.txt (text/plain, 11.8 KB)
Script started on Thu, Sep 25, 2014  5:59:11 PM
$ echo $XAPPLRESDIR $XCMSDB $XNLSPATH $XKEYSYMDB $DISPLAY

$ cygcheck -c xkeyboard-config
Cygwin Package Information
Package              Version        Status
xkeyboard-config     2.12-1         OK
$ which xkbcomp 
/usr/bin/xkbcomp
$ ls -l /usr/bin/xkbcomp
-rwxr-xr-x 1 joel None 189971 Apr  8  2013 /usr/bin/xkbcomp
$ /usr/bin/xkbcomp
Error:            No input file specified
$ cygcheck /usr/bin/xkbcomp 
C:\cygwin64\bin\xkbcomp.exe
  C:\cygwin64\bin\cygwin1.dll
    C:\Windows\system32\KERNEL32.dll
      C:\Windows\system32\API-MS-Win-Core-RtlSupport-L1-1-0.dll
      C:\Windows\system32\ntdll.dll
      C:\Windows\system32\KERNELBASE.dll
      C:\Windows\system32\API-MS-Win-Core-ProcessThreads-L1-1-0.dll
      C:\Windows\system32\API-MS-Win-Core-Heap-L1-1-0.dll
      C:\Windows\system32\API-MS-Win-Core-Memory-L1-1-0.dll
      C:\Windows\system32\API-MS-Win-Core-Handle-L1-1-0.dll
      C:\Windows\system32\API-MS-Win-Core-Synch-L1-1-0.dll
      C:\Windows\system32\API-MS-Win-Core-File-L1-1-0.dll
      C:\Windows\system32\API-MS-Win-Core-IO-L1-1-0.dll
      C:\Windows\system32\API-MS-Win-Core-ThreadPool-L1-1-0.dll
      C:\Windows\system32\API-MS-Win-Core-LibraryLoader-L1-1-0.dll
      C:\Windows\system32\API-MS-Win-Core-NamedPipe-L1-1-0.dll
      C:\Windows\system32\API-MS-Win-Core-Misc-L1-1-0.dll
      C:\Windows\system32\API-MS-Win-Core-SysInfo-L1-1-0.dll
      C:\Windows\system32\API-MS-Win-Core-Localization-L1-1-0.dll
      C:\Windows\system32\API-MS-Win-Core-ProcessEnvironment-L1-1-0.dll
      C:\Windows\system32\API-MS-Win-Core-String-L1-1-0.dll
      C:\Windows\system32\API-MS-Win-Core-Debug-L1-1-0.dll
      C:\Windows\system32\API-MS-Win-Core-ErrorHandling-L1-1-0.dll
      C:\Windows\system32\API-MS-Win-Core-Fibers-L1-1-0.dll
      C:\Windows\system32\API-MS-Win-Core-Util-L1-1-0.dll
      C:\Windows\system32\API-MS-Win-Core-Profile-L1-1-0.dll
      C:\Windows\system32\API-MS-Win-Security-Base-L1-1-0.dll
  C:\cygwin64\bin\cygX11-6.dll
    C:\cygwin64\bin\cygxcb-1.dll
      C:\cygwin64\bin\cygXau-6.dll
      C:\cygwin64\bin\cygXdmcp-6.dll
  C:\cygwin64\bin\cygxkbfile-1.dll

$ startxwin

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.16.0.0
OS: CYGWIN_NT-6.1 Joel_laptop 1.7.32(0.274/5/3) 2014-08-13 23:06 x86_64
OS: Windows 7 Service Pack 1 [Windows NT 6.1 build 7601] (Win64)
Package: version 1.16.0-2 built 2014-09-16

XWin was started with the following command line:

X :0 -multiwindow 

(II) xorg.conf is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
LoadPreferences: /home/joel/.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: 1366 height: 768 depth: 32
winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32
winInitMultiWindowWM - Calling pthread_mutex_lock ()
winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
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.1.11159 Compatibility Profile Context
GL_VENDOR:      ATI Technologies Inc.
GL_RENDERER:    AMD Radeon(TM) HD 6520G
(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) 107 pixel formats reported by wglGetPixelFormatAttribivARB
(II) AIGLX: Set GLX version to 1.4
(II) 30 fbConfigs
(II) ignored pixel formats: 0 not OpenGL, 12 RBGA float, 30 RGBA unsigned float, 0 unknown pixel type, 35 unaccelerated
(II) GLX: Initialized Win32 native WGL GL provider for screen 0
(EE) Couldn't open compiled keymap file /var/lib/xkb/server-0.xkm
(EE) XKB: Failed to load keymap. Loading default keymap instead.
(EE) Couldn't open compiled keymap file /var/lib/xkb/server-0.xkm
XKB: Failed to compile keymap
Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config.
(EE) Fatal server error:
(EE) Failed to activate core devices.(EE) 
(EE) Server terminated with error (1). Closing log file.
winDeinitMultiWindowWM - Noting shutdown in progress
startxwin: giving up
startxwin: unable to connect to X server: Connection refused
startxwin: server error



$ xwin -logverbose 100
Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.16.0.0
OS: CYGWIN_NT-6.1 Joel_laptop 1.7.32(0.274/5/3) 2014-08-13 23:06 x86_64
OS: Windows 7 Service Pack 1 [Windows NT 6.1 build 7601] (Win64)
Package: version 1.16.0-2 built 2014-09-16

XWin was started with the following command line:

xwin -logverbose 100 

OsVendorInit - Creating default screen 0
winInitializeScreens - 1
winInitializeScreen - 0
winValidateArgs - Returning.
(II) xorg.conf is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
LoadPreferences: /home/joel/.XWinrc not found
LoadPreferences: Loading /etc/X11/system.XWinrc
LoadPreferences: Done parsing the configuration file...
winGetDisplay: DISPLAY=:0.0
winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL
winDetectSupportedEngines - Returning, supported engines 00000015
winMsgWindowThreadProc - Hello
winScreenInit - dwWidth: 1366 dwHeight: 768
winSetEngine - Using Shadow DirectDraw NonLocking
winScreenInit - Using Windows display depth of 32 bits per pixel
winCreateBoundingWindowWindowed - User w: 1366 h: 768
winCreateBoundingWindowWindowed - Current w: 1366 h: 768
winGetWorkArea - Monitor 1 WorkArea: 0 0 728 1366
winAdjustForAutoHide - Original WorkArea: 0 0 728 1366
winCreateMsgWindow - Created msg window hwnd 0x70174
winAdjustForAutoHide - Adjusted WorkArea: 0 0 728 1366
winCreateBoundingWindowWindowed - WindowClient w 1350 h 690 r 1350 l 0 b 690 t 4294967296
winWindowProc - WM_ACTIVATEAPP
winWindowProc - WM_SIZE - new client area w: 1350 h: 690
winCreateBoundingWindowWindowed -  Returning
winCreatePrimarySurfaceShadowDDNL - Creating primary surface
winCreatePrimarySurfaceShadowDDNL - Created primary surface
winCreatePrimarySurfaceShadowDDNL - Attached clipper to primary surface
winAllocateFBShadowDDNL - lPitch: 5400
winAllocateFBShadowDDNL - Created shadow pitch: 5400
winAllocateFBShadowDDNL - Created shadow stride: 1350
winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
winInitVisualsShadowDDNL - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32
winRandRInit ()
winCreateDefColormap - Deferring to fbCreateDefColormap ()
winFinishScreenInitFB - returning
winScreenInit - returning
InitOutput - Returning.
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
(EE) AIGLX: No native OpenGL in modes with a root window
(II) AIGLX: enabled GLX_EXT_texture_from_pixmap
(II) AIGLX: Loaded and initialized swrast
(II) GLX: Initialized DRISWRAST GL provider for screen 0
(EE) Couldn't open compiled keymap file /var/lib/xkb/server-0.xkm
(EE) XKB: Failed to load keymap. Loading default keymap instead.
(EE) Couldn't open compiled keymap file /var/lib/xkb/server-0.xkm
XKB: Failed to compile keymap
Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config.
(EE) Fatal server error:
(EE) Failed to activate core devices.(EE) 
(EE) Server terminated with error (1). Closing log file.
winWindowProc - WM_ACTIVATEAPP


$ ls -l /var/lib/xkb/server-0.xkm
ls: cannot access /var/lib/xkb/server-0.xkm: No such file or directory

$ cat /var/log/xwin/XWin.0.log
Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.16.0.0
OS: CYGWIN_NT-6.1 Joel_laptop 1.7.32(0.274/5/3) 2014-08-13 23:06 x86_64
OS: Windows 7 Service Pack 1 [Windows NT 6.1 build 7601] (Win64)
Package: version 1.16.0-2 built 2014-09-16

XWin was started with the following command line:

xwin -logverbose 100 

ddxProcessArgument - Initializing default screens
winInitializeScreenDefaults - primary monitor w 1366 h 768
winInitializeScreenDefaults - native DPI x 96 y 96
[  1342.170] OsVendorInit - Creating default screen 0
[  1342.170] winInitializeScreens - 1
[  1342.170] winInitializeScreen - 0
[  1342.185] winValidateArgs - Returning.
[  1342.185] (II) xorg.conf is not supported
[  1342.185] (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
[  1342.185] LoadPreferences: /home/joel/.XWinrc not found
[  1342.185] LoadPreferences: Loading /etc/X11/system.XWinrc
[  1342.185] LoadPreferences: Done parsing the configuration file...
[  1342.185] winGetDisplay: DISPLAY=:0.0
[  1342.263] winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL
[  1342.263] winDetectSupportedEngines - Returning, supported engines 00000015
[  1342.263] [  1342.263] winScreenInit - dwWidth: 1366 dwHeight: 768
winMsgWindowThreadProc - Hello
[  1342.263] winSetEngine - Using Shadow DirectDraw NonLocking
[  1342.263] winScreenInit - Using Windows display depth of 32 bits per pixel
[  1342.263] winCreateBoundingWindowWindowed - User w: 1366 h: 768
[  1342.263] winCreateBoundingWindowWindowed - Current w: 1366 h: 768
[  1342.263] winGetWorkArea - Monitor 1 WorkArea: 0 0 728 1366
[  1342.263] winAdjustForAutoHide - Original WorkArea: 0 0 728 1366
[  1342.263] winCreateMsgWindow - Created msg window hwnd 0x70174
[  1342.263] winAdjustForAutoHide - Adjusted WorkArea: 0 0 728 1366
[  1342.263] winCreateBoundingWindowWindowed - WindowClient w 1350 h 690 r 1350 l 0 b 690 t 4294967296
[  1342.279] winWindowProc - WM_ACTIVATEAPP
[  1342.279] winWindowProc - WM_SIZE - new client area w: 1350 h: 690
[  1342.279] winCreateBoundingWindowWindowed -  Returning
[  1342.388] winCreatePrimarySurfaceShadowDDNL - Creating primary surface
[  1342.388] winCreatePrimarySurfaceShadowDDNL - Created primary surface
[  1342.388] winCreatePrimarySurfaceShadowDDNL - Attached clipper to primary surface
[  1342.388] winAllocateFBShadowDDNL - lPitch: 5400
[  1342.388] winAllocateFBShadowDDNL - Created shadow pitch: 5400
[  1342.388] winAllocateFBShadowDDNL - Created shadow stride: 1350
[  1342.388] winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
[  1342.388] winInitVisualsShadowDDNL - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32
[  1342.404] winRandRInit ()
[  1342.404] winCreateDefColormap - Deferring to fbCreateDefColormap ()
[  1342.404] winFinishScreenInitFB - returning
[  1342.404] winScreenInit - returning
[  1342.404] InitOutput - Returning.
[  1342.419] MIT-SHM extension disabled due to lack of kernel support
[  1342.419] XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel
[  1342.435] (EE) AIGLX: No native OpenGL in modes with a root window
[  1344.276] (II) AIGLX: enabled GLX_EXT_texture_from_pixmap
[  1344.276] (II) AIGLX: Loaded and initialized swrast
[  1344.276] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[  1344.432] (EE) Couldn't open compiled keymap file /var/lib/xkb/server-0.xkm
[  1344.432] (EE) XKB: Failed to load keymap. Loading default keymap instead.
[  1344.494] (EE) Couldn't open compiled keymap file /var/lib/xkb/server-0.xkm
[  1344.494] XKB: Failed to compile keymap
[  1344.494] Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config.
[  1344.494] (EE) Fatal server error:
[  1344.494] (EE) Failed to activate core devices.(EE) 
[  1344.494] (EE) Server terminated with error (1). Closing log file.



$ exit
exit

Script done on Thu, Sep 25, 2014  6:37:37 PM
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.