Re: Problems with cygwin in Windows 10

2015-07-20 Thread Michael DePaulo
Hi,

On Tue, Jul 21, 2015 at 12:52 AM, Robert McBroom  wrote:
> Having problems  with the X interface in Windows 10 (currently build 10240).
> /bin/startxwin fails with the symptoms in the attached file xwin.txt.  The
> output from cygcheck -cv is also attached.  What am I missing?

I have been using Cygwin/X on Windows 10 64-bit without issue, across
numerous builds (currently 10240 also.)

The 2nd time you ran startxwin, It looks like Cygwin thinks you lack
3D acceleration. Try this command:
$ startxwin -- -extension GLX -multiwindow

Also, the "UnknownGroup" might be an issue that prevented you from
writing the lock file to /tmp/. Someone else would know better than me
though.

-Mike

--
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: Following update to XWin or xorg-server: changed syntax to get a xterm terminal window

2015-06-10 Thread Michael DePaulo
On Wed, Jun 10, 2015 at 7:28 AM, Fergus Daly
 wrote:
> For ages I used
> XWin -nolock -nolisten local -multiwindow &
> xterm -display localhost:0.0
> to get a xterm terminal.
> Following recent updates I get a fatal error: "Cannot establish any listening 
> sockets."
> In the past, updates to XWin have sometimes led to similar difficulties, but 
> I have always managed to iterate to a new successful joint syntax
> XWin 
> xterm 
> but this time I am totally stymied.
> Can anybody offer me a working syntax please?
> Thank you.
> Fergus

By default, XWin 1.17 no longer listens on TCP sockets, only on unix
domain sockets.
https://www.cygwin.com/ml/cygwin-announce/2015-06/msg3.html

However, "-nolisten local" disables unix domain sockets.,

So to use unix domain sockets:
XWin -nolock -multiwindow &
xterm -display :0.0

Or to keep using TCP sockets:
XWin -nolock -nolisten local -listen tcp -multiwindow &
xterm -display localhost:0.0

-Mike

--
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: Display issue

2015-03-04 Thread Michael DePaulo
(I know that cygwin-xfree is deprecated. But I believe I should
continue this existing conversation on it.)

On Sun, Mar 1, 2015 at 1:46 PM, Maarten Hoes  wrote:
> Hi,
>
>
> On 1-3-2015 19:15, Michael DePaulo wrote:
>>
>>
>> I just tried to reproduce this, but I was unable to.
>> The icons looked correct even before I selected help -> about:
>> http://i.imgur.com/Tp50WK8.png
>>
> I can reproduce it 100% of the time.
>
>
>>
>> I am using XWin 1.17.1-2 32-bit in multiwindow mode on Windows 10
>> 64-bit. I launched XWin via "startxwin" and then ran "ssh -Y
>> " from the xterm. I then ran "libreoffice".
>>
> I am running a single window XDCMP session with a KDM display manager (xwin
> -query x.x.x.x or Xlaunch). There is no ssh usage. I am running Windows 8.1
> 64 bit. I open a terminal window and run ./soffice.

I recreated your setup on my Fedora 21 64-bit test VM, but I was
unable to reproduce it:

1. Install package group: KDE
2. Install package kdm (not sure if it was part of the package group or not)
3. Enable XDMCP in KDM (this involved rebooting)
4. X :1 -query 
5. Login to KDM
6. Open up Konsole
7. Install package libreoffice
8. soffice
(did not reproduce the bug)
9. Install the libreoffice-kde package
10. soffice
(did not reproduce the bug)

>> Server is Fedora 21 64-bit.
>>
> Same here.
>
>
>>
>>
>> There was no command-line output from LibreOffice.
>>
> My guess is that my building with --enable-dbg-util etc. has something to do
> with that.

That's possible.

Did you build from upstream source or from the Fedora SRPM? The Fedora
SRPM has a TON of patches:
http://pkgs.fedoraproject.org/cgit/libreoffice.git/tree/?h=f21

-Mike

--
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: Display issue

2015-03-01 Thread Michael DePaulo
On Tue, Feb 24, 2015 at 6:06 PM, Maarten Hoes  wrote:
> Hi,
>
>
> Im experiencing an issue where the graphics arent displayed correctly. When
> I start LibreOffice on my Fedora 21 Linux system from a cygwin/x system, the
> left hand side (open file, template, writer document, etc.) isnt displayed
> properly initially. After clicking around some, the display updates and gets
> displayed right.
>
> Here's a screenshot of the badly displayed graphics:
> http://imgur.com/bTD4yQ3
>
> And this is what it looks like (correctly) after some clicking around:
> http://imgur.com/adj5mKD
>
> I have no idea on how to start troubleshooting the issue; all thoughts and
> ideas are more than welcome.

I just tried to reproduce this, but I was unable to.
The icons looked correct even before I selected help -> about:
http://i.imgur.com/Tp50WK8.png

