This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem about keyboard


kyle @ gmail wrote:
> Dear Sir,
> I downloaded and installed cygwin on this Thuesday,
> but I found that I can not type anything in X-server console.
> I read the Q&A, and it said this problem is caused by old version of
> startxwin.bat
> But since this is my first time to install cygwin, there is no
> startxwin.bat in my cygwin directory.
> I've also checked if there is anything setting XKEYSYMDB, but it
> replied nothing.
>
> Could you give me any suggest to fix that problem? (My OS is windows
> vista)
> Thanks.

I posted the solution to this problem last month, but I don't see my
message in the archives, so here it is again:

On 3/14/2010 12:20 PM, Bob Kline wrote:

> I can live with working around the second problem (that launching X
> using the shortcut doesn't work at all) by invoking startxwin.exe
> directly. I'm much more eager to solve the original problem (X no
> longer recognizes input from the keyboard).

Well, I have resolved both problems with one stroke. I dug out a copy of
the old startxwin.bat script from a backup archive, doctored it up a
little (mostly to make sure old environment variables are cleared out)
and I'm using the script to launch X instead of the compiled binary, of
which I was suspicious from the start. I mean, making a process opaque
so users won't have to understand how it works is such a Microsoft way
of doing things. At any rate, X no longer blows up with the vague error
message, and apps running under X now see the keyboard events.

Thanks to those who responded with suggestions. Just in case someone
else stumbles onto this problem, I've attached a copy of the script I'm
using.

------------------------------------------------------------------------

@echo off

c:
set DISPLAY=127.0.0.1:0.0
set CYGWIN_ROOT=\cygwin
set RUN=%CYGWIN_ROOT%\bin\run -p /usr/X11R6/bin
set PATH=.;%CYGWIN_ROOT%\bin;%CYGWIN_ROOT%\usr\X11R6\bin

set XAPPLRESDIR=
set XCMSDB=
set XKEYSYMDB=
set XNLSPATH=

if not exist %CYGWIN_ROOT%\tmp\.X11-unix\X0 goto CLEANUP-FINISH
attrib -s %CYGWIN_ROOT%\tmp\.X11-unix\X0
del %CYGWIN_ROOT%\tmp\.X11-unix\X0

:CLEANUP-FINISH
if exist %CYGWIN_ROOT%\tmp\.X11-unix rmdir %CYGWIN_ROOT%\tmp\.X11-unix


%RUN% XWin -multiwindow -clipboard -silent-dup-error



-- 
Bob Kline
http://www.rksystems.com
mailto:bkline@rksystems.com


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]