Re: X / gtk-x11 / flicker and other problems [+PATCH]
- Original Message - From: Jon TURNEY jon.tur...@dronecode.org.uk Subject: Re: X / gtk-x11 / flicker and other problems [+PATCH] Bah! Now I've noticed the flickering again, so I have to fix it. Your cunning plan worked. :-) Thanks very much for that, Jon. I'll apply your patch at the weekend (presumably it'll work with x11r6, which I'm still on?) My only qualm is that I'm not very experienced with building Cygwin stuff from source. Mostly, I've tried the configure and make route which has so far been a bit hit-and-miss. Should I be using cygport to do the rebuild and if so, what command(s) should I need? John -- 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: X / gtk-x11 / flicker and other problems [+PATCH]
Oh BTW, I should have added:- One particular problem is that the xserver will only support twin monitors if they both have the same settings (resolution etc). Hmm... I thought this worked. The only restriction should be that the colour-depth of the monitors is the same... Sorry, I stand corrected. I hadn't realised that I only needed to match the colour depths, so for months I've been matching the resolutions too. After a bit of experimenting this morning I now realise that it wasn't necessary. Apologies. John -- 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: Font problem with remote emacs session
Thank you! Everything works and looks great! -- 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: I Cannot Start the X Server
Thanks for the pointer to the FAQ. I am aware of it. Unfortunately I seem to be one of those cases where the procedure of recreating the /tmp directory and running with administrator privileges doesn't work. I read the technical note in the FAQ and thought the results with ProcMon might be helpful because they point in a slightly different direction. On Thu, Feb 12, 2009 at 10:25 PM, Frédéric Bron frederic.b...@m4x.org wrote: I recently upgraded and ran into this problem as well. I watched the XWin.exe process using ProcMon from sysinternals.com and it doesn't look like a problem of directory / file / user permissions as the FAQ would suggest. From ProcMon it looks like /tmp/.tX0-lock is being deleted before it is moved. Specifically, it is being opened with options: Synchronous IO Non-Alert, Non-Directory File, Delete On Close The file is then closed and re-opened and the re-open fails because it no longer exists. Have you looked at this? http://x.cygwin.com/docs/faq/cygwin-x-faq.html#modular F. Bron -- 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: X / gtk-x11 / flicker and other problems [+PATCH]
Jon - I just realised that I don't seem to have the source for X11 (which is presumably what I need before applying your patch). I've looked on my usual Cygwin mirror (ftp://mirrors.xmission.com) as well as looking in Cygwin-Ports (ftp://sourceware.org) but I couldn't see what I needed to download. Should I have found the source code on one of the mirrors? Thanks, John -- 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: X / gtk-x11 / flicker and other problems [+PATCH]
John Emmas wrote: Jon - I just realised that I don't seem to have the source for X11 (which is presumably what I need before applying your patch). I've looked on my usual Cygwin mirror (ftp://mirrors.xmission.com) as well as looking in Cygwin-Ports (ftp://sourceware.org) but I couldn't see what I needed to download. Should I have found the source code on one of the mirrors? Are you downloading the source with 'setup.exe'? If not, run it and select the 'Src?' box. You may be to re-install the package(s) in order to see this box (assuming you already have the current version.) -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 429-6305 - FAX Holliston, MA 01746 -- 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: I Cannot Start the X Server
Todd Sankey wrote: I recently upgraded and ran into this problem as well. I watched the XWin.exe process using ProcMon from sysinternals.com and it doesn't look like a problem of directory / file / user permissions as the FAQ would suggest. I've updated the FAQ entry a bit. From ProcMon it looks like /tmp/.tX0-lock is being deleted before it is moved. Specifically, it is being opened with options: Synchronous IO Non-Alert, Non-Directory File, Delete On Close The file is then closed and re-opened and the re-open fails because it no longer exists. Thanks for the information. As you can see from LockServer() function in http://cgit.freedesktop.org/xorg/xserver/tree/os/utils.c, the sequence of actions should be open(tmp) write() close() link(tmp,lock) unlink(tmp) and the failure seems to be that the link() doesn't succeed. So having the file delete-on-close does explain what is seen. Any insight into why delete-on-close is being requested? -- 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: X / gtk-x11 / flicker and other problems [+PATCH]
Thanks Jon Larry, I can see a package called libX11 : X.OrgX11 core library (source). Will that bring in all the source files I need or is there a bit more to it than that? John -- 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: X / gtk-x11 / flicker and other problems [+PATCH]
John Emmas wrote: I can see a package called libX11 : X.OrgX11 core library (source). Will that bring in all the source files I need or is there a bit more to it than that? The package containing the X server is 'xorg-server'. That is the package for which you need ask setup to install the source for (by ticking the 'Src?' box) It seems the CG [1] neglects to mention this simple fact, I guess I should fix that :-) [1] http://x.cygwin.com/docs/cg/prog-obtaining-source.html -- 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: Bug in startXwin.bat
Larry Hall (Cygwin X) wrote: Linda Walsh wrote: Larry Hall (Cygwin X) wrote: Linda Walsh wrote: Larry Hall (Cygwin X) wrote: Linda Walsh wrote: The startxwin.sh script works, but startxwin.bat does not work if your Cygwin installation isn't in the default location. As Larry and others have pointed out, this is because cmd.exe batch files cannot know where Cygwin is installed. So startxwin.bat hardcodes the default installation location of Cygwin in it (SET CYGWIN_ROOT=\cygwin). Linda and http://sourceware.org/ml/cygwin-xfree/2009-01/msg00173.html http://sourceware.org/ml/cygwin-xfree/2009-02/msg00052.html they all belong to the case where 1. s/he installed Cygwin in a non-default location, 2. read Cygwin/X FAQ 3.3. I can't find startxwin.bat to start the X server, and 3. tried the Start Menu item Cygwin-X/XWin Server. Here are two possible solutions for this case, each with a patch. The first one sets CYGWIN_ROOT to the parent of /bin where this startxwin.bat is installed. It uses cmd.exe batch parameter syntax to get the path value. The documentation for this cryptic parameter syntax can be found in http://technet.microsoft.com/en-us/library/cc755880.aspx http://www.computerhope.com/sethlp.htm REMarks are just remarks and can be deleted if necessary. The second one avoids using startxwin.bat at all. It invokes /usr/bin/run.exe to run /bin/bash to run /usr/bin/startxwin.sh. Possibly, /usr/bin/startx can be used instead of startxwin.sh, but I picked startxwin.sh because it contains the code to delete /tmp/.X11-unix/X0. This solution is better than the first in that no cmd.exe batch file is used, but is worse in that two black cmd.exe windows flash and disappear before XWin starts up. These two are not the ideal solution, but at least they work for the above case. I hope these patches help and get thoughtfully considered. -- neomjp diff -us /usr/bin/startxwin.bat /usr/bin/startxwin.bat.new.bat --- /usr/bin/startxwin.bat 2009-01-19 15:43:42.00100 +0900 +++ /usr/bin/startxwin.bat.new.bat 2009-02-14 05:52:03.84375 +0900 @@ -3,21 +3,24 @@ REM -REM The path in the CYGWIN_ROOT environment variable assignment assume -REM that Cygwin is installed in a directory called 'cygwin' in the root -REM directory of the current drive. You will only need to modify -REM CYGWIN_ROOT if you have installed Cygwin in another directory. For -REM example, if you installed Cygwin in \foo\bar\baz\cygwin, you will need -REM to change \cygwin to \foo\bar\baz\cygwin. -REM -REM This batch file will almost always be run from the same drive (and -REM directory) as the drive that contains Cygwin/X, therefore you will -REM not need to add a drive letter to CYGWIN_ROOT. For example, you do -REM not need to change \cygwin to c:\cygwin if you are running this -REM batch file from the C drive. -REM +REM The following assignment to the CYGWIN_ROOT environment variable +REM assumes that this batch file is installed in /bin . (In +REM default Cygwin installation, this /bin is also mounted as +REM /usr/bin .) CYGWIN_ROOT is first set to the Windows format +REM drive letter (~d) and parent path (p) of this batch file (%0). +REM Then, the last four characters (\bin) are removed. +REM + +SET CYGWIN_ROOT=%~dp0 +SET CYGWIN_ROOT=%CYGWIN_ROOT:~0,-4% + +REM +REM If you move/copy this batch file to another place, you need to +REM set CYGWIN_ROOT explicitly to the Windows format path of the +REM directory where Cygwin is installed, as in an example below. +REM +REM SET CYGWIN_ROOT=C\:cygwin -SET CYGWIN_ROOT=\cygwin SET RUN=%CYGWIN_ROOT%\bin\run -p /usr/bin SET PATH=.;%CYGWIN_ROOT%\bin;%PATH% diff -u /etc/postinstall/xinit.sh /etc/postinstall/xinit.sh.new --- /etc/postinstall/xinit.sh 2009-01-19 15:43:42.00100 +0900 +++ /etc/postinstall/xinit.sh.new 2009-02-14 06:04:24.140625000 +0900 @@ -1,2 +1,2 @@ /usr/bin/mkdir -p $(/usr/bin/cygpath -AP)/Cygwin-X -/usr/bin/mkshortcut -AP -i /usr/bin/XWin.exe -n Cygwin-X/XWin Server -w -a /usr/bin/startxwin.bat /usr/bin/run.exe +/usr/bin/mkshortcut -AP -i /usr/bin/XWin.exe -n Cygwin-X/XWin Server -w /usr/bin -a /bin/bash -l -c /usr/bin/startxwin.sh /usr/bin/run.exe -- Power up the Internet with Yahoo! Toolbar. http://pr.mail.yahoo.co.jp/toolbar/ -- 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/
-query not working on cygwin/windows
I can't get -query to do anything. I only get a grey screen. Do you have disable firewalling, or open some ports, or whatever on the Windows box? I completely disabled my Windows firewall (I think) but still no joy. I'm completely illiterate on Windows. I don't care to know anything about Windows really. I just need cookbook directions to get cygwin/x working. I've also tried Xming. Same result, no response using -query. I have evidence that xdmcp is set up correctly on the linux box. I can open a terminal window (Alt F2) on the linux box and run X :1 -query linux hostname. The gdm login window appears and I can log in. My network connection seems ok between the Windows box and the Linux box. Telnet works fine. Are there any log files that might help troubleshoot the problem? I've done everything I can think of. -- View this message in context: http://www.nabble.com/%22-query%22-not-working-on-cygwin-windows-tp22007087p22007087.html Sent from the cygwin-xfree mailing list archive at Nabble.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/