I am using XWin 1.17.1-2 32-bit in multiwindow mode on Windows 10
64-bit. I launched XWin via "startxwin" and then ran "ssh -Y
" from the xterm. I then ran "libreoffice".

Server is Fedora 21 64-bit.

There was no command-line output from LibreOffice.

-Mike

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



Help porting the XLaunch feature to autoselect the display number

2015-02-23 Thread Michael DePaulo
Hi,

i was talking with Jon Turney about this on IRC.

I am trying to port this feature of VcXsrv (and XMing also I think) to
Cygwin XLaunch:
https://sourceforge.net/p/vcxsrv/code/ci/460182676a960385dff96c1563f781213060f6fc/

Attached is my WIP patch. (I know it needs the comments updated for main.cc).

There's a bug in main.cc that is causing this to happen when -1 is specified:
http://imgur.com/Jv4tpip

I am not very familiar with C or C++. I am hoping that someone could
give me some advice. (I am much better at Java and bash.)

Thanks,
-Mike


0001-Now-the-display-number-can-be-set-to-automatic-by-sp.patch
Description: Binary data
--
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: Cygwin/X XDMCP Issue

2015-02-23 Thread Michael DePaulo
On Sun, Feb 22, 2015 at 4:38 PM, Maarten Hoes  wrote:
>
>
> On 22-2-2015 22:09, Maarten Hoes wrote:
>>
>>
>> 28   1.690209 192.168.0.21 -> 192.168.178.20 TCP 74 60221รข+'6000 [SYN]
>> Seq=0 Win=29200 Len=0 MSS=1460 SACK_PERM=1 TSval=6862378 TSecr=0 WS=128
>
> Wait, what ? send to 192.168.178.20 instead of 192.168.0.20 ? i changed the
> ip address range of my home network. thats whats wrong, now i guess i need
> to figure out where i forgot to update that ip range / address.
>
> Oh, well.

I can think of 2 possible issues/solutions:

With XDMCP under VcXsrv or Cygwin XWin, you often need to use this
argument to, usually when you have multiple (virtual) network
adapters:
-from 192.168.0.20

XDMCP involves a forward-confirmed reverse DNS lookup. So if you have
incorrect DNS records like the following:
PTR: 192.168.0.20 -> windows-pc
A:   windows-pc -> 192.168.178.20
Then this problem will happen.

-Mike

--
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: Updated: xorg-server-1.17.1-1 (TEST)

2015-02-16 Thread Michael DePaulo
On Mon, Feb 16, 2015 at 10:21 AM, Jon TURNEY
 wrote:
> On 15/02/2015 14:49, Michael DePaulo wrote:
>>
>> Unfortunately, I have experienced 2 regressions vs 1.16.3-1.
>> (In the results below, I am assuming 1 and 2 are the same
>> regression/issue, while 3 is separate.)
>
>
> Thanks for testing and reporting the problem.
>
> With the excellent detail in your email I was able to build a Centos 7 VM
> which reproduces the problem, which was due to the RANDR changes in 1.17.1-1
> not being quite correct.
>
> I've had a go at fixing this and uploaded a snapshot [1].  Perhaps you could
> try that and see if it improves things for you?
>
> [1]
> ftp://cygwin.com/pub/cygwinx/x86/XWin.20150216-git-2323ff7b08e56b79.exe.bz2

That fixes both issues. Thanks!

--
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: [ANNOUNCEMENT] Updated: xorg-server-1.16.0-1 (TEST)

