public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* Xserver corresponds to display :1.0 instead of :0.0
@ 2015-10-16  5:43 paul
  2015-10-16  7:10 ` Markus Hoenicka
  0 siblings, 1 reply; 3+ messages in thread
From: paul @ 2015-10-16  5:43 UTC (permalink / raw)
  To: cygwin-xfree

I have a very simple ~/.startxwinrc:

   xrdb -load $HOME/.Xresources
   xterm -display :0.0 # xterm &
   exec sleep infinity

Recently, I found that the xterm wasn't launching.  I googled, read
some cygwin threads about X authorities, but have to admit, I have a
lot to learn about X windows.  Anyway, since I could open an xterm by
right clicking on the Cygwin/Xserver:1.0 app in the notification area
of Windows 7, I sneakily (OK, it wasn't the craftiest thing in the
world) echo'd $DISPLAY.  Lo, it was 1.0, and the following works fine:

   xterm -display :1.0 &

Yes, I know it says 1.0 in the tip for the Cygwin/Xserver:1.0 app, but
I didn't actually look at that detail until now, as I'm posting.

A google for the following doesn't turn up anything:

   cygwin xterm "-display :0.0" "display :1.0"

I'm wondering if this was a planned change in how X-windows works or
if something is awry with my setup, causing a server with display :0.0
to fail, and making go to :1.0.  I did a browse of the cygin announce
list on gmane (since the X-windows announce list is now obsolete), but
no joy.  And I would have expected anything to show up in my google
search.

Can anyone point me to the description of this change?  If it is not a
deliberate change, what would be a good approach to troubleshoot it?
I have a file ~/.xsession-errors, but it is dated 2015-09-16, and I've
used X-windows plenty since then.


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Xserver corresponds to display :1.0 instead of :0.0
  2015-10-16  5:43 Xserver corresponds to display :1.0 instead of :0.0 paul
@ 2015-10-16  7:10 ` Markus Hoenicka
  2015-10-17  4:40   ` paul
  0 siblings, 1 reply; 3+ messages in thread
From: Markus Hoenicka @ 2015-10-16  7:10 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: paul

At 2015-10-16 07:41, paul was heard to say:
> I have a very simple ~/.startxwinrc:
> 
>    xrdb -load $HOME/.Xresources
>    xterm -display :0.0 # xterm &
>    exec sleep infinity
> 
> Recently, I found that the xterm wasn't launching.  I googled, read
> some cygwin threads about X authorities, but have to admit, I have a
> lot to learn about X windows.  Anyway, since I could open an xterm by
> right clicking on the Cygwin/Xserver:1.0 app in the notification area
> of Windows 7, I sneakily (OK, it wasn't the craftiest thing in the
> world) echo'd $DISPLAY.  Lo, it was 1.0, and the following works fine:
> 
>    xterm -display :1.0 &
> 
> Yes, I know it says 1.0 in the tip for the Cygwin/Xserver:1.0 app, but
> I didn't actually look at that detail until now, as I'm posting.
> 
> A google for the following doesn't turn up anything:
> 
>    cygwin xterm "-display :0.0" "display :1.0"
> 
> I'm wondering if this was a planned change in how X-windows works or
> if something is awry with my setup, causing a server with display :0.0
> to fail, and making go to :1.0.  I did a browse of the cygin announce
> list on gmane (since the X-windows announce list is now obsolete), but
> no joy.  And I would have expected anything to show up in my google
> search.
> 
> Can anyone point me to the description of this change?  If it is not a
> deliberate change, what would be a good approach to troubleshoot it?
> I have a file ~/.xsession-errors, but it is dated 2015-09-16, and I've
> used X-windows plenty since then.
> 

Hi,

you may have a leftover lock file from a crashed X session. Check if 
there is a /tmp/.X0-lock (IIRC) before you start your X server.

regards,
Markus

-- 
Markus Hoenicka
http://www.mhoenicka.de
AQ score 38


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Xserver corresponds to display :1.0 instead of :0.0
  2015-10-16  7:10 ` Markus Hoenicka
@ 2015-10-17  4:40   ` paul
  0 siblings, 0 replies; 3+ messages in thread
From: paul @ 2015-10-17  4:40 UTC (permalink / raw)
  To: cygwin-xfree

Markus Hoenicka <markus.hoenicka <at> mhoenicka.de> writes:
> you may have a leftover lock file from a crashed X session. Check if
> there is a /tmp/.X0-lock (IIRC) before you start your X server.

Thank you, Markus.  That was *exactly* the problem, and removing the
lock file solved it.


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-17  4:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-16  5:43 Xserver corresponds to display :1.0 instead of :0.0 paul
2015-10-16  7:10 ` Markus Hoenicka
2015-10-17  4:40   ` paul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).