XWin gives black screen

2010-02-09 Thread Hom Nath Gharti
Dear all,

When I start XWin I get completely black screen. Everything works fine
but the problem is -- when I minimize any applications it disappears
due to the black screen, and I cannot retrieve that application.

I tried some options, e.g., setting serverargs=-nolisten inet6, but
that didn't work.

I also attach my XWin.0.log: I would be grateful if somebody give me some hints.



Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.7.3.0 (10703000)
Build Date: 2009-12-22

Contact: cygwin-xfree@cygwin.com
XWin was started with the following command line:

xwin -scrollbars

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1920 h 1200
winInitializeDefaultScreens - Returning
2010-02-09 08:49:33 _XSERVTransSocketOpenCOTSServer: Unable to open
socket for inet6
2010-02-09 08:49:33 _XSERVTransOpen: transport open failed for
inet6/win-homnath:0
2010-02-09 08:49:33 _XSERVTransMakeAllCOTSServerListeners: failed to
open listener for inet6
2010-02-09 08:49:33 winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
2010-02-09 08:49:33 (II) xorg.conf is not supported
2010-02-09 08:49:33 (II) See
http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
2010-02-09 08:49:33 winPrefsLoadPreferences: /etc/X11/system.XWinrc
2010-02-09 08:49:33 LoadPreferences: Done parsing the configuration file...
2010-02-09 08:49:33 winGetDisplay: DISPLAY=:0.0
2010-02-09 08:49:33 winDetectSupportedEngines - Windows NT/2000/XP
2010-02-09 08:49:33 winDetectSupportedEngines - DirectDraw installed
2010-02-09 08:49:33 winDetectSupportedEngines - DirectDraw4 installed
2010-02-09 08:49:33 winDetectSupportedEngines - Returning, supported
engines 0007
2010-02-09 08:49:33 winSetEngine - Using Shadow DirectDraw NonLocking
2010-02-09 08:49:33 winAdjustVideoModeShadowDDNL - Using Windows
display depth of 32 bits per pixel
2010-02-09 08:49:33 winWindowProc - WM_SIZE - window w: 1920 h: 1166,
new client area w: 1912 h: 1135
2010-02-09 08:49:33 winFinishScreenInitFB - Masks: 00ff ff00 00ff
2010-02-09 08:49:34 Screen 0 added at XINERAMA coordinate (0,0).
2010-02-09 08:49:34 (II) AIGLX: Loaded and initialized
/usr/lib/dri/swrast_dri.so
2010-02-09 08:49:34 (II) GLX: Initialized DRISWRAST GL provider for screen 0
2010-02-09 08:49:36 winPointerWarpCursor - Discarding first warp: 956 567
2010-02-09 08:49:36 (--) 5 mouse buttons found
2010-02-09 08:49:36 (--) Setting autorepeat to delay=500, rate=31
2010-02-09 08:49:36 (--) winConfigKeyboard - Layout: 0414 (0414)
2010-02-09 08:49:36 (--) Using preset keyboard for Norwegian (414), type 4
2010-02-09 08:49:36 Rules = base Model = pc105 Layout = no
Variant = none Options = none
2010-02-09 08:49:37 winProcEstablishConnection - Hello
2010-02-09 08:49:37 winInitClipboard ()
2010-02-09 08:49:37 winProcEstablishConnection - winInitClipboard returned.
2010-02-09 08:49:37 winClipboardProc - Hello
2010-02-09 08:49:37 DetectUnicodeSupport - Windows NT/2000/XP
2010-02-09 08:49:37 winGetDisplay: DISPLAY=:0.0
2010-02-09 08:49:37 winClipboardProc - DISPLAY=:0.0
2010-02-09 08:49:37 winClipboardProc - XOpenDisplay () returned and
successfully opened the display.
2010-02-09 08:51:08 winWindowProc - WM_SIZE - window w: 1920 h: 1166,
new client area w: 1912 h: 1135
2010-02-09 08:51:10 winWindowProc - WM_SIZE - window w: 1920 h: 1166,
new client area w: 1912 h: 1135
2010-02-09 09:13:21 winWindowProc - WM_SIZE - window w: 1920 h: 1166,
new client area w: 1912 h: 1135
2010-02-09 09:17:09 winWindowProc - WM_SIZE - window w: 1920 h: 1166,
new client area w: 1912 h: 1135

Thanks,
Hom nath

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



Re: libglib2, Emacs and GTK applications

2010-02-09 Thread Angelo Graziosi

Yaakov (Cygwin/X) wrote:

You may want to try these patches and see if they help:


My build of Emacs was related to current trunk (precisely, rev. 99467), 
so, almost surely, those patches are already applied (indeed, I find 
tracks of them in the current code).


The problems seem to be consequence of the fact that 'gamin-server.exe' 
is not removed after application finishes, but only after 20-30 seconds 
and I see this behavior also with the test case reported.


However, thanks a lot for your clarifications and for having followed this.

Ciao,
Angelo.

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



Re: XWin gives black screen

2010-02-09 Thread Yaakov (Cygwin/X)

On 09/02/2010 02:36, Hom Nath Gharti wrote:

When I start XWin I get completely black screen. Everything works fine
but the problem is -- when I minimize any applications it disappears
due to the black screen, and I cannot retrieve that application.


http://cygwin.com/ml/cygwin-xfree-announce/2009-06/msg3.html


Yaakov
Cygwin/X

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



Re: XWin gives black screen

2010-02-09 Thread Hom Nath Gharti
That's perfect. Thank you.

On Tue, Feb 9, 2010 at 10:26 AM, Yaakov (Cygwin/X)
yselkow...@users.sourceforge.net wrote:
 On 09/02/2010 02:36, Hom Nath Gharti wrote:

 When I start XWin I get completely black screen. Everything works fine
 but the problem is -- when I minimize any applications it disappears
 due to the black screen, and I cannot retrieve that application.

 http://cygwin.com/ml/cygwin-xfree-announce/2009-06/msg3.html


 Yaakov
 Cygwin/X

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



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



Re: libglib2, Emacs and GTK applications

2010-02-09 Thread Yaakov (Cygwin/X)

On 09/02/2010 03:05, Angelo Graziosi wrote:

The problems seem to be consequence of the fact that 'gamin-server.exe'
is not removed after application finishes, but only after 20-30 seconds
and I see this behavior also with the test case reported.


I run GTK+/GNOME apps all the time, and I have yet to see this, so 
AFAICS it's not a bug in gamin or GLib/GTK+.  The only other things I 
can suggest are:


1) rebaseall, as launching gam_server involves a fork(), the failure of 
which can lead to strange behaviour.


2) create a ~/.gaminrc with the following contents:

fsset ntfs poll 10

The last number is the poll interval, in seconds.  The default is every 
second, and that can sometimes lead to excessive CPU usage.  Usually 
that's only a problem with KDE, where several large parts of /usr/share 
are monitored, but it's worth trying.



Yaakov
Cygwin/X

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



Re: libglib2, Emacs and GTK applications

2010-02-09 Thread Angelo Graziosi

Yaakov (Cygwin/X) wrote:

1) rebaseall, as launching gam_server involves a fork(), the failure of which 
can lead to strange behaviour.


Hmm...
At the moment my installation is quite stable and I won't rebase without 
being sure that it really needs a rebase. After all, with Emacs I rarely 
use dialog box: C-x C-f, etc., are faster to work with...


I have to think a little more before rebasing... :-)


2) create a ~/.gaminrc with the following contents:

fsset ntfs poll 10


It does not works, sigh! :(

In any case, thanks for all your suggestions.

Ciao,
Angelo.

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



Changing interactive shell from Bash to Zsh

2010-02-09 Thread Anonymous bin ich
Hi!

I am having trouble changing my shell from Bash to Zsh.

Since there is no chsh, I have tried adding exec zsh -l to .bashrc

Unfortunately, since cygwin is started as interactive login shell,
it doesn't read .bashrc and so it starts as bash

If I source .bashrc from .bash_profile (which I don't like), then it works.

But then I cannot start X server from the start menu shortcut because
bash reads .bashrc, executes zsh and exits; even though startxwin.exe
is called by bash -l.

So, is there a way to change shell?

-- 
Regards,

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



Re: Changing interactive shell from Bash to Zsh

2010-02-09 Thread Wood . Chris
Add 

exec zsh -l 

at the end of your .bash_profile 


Chris 



From:   Anonymous bin ich ichbina...@gmail.com
To: cygwin-xfree@cygwin.com
Date:   02/09/2010 09:13 AM
Subject:Changing interactive shell from Bash to Zsh
Sent by:cygwin-xfree-ow...@cygwin.com



Hi!

I am having trouble changing my shell from Bash to Zsh.

Since there is no chsh, I have tried adding exec zsh -l to .bashrc

Unfortunately, since cygwin is started as interactive login shell,
it doesn't read .bashrc and so it starts as bash

If I source .bashrc from .bash_profile (which I don't like), then it 
works.

But then I cannot start X server from the start menu shortcut because
bash reads .bashrc, executes zsh and exits; even though startxwin.exe
is called by bash -l.

So, is there a way to change shell?

-- 
Regards,





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



Re: Changing interactive shell from Bash to Zsh

2010-02-09 Thread Anonymous bin ich
On Tue, Feb 9, 2010 at 3:20 PM,  wood.ch...@tatravelcenters.com  wrote:
 Add

 exec zsh -l

 at the end of your .bash_profile

Then I cannot start X server from start menu icons. All I see in
taskmanager is 1 process of bash and 1 subprocess of zsh.


 Chris



 From:   Anonymous bin ich ichbina...@gmail.com
 To:     cygwin-xfree@cygwin.com
 Date:   02/09/2010 09:13 AM
 Subject:        Changing interactive shell from Bash to Zsh
 Sent by:        cygwin-xfree-ow...@cygwin.com



 Hi!

 I am having trouble changing my shell from Bash to Zsh.

 Since there is no chsh, I have tried adding exec zsh -l to .bashrc

 Unfortunately, since cygwin is started as interactive login shell,
 it doesn't read .bashrc and so it starts as bash

 If I source .bashrc from .bash_profile (which I don't like), then it
 works.

 But then I cannot start X server from the start menu shortcut because
 bash reads .bashrc, executes zsh and exits; even though startxwin.exe
 is called by bash -l.

 So, is there a way to change shell?

 --
 Regards,








-- 
Regards,

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



Re: Changing interactive shell from Bash to Zsh

2010-02-09 Thread Wood . Chris
When I tried it on my system, it worked. Of course, it is not really using 
zsh as your login shell, since it is running inside bash, but when you 
exit zsh, it logs you off, which is the expected behavior.

What shortcut are you using? An example of mine is

C:\cygwin\bin\run.exe -p /usr/X11R6/bin xterm -display 127.0.0.1:0.0 -ls 
-sb 1000 -fg green -bg black


Chris



From:   Anonymous bin ich ichbina...@gmail.com
To: wood.ch...@tatravelcenters.com
Cc: cygwin-xfree@cygwin.com
Date:   02/09/2010 09:41 AM
Subject:Re: Changing interactive shell from Bash to Zsh



On Tue, Feb 9, 2010 at 3:20 PM,  wood.ch...@tatravelcenters.com  wrote:
 Add

 exec zsh -l

 at the end of your .bash_profile

Then I cannot start X server from start menu icons. All I see in
taskmanager is 1 process of bash and 1 subprocess of zsh.


 Chris



 From:   Anonymous bin ich ichbina...@gmail.com
 To: cygwin-xfree@cygwin.com
 Date:   02/09/2010 09:13 AM
 Subject:Changing interactive shell from Bash to Zsh
 Sent by:cygwin-xfree-ow...@cygwin.com



 Hi!

 I am having trouble changing my shell from Bash to Zsh.

 Since there is no chsh, I have tried adding exec zsh -l to .bashrc

 Unfortunately, since cygwin is started as interactive login shell,
 it doesn't read .bashrc and so it starts as bash

 If I source .bashrc from .bash_profile (which I don't like), then it
 works.

 But then I cannot start X server from the start menu shortcut because
 bash reads .bashrc, executes zsh and exits; even though startxwin.exe
 is called by bash -l.

 So, is there a way to change shell?

 --
 Regards,








-- 
Regards,



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



Re: Changing interactive shell from Bash to Zsh

2010-02-09 Thread Phil Betts
Anonymous bin ich writes:

 
 Hi!
 
 I am having trouble changing my shell from Bash to Zsh.
 
 Since there is no chsh, I have tried adding exec zsh -l to .bashrc
 
 Unfortunately, since cygwin is started as interactive login shell,
 it doesn't read .bashrc and so it starts as bash
 
 If I source .bashrc from .bash_profile (which I don't like), then it works.
 
 But then I cannot start X server from the start menu shortcut because
 bash reads .bashrc, executes zsh and exits; even though startxwin.exe
 is called by bash -l.
 
 So, is there a way to change shell?
 

All chsh does is edit the last field in /etc/passwd.  You can do this
yourself in any text editor (assuming you've got write access).  Just change
/bin/bash to /bin/zsh and you should be OK.

Don't even think about hacking .bashrc, .bash_profile or .profile.  If you
do, then anything that tries to run bash will end up running zsh, and will
probably fail. (This would include all post-install scripts run by setup.exe,
so you'd probably end up with a hosed system)

BTW, this is the wrong list for this topic; it has nothing to do with X.

Phil



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



Graphics not appearing in Gaussview 3

2010-02-09 Thread Jon Rhoad
I have been using the 1.5 version of cygwin/X installed in Windows XP to 
connect to a SLES9 server running Gaussview with little problem.  When I 
upgrade to 1.7 everything works fine except the graphics do not show in the 
Gaussview windows.  The only e-mail from the archive I found related to 
Gaussview is:
___
Dear Sir / Madam,

I need to use GView (a software for molecules visualization
constructed by Gaussian). An error occurs when I use the GView through
cygwin/X. This error is that the GView appears in my desktop. However,
when I try to display a molecule, no molecule is observed in the window
of GView.

The Gaussian's reply is :

{{{ I see the following line in the setup,

 xorg-x11-xwin-gl (761 KiB; optional, the Cygwin/X X Server with
 ***EXPERIMENTAL*** GLX acceleration)

and the fact that GaussView starts but does not show molecules, which
require GLX while the splash screen and the basic dialog windows to
not, can be the problem. Can you turn off the experimental GLX
acceleration? }}}

How can I do it?

Regards,

Patrick Pang
___
There was no reply to this e-mail that I could find.  I am not a programmer, 
just an end user, so please put any reply in layman's terms.  Thank you.

Dr. Jonathan Rhoad
Modular 7 #43
Department of Chemistry
College of Liberal Arts and Sciences
Missouri Western State University
816-271-4389



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



Re: Can't start X after upgrading to cygwin1.7

2010-02-09 Thread Jon TURNEY

On 03/02/2010 19:43, Jon TURNEY wrote:

I had the same symptoms. Non-administrator WinXP users couldn't start
the XWin Server, and no /var/log/XWin.0.log was created. The log file
could get created if there wasn't one already present, which led me to
put the log file in the user's directory instead of /var/log. The
other problem was that users couldn't create the /tmp/.X0-lock file
and /tmp/.X11-unix/X0 socket if they were left by another user. The
solution was to give each user their own /tmp directory.

I fixed it with the following:
1. Added a line in /etc/profile, just before the chmod 1777 /tmp line:
mount -f $USERPROFILE/Local Settings/Temp /tmp

2. Changed the XWin Server icon so instead of just startxwin.exe, it
says:
... startxwin.exe -- -logfile ~/XWin.log
(Don't take out the beginning of the command that runs startxwin
through bash, or the /etc/profile won't get run. The quotes are
needed because this is the argument to bash's -c option.)

Could any of the guru's comment on how good or bad these solutions are?


Thanks. It's long been suspected that there is some problem with
lockfiles running XWin as a non-administrator user (See FAQ 3.4,[1]),
but I've never had a sufficient clear description to understand what the
problem is, until now.


Okay, thanks to having some useful reproduction steps I've done a bit of 
testing and generated some patches (at [1]) which should hopefully address 
some of these issues.


The thing I don't understand at this stage is that the /tmp/.X0-lock file and 
/tmp/.X11-unix/X0 socket should be removed when the X server shuts down, so 
shouldn't be causing problems.  Is there some specific way the server is being 
exited which doesn't remove these files?


[1] http://sourceware.org/bugzilla/show_bug.cgi?id=9778

--
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

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



How to remotly launch application with SSH and Cygwin/X server

2010-02-09 Thread Fabien Tillay
Hi,

I've got a problem with Cygwin/X server (via Cygwin 1.7.1)
Assuming we have a PC on Linux called X and a PC on Windows called Y.
I want to send a SSH command from X to Y which launchs firefox on Y.
(ie Windows)

Firstly, if I go to Y (Windows) and launch a Cygwin shell and then
enter the 'firefox' command (firefox is in the PATH environment
variable of course), the Firefox is launched correctly and I can
navigate to whatever I want.
If I send a SSH command from X (Linux) to Y (Windows) with the firefox
command : ssh usern...@y_ip_address firefox, I've got a firefox.exe
process in the task manager of Y but Firefox is in the background (ie
there is no Firefox window).

I have set the DISPLAY environment variable to :0.0.
Do you know why it is launched in background ?
Is there a mean of displaying Firefox launched from the Linux box on Windows ?

Thanks
Silver

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



Re: How to remotly launch application with SSH and Cygwin/X server

2010-02-09 Thread Larry Hall (Cygwin X)

On 02/09/2010 06:31 PM, Fabien Tillay wrote:

Hi,

I've got a problem with Cygwin/X server (via Cygwin 1.7.1)
Assuming we have a PC on Linux called X and a PC on Windows called Y.
I want to send a SSH command from X to Y which launchs firefox on Y.
(ie Windows)

Firstly, if I go to Y (Windows) and launch a Cygwin shell and then
enter the 'firefox' command (firefox is in the PATH environment
variable of course), the Firefox is launched correctly and I can
navigate to whatever I want.
If I send a SSH command from X (Linux) to Y (Windows) with the firefox
command : ssh usern...@y_ip_address firefox, I've got a firefox.exe
process in the task manager of Y but Firefox is in the background (ie
there is no Firefox window).

I have set the DISPLAY environment variable to :0.0.


No matter.  Firefox on Windows knows nothing of X Windows anyway.  No
surprise, right?


Do you know why it is launched in background ?
Is there a mean of displaying Firefox launched from the Linux box on Windows ?


Generally, no.  Depending on the version of Windows and Cygwin you're running,
you can go to the Control Panel-Administrative Tools-Services-Cygwin SSHD-
Log On and enable Allow service to interact with desktop if you're already
running the service with Local System.  Pretty much for any other case, you
can't do on Windows what you want to do.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

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