2014-08-20 Thread Michael DePaulo
On Wed, Aug 20, 2014 at 7:18 AM, Jon TURNEY  wrote:
> On 18/08/2014 14:43, Michael DePaulo wrote:
>
>> On Sat, Aug 16, 2014 at 10:41 AM, Jon TURNEY wrote:
>>>
>>>
>>> The following packages have been updated in the Cygwin distribution:
>>>
>>> *** xorg-server-*1.16.0-1
>
>
>> I think I found a bug:
>>
>> There is no stdout or stderr.
>>
>> So for example, "xwin --version" does not output anything.
>>
>> Nothing is logged to /var/log/xwin/Xorg.0.log when I type that
>> command. This is the same as with xorg-server 1.15.
>>
>> If I specify an invalid argument (e.g. "xwin --foobar"). then I see
>> the information dialog box, and the xwin usage info is outputted to
>> that log file.
>>
>> I did all my testing with 32-bit Cygwin.
>
>
> Thanks for reporting this.
>
> Are you using the same terminal in both cases? (For obscure reasons, XWin
> --version doesn't work in a cmd.exe terminal, see [1])
>
> You also seem to be using a separate cygwin installation to test xorg-server
> 1.16, which might also be related to this in some way.
>
> [1] https://sourceware.org/bugzilla/show_bug.cgi?id=9763
>
> --
> Jon TURNEY
> Volunteer Cygwin/X X Server maintainer

Hi Jon,

Your suspician was correct. I was launching my main cygwin
installation with the start menu shortcut (`C:\cygwin\bin\mintty.exe
-i /Cygwin-Terminal.ico -`), but I was launching the X.org 1.16 cygwin
installation by double-clicking C:\cygwin-xorg16\cygwin.bat. Thus I
was running my X.org 1.16 cygwin installation with cmd.exe.

When I launched my X.org 1.16 Cygwin installation by running
`C:\cygwin-xorg16\bin\mintty.exe -i /Cygwin-Terminal.ico -`, this
issue was resolved.

Thanks,
-Mike

--
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 do fonts work when you have no font packages installed?

2014-07-06 Thread Michael DePaulo
On Sun, Jul 6, 2014 at 11:08 AM, Jon TURNEY  wrote:
> On 04/07/2014 08:16, Michael DePaulo wrote:
>>
>> I just installed cygwin64 with only the base packages, "xorg-server",
>> and its dependencies installed.
>>
>> The FAQ (2014-04-29) states:
>> 3.5. My favourite font has gone! The font Emacs uses is just boxes
>> Only minimal fonts will be installed after the upgrade.
>>
>> However, on my system, /usr/share/fonts/ is empty.
>
>
> The X server has a version of 6x13 fixed font built-in, to allow it and
> (some) apps which use core fonts, to operate in this situation.
>
> If some local X clients were installed, this would (hopefully) cause any X
> core fonts they require to be installed.
>
>
>> Yet I am able to XDMCP into a GNOME2 CentOS 6.5 machine and all the
>> fonts show up fine with the handful of apps I tested.
>>
>> Can someone explain how text is being rendered? Is Cygwin Xwin using
>> fonts from the Windows OS?
>
>
> While this is technically possible by adding the Windows font directory to
> the X server font path, that is not done.
>
> (Although those fonts are made available to local clients by telling
> fontconfig to look in the Windows font directory, although this is not
> technically perfect as there isn't any mechanism to tell fontconfig to
> update it's cache when Windows fonts are added or removed)
>
>
>> Are the fonts being rendered client-side via XRender?
>
> Yes, if the apps you tested are modern, client-side fonts are almost
> certainly being used.  [1] explains this fairly well:
>
> "The first X11 clients used the core X11 protocol to draw text, as that was
> the only choice. [...] Because GTK+ and Qt, the toolkits behind several
> applications including all GNOME and KDE applications, switched to Xft, many
> programs on most desktops [...] now use Xft."

Thank you very much, this is a very good answer. I was not aware of Xft.

> Core fonts are a legacy feature.
>
> If you want to use an older remote application which requires a particular
> core font, you will have to install it.

Yes, I've observed this too. At work we run an old (but actively
maintained) commercial Linux application written in Motif, and it
requires core fonts to be installed on the Windows machines running
Cygwin X11 or VcXsrv.

>
> [1] http://en.wikibooks.org/wiki/Guide_to_X11/Fonts
>
> --
> Jon TURNEY
> Volunteer Cygwin/X X Server maintainer

Thanks again,
-Mike DePaulo

--
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 do fonts work when you have no font packages installed?

2014-07-04 Thread Michael DePaulo
I tried to send this email previously, but I think it did not go
through because I was not subscribed to the list yet.


Hi,

I just installed cygwin64 with only the base packages, "xorg-server",
and its dependencies installed.

The FAQ (2014-04-29) states:
3.5. My favourite font has gone! The font Emacs uses is just boxes
Only minimal fonts will be installed after the upgrade.

However, on my system, /usr/share/fonts/ is empty.

Yet I am able to XDMCP into a GNOME2 CentOS 6.5 machine and all the
fonts show up fine with the handful of apps I tested.

Can someone explain how text is being rendered? Is Cygwin Xwin using
fonts from the Windows OS? Are the fonts being rendered client-side via XRender?

Thanks in advance,
-Mike

mike@executor /usr
$ uname -a
CYGWIN_NT-6.3 executor 1.7.30(0.272/5/3) 2014-05-23 10:36 x86_64 Cygwin

mike@executor /usr
$ find . | grep fonts
./share/doc/groff-1.22.2/examples/hdtbl/fonts_n.ps
./share/doc/groff-1.22.2/examples/hdtbl/fonts_n.roff
./share/doc/groff-1.22.2/examples/hdtbl/fonts_x.ps
./share/doc/groff-1.22.2/examples/hdtbl/fonts_x.roff

mike@executor /usr
$ cd share

mike@executor /usr/share
$ ls
awk  file   icons  locale  man   p11-kitpki terminfo  texmf  zoneinfo
doc  groff  info   magic   misc  pkgconfig  tabset  texinfo   X11

mike@executor /usr/share
$ X -query galactica

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