Re: Problem with WinXP, XF86, Caps lock, xterm and cursor keys
On Mon, 24 Nov 2003, Alan Shutko wrote: I've just gotten a new laptop at work with WinXP, and put Cygwin and XF86 on it. I'm currently running the latest as of today (4.3.0-25 server). I've disabled my capslock key and turned it into a control key with this registry hack: REGEDIT4 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] Scancode Map=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00 My caps lock key correctly works as a control key in all windows applications, and xev shows it acts just like Control_L. In xterm, I can use the caps lock key as a control key. Except, each time I press it, my arrow keys toggle between sending the correct ^[[A and the strange ^[[1;2A (for up; left, down and right have similar changes). Apparently, it's toggling the cursor keys into shifted state, because that's the shifted up arrow key. This only affects the arrow keys, and page up/page down (which are toggled into scrolling). It seems like there's a bug somewhere tracking the caps lock, since I seem to have correctly disabled caps lock for number keys, but not arrows. Cygwin/XFree uses raw scancodes and uses XKB for symbol translation. Your tweaking will most likely break this conversion. I declare such a modification as unsupported. You may still ask for pointers to documentation but I (and most likely the other regulars too) am not willing to debug such strange modifications. bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Compiling SNNS (Stuttgart Neural Network Simulator) or using v.4.2 binaries
Did anybody recompiled successfully SNNS 4.2 with Cygwin/X? Its home page is at http://www-ra.informatik.uni-tuebingen.de/SNNS/ I firstly tried using SNNS 4.2 binaries with latest Cygwin/X as X-server, but something wasn't working in the user interface (couldn't select some menu list entries), so I decided to get sources at http://www-ra.informatik.uni-tuebingen.de/downloads/SNNS/SNNSv4.2.tar.gz and try recompile them. Beside a few #define missing (that I properly fixed) seemed that the configure script was running fine, infact I can run the application, and now all the menu lists do work, but... when loading even an example configuration file I get syntax errors in file, and after some clicks, trying opening other windows, crashes. Note that I already used successfully on Linux some years ago, so not new to program usage. And yes, I know that JavaNNS does exist... Any help or hint would be greatly appreciated. Lou - Note: one 'h' is more than enough, in my e-mail address (spam prevention)
Re: startx problem on Win-XP
If you from a cmd window run startxwin.bat, what is printed out? If you run the startxwin.sh from a cygwin window, what is printed out? What does /tmp/XWin.log contain? /Andy / [EMAIL PROTECTED] (Reichel, Wolfgang ) wrote: | Harold , | |Reichel, Wolfgang wrote: |Hello ! |I have installed the newest cygwin-version |on my Win-XP box. |But i can't start the X-System. |It doesn't make any different how i try to start it. |I tried the following way... |startx 2/tmp/mistlog | | Use startxwin.bat instead: | http://xfree86.cygwin.com/docs/ug/using.html#using-starting-bat | Harold | | Thanks for your answer. But i tried all ways described in the | docs to start. Nothing works. | | The startxwin.bat runs but nothing happens. | | What can be the reason ? | | Wolfgang | -- The eye of the linker rests on the libs!
Re: Compiling SNNS (Stuttgart Neural Network Simulator) or using v.4.2 binaries
Lou, Lou Cyphre wrote: Did anybody recompiled successfully SNNS 4.2 with Cygwin/X? Its home page is at http://www-ra.informatik.uni-tuebingen.de/SNNS/ I firstly tried using SNNS 4.2 binaries with latest Cygwin/X as X-server, but something wasn't working in the user interface (couldn't select some menu list entries), so I decided to get sources at http://www-ra.informatik.uni-tuebingen.de/downloads/SNNS/SNNSv4.2.tar.gz and try recompile them. Beside a few #define missing (that I properly fixed) seemed that the configure script was running fine, infact I can run the application, and now all the menu lists do work, but... when loading even an example configuration file I get syntax errors in file, and after some clicks, trying opening other windows, crashes. Are you running Cygwin with binary mode mounts or did you change the default to text? Send in the output of the mount command run in a Cygwin bash shell. I would suspect that SNNS expects UNIX-style end-of-line characters and would thus be confused by DOS-style end-of-line characters. Poor coding could lead to a crash as well. Harold
Re: startx problem on Win-XP
If you from a cmd window run startxwin.bat, what is printed out? If you run the startxwin.sh from a cygwin window, what is printed out? What does /tmp/XWin.log contain? /Andy Hello Andy! Thanks for you answer. When i run startxwin.bat only startxwin.bat - Starting on Windows NT/2000/XP/2003 is printed out. When i run startxwin.sh also nothing is printed out. In /tmp/XWin.log i found a lot of messages. ddxProcessArgument - Initializing default screens winInitializeDefaultScreens - w 1280 h 1024 winInitializeDefaultScreens - Returning OsVendorInit - Creating bogus screen 0 (EE) Unable to locate/open config file InitOutput - Error reading config file winDetectSupportedEngines - Windows NT/2000/XP winDetectSupportedEngines - DirectDraw installed winDetectSupportedEngines - Allowing PrimaryDD winDetectSupportedEngines - DirectDraw4 installed winDetectSupportedEngines - Returning, supported engines 001f InitOutput - g_iNumScreens: 1 iMaxConsecutiveScreen: 1 winSetEngine - Multi Window = ShadowGDI winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per pixel winCreateBoundingWindowWindowed - User w: 1280 h: 1024 winCreateBoundingWindowWindowed - Current w: 1280 h: 1024 winAdjustForAutoHide - Original WorkArea: 0 0 1024 1280 winAdjustForAutoHide - Taskbar is auto hide winAdjustForAutoHide - Found BOTTOM auto-hide taskbar winAdjustForAutoHide - Adjusted WorkArea: 0 0 1023 1280 winCreateBoundingWindowWindowed - WindowClient w 1280 h 1023 r 1280 l 0 b 1023 t 0 winCreateBoundingWindowWindowed - Returning winAllocateFBShadowGDI - Creating DIB with width: 1280 height: 1023 depth: 32 winAllocateFBShadowGDI - Dibsection width: 1280 height: 1023 depth: 32 size image: 5237760 winAllocateFBShadowGDI - Created shadow stride: 1280 winFinishScreenInitFB - Masks: 00ff ff00 00ff winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24 bpp 32 winCreateDefColormap - Deferring to fbCreateDefColormap () null screen fn ReparentWindow null screen fn RestackWindow winFinishScreenInitFB - Calling winInitWM. InitQueue - Calling pthread_mutex_init InitQueue - pthread_mutex_init returned InitQueue - Calling pthread_cond_init InitQueue - pthread_cond_init returned winInitWM - Returning. winFinishScreenInitFB - returning winScreenInit - returning winInitMultiWindowWM - Hello winInitMultiWindowWM - Calling pthread_mutex_lock () winMultiWindowXMsgProc - Hello winMultiWindowXMsgProc - Calling pthread_mutex_lock () 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 (==) winConfigKeyboard - Layout: 0407 (0407) (==) Using preset keyboard for German (Germany) (407), type 4 (EE) No primary keyboard configured (==) Using compiletime defaults for keyboard Rules = xfree86 Model = pc105 Layout = de Variant = (null) Options = (null) Could not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list! Fatal server error: could not open default font 'fixed' winDeinitClipboard - Noting shutdown in progress winDeinitMultiWindowWM - Noting shutdown in progress What do i have to do now ??? Wolfgang
RE: startx problem on Win-XP
You need to install the fonts. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Reichel, Wolfgang Sent: Tuesday, November 25, 2003 9:39 AM To: [EMAIL PROTECTED] Subject: Re: startx problem on Win-XP If you from a cmd window run startxwin.bat, what is printed out? If you run the startxwin.sh from a cygwin window, what is printed out? What does /tmp/XWin.log contain? /Andy Hello Andy! Thanks for you answer. When i run startxwin.bat only startxwin.bat - Starting on Windows NT/2000/XP/2003 is printed out. When i run startxwin.sh also nothing is printed out. In /tmp/XWin.log i found a lot of messages. ddxProcessArgument - Initializing default screens winInitializeDefaultScreens - w 1280 h 1024 winInitializeDefaultScreens - Returning OsVendorInit - Creating bogus screen 0 (EE) Unable to locate/open config file InitOutput - Error reading config file winDetectSupportedEngines - Windows NT/2000/XP winDetectSupportedEngines - DirectDraw installed winDetectSupportedEngines - Allowing PrimaryDD winDetectSupportedEngines - DirectDraw4 installed winDetectSupportedEngines - Returning, supported engines 001f InitOutput - g_iNumScreens: 1 iMaxConsecutiveScreen: 1 winSetEngine - Multi Window = ShadowGDI winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per pixel winCreateBoundingWindowWindowed - User w: 1280 h: 1024 winCreateBoundingWindowWindowed - Current w: 1280 h: 1024 winAdjustForAutoHide - Original WorkArea: 0 0 1024 1280 winAdjustForAutoHide - Taskbar is auto hide winAdjustForAutoHide - Found BOTTOM auto-hide taskbar winAdjustForAutoHide - Adjusted WorkArea: 0 0 1023 1280 winCreateBoundingWindowWindowed - WindowClient w 1280 h 1023 r 1280 l 0 b 1023 t 0 winCreateBoundingWindowWindowed - Returning winAllocateFBShadowGDI - Creating DIB with width: 1280 height: 1023 depth: 32 winAllocateFBShadowGDI - Dibsection width: 1280 height: 1023 depth: 32 size image: 5237760 winAllocateFBShadowGDI - Created shadow stride: 1280 winFinishScreenInitFB - Masks: 00ff ff00 00ff winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24 bpp 32 winCreateDefColormap - Deferring to fbCreateDefColormap () null screen fn ReparentWindow null screen fn RestackWindow winFinishScreenInitFB - Calling winInitWM. InitQueue - Calling pthread_mutex_init InitQueue - pthread_mutex_init returned InitQueue - Calling pthread_cond_init InitQueue - pthread_cond_init returned winInitWM - Returning. winFinishScreenInitFB - returning winScreenInit - returning winInitMultiWindowWM - Hello winInitMultiWindowWM - Calling pthread_mutex_lock () winMultiWindowXMsgProc - Hello winMultiWindowXMsgProc - Calling pthread_mutex_lock () 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 (==) winConfigKeyboard - Layout: 0407 (0407) (==) Using preset keyboard for German (Germany) (407), type 4 (EE) No primary keyboard configured (==) Using compiletime defaults for keyboard Rules = xfree86 Model = pc105 Layout = de Variant = (null) Options = (null) Could not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list! Fatal server error: could not open default font 'fixed' winDeinitClipboard - Noting shutdown in progress winDeinitMultiWindowWM - Noting shutdown in progress What do i have to do now ??? Wolfgang
Re: Alt key isn't Meta in Cygwin xterm (Norwegian keyboard)
Hans Dekker [EMAIL PROTECTED]: Change to es file: key RALT { type[Group1]=TWO_LEVEL, [ Mode_switch, Multi_key ] }; modifier_map Mod5 { RALT }; The no file looks like this: key RALT { type[Group1]=TWO_LEVEL, [ ISO_Level3_Shift, Multi_key ] }; modifier_map Mod5 { RALT }; But I'm not sure how this applies to the left Alt not being taken as meta in xterm? I'd guess it had something to do with keycaps rather than X keysym mappings, since Alt works fine as Meta in Emacs...?
Re: How to get my auto repeat back?
-25 has fixed autorepeat for me. Thanks to everyone! Thanks. Jeff -- Jeffrey C. Honig [EMAIL PROTECTED] http://www.honig.net/jch GnuPG ID:14E29E13 http://www.honig.net/jch/key.shtml
Re: Compiling SNNS (Stuttgart Neural Network Simulator) or usingv.4.2 binaries
Answering to Harold: my system is mounted in binary mode. Anyway that doesn't seem to be the cause for that crash: looks like that the first operation done in floating point (so I suspect) brings the application in an unstable state -- after reading the file that causes the syntax error I can still do other tasks in the user interface, for a while. I'm sorry to be so approximative about this issue: the program itself is quite large, to investigate. What I hoped was to find someone who did it already, to steal his/her experience on this... while maybe I will have to manage it myself, unless not switching to the Java version of SNNS. Thanks again for reading and helping. Lou
Re: Compiling SNNS (Stuttgart Neural Network Simulator) or usingv.4.2 binaries
Nevermind... that was a silly question. Harold Lou Cyphre wrote: Answering to Harold: my system is mounted in binary mode. Anyway that doesn't seem to be the cause for that crash: looks like that the first operation done in floating point (so I suspect) brings the application in an unstable state -- after reading the file that causes the syntax error I can still do other tasks in the user interface, for a while. I'm sorry to be so approximative about this issue: the program itself is quite large, to investigate. What I hoped was to find someone who did it already, to steal his/her experience on this... while maybe I will have to manage it myself, unless not switching to the Java version of SNNS. Thanks again for reading and helping. Lou
Re: Problem with WinXP, XF86, Caps lock, xterm and cursor keys
Alexander Gottwald [EMAIL PROTECTED] writes: Cygwin/XFree uses raw scancodes and uses XKB for symbol translation. Your tweaking will most likely break this conversion. I could understand that, if it were consistent. If Cygwin/XFree considered that key to still be caps lock, I could easily fix it with xmodmap. But it doesn't, xev sees it as control. Furthermore, why is it shifting arrow keys and page up/down but not anything else? Finally, why is caps lock affecting those keys at all? I haven't seen that on XFree86 on Linux, nor on any other X server I've tried. Personally, I suspect that some piece of code is handling things differently than the rest, so even the usual methods of fixing things (ie, xresources, xmodmap) may not fix things. (But I'll be giving it a try, since it's easy.) I declare such a modification as unsupported. You may still ask for pointers to documentation I'll take you up on that offer. Could you point me to some info on how Cygwin/XFree86 gets those scancodes and runs the conversion? Maybe I could put together a variant XKB layout without caps lock -- Alan Shutko [EMAIL PROTECTED] - I am the rocks. St. Vidicon of Cathode, pray for us!
Re: Problem with WinXP, XF86, Caps lock, xterm and cursor keys
Harold L Hunt II [EMAIL PROTECTED] writes: You see, we don't do this sort of translation on our own. It may be that Windows is sending different codes when CapsLock is down, in which case we might want to translate those different codes to match the normal codes. Does that make sense? Makes sense. Unfortunately, I don't have Spy++, but I'll keep working on it -- Alan Shutko [EMAIL PROTECTED] - I am the rocks. Let the carnage begin! - Larry
in xemacs or emacs the highlight disappeared, problems related to clipboard
Dear All, I use cygwin/Xserver on my win2000 as multiwindow mode. It is a great work. I have two problems. 1. )It is good to copy between windows and X programs, so I start the Xserver with the parameter '-clipborad'. When press the left button of mouse to highlight a region and release the button the highlight disappeared automatically. And in the xemacs(emacs)mini window shows a message mark set. The normal response should keep the highligh. Start the Xserver without the parameter '-clipboard', xemacs works normally. 2.)I have a dictionary program to pick up the words in the sreen. After I start local emacs in the cygwin shell , the program can't pick up any word.. I thought it was the clipboard 's bug, wasn't it? Thank you very much, Hong
Re: in xemacs or emacs the highlight disappeared, problems related to clipboard
That is by design. Search the archives if you want to know why. Hong Zhou wrote: Dear All, I use cygwin/Xserver on my win2000 as multiwindow mode. It is a great work. I have two problems. 1. )It is good to copy between windows and X programs, so I start the Xserver with the parameter '-clipborad'. When press the left button of mouse to highlight a region and release the button the highlight disappeared automatically. And in the xemacs(emacs)mini window shows a message mark set. The normal response should keep the highligh. Start the Xserver without the parameter '-clipboard', xemacs works normally. 2.)I have a dictionary program to pick up the words in the sreen. After I start local emacs in the cygwin shell , the program can't pick up any word.. I thought it was the clipboard 's bug, wasn't it? Thank you very much, Hong