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: "Can't read lock file" problem: Cygwin/X FAQ solution doesn't work for me


Rich Signell wrote:
Cygwin gurus,

After happily using cygwin-X for many years, I have just encountered
my first true frustration.

After updating my cygwin distribution earlier this week, I found that
I can no longer start X windows, getting the same "can't read lock
file" that other users have experienced.

I tried the solution from the Cygwin FAQ
(http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-cant-read-lock-file):

$ rm -rf /tmp; mkdir /tmp ; chmod 1777 /tmp; xinit -nolock

but this did not help. Same problem.

xinit -nolock is not the right syntax for starting the server with -nolock. As 'man xinit' says, server options follow a '--', so try 'xinit -- -nolock'


I did wonder if this is somehow related to running as a user who does not have administrator rights. Is this true in your case?

Can you provide the output of 'strace Xwin' , please.

Here is some more info that hopefully would help, and I'd be happy to
work with someone more knowledgeable to try to diagnose and fix the
issue:

$ more /var/log/Xwin.0.log

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.5.3.0 (10503000)

Contact: cygwin-xfree@cygwin.com

XWin was started with the following command line:

X :0

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1440 h 900
winInitializeDefaultScreens - Returning

Fatal server error:
Can't read lock file /tmp/.X0-lock

$ ls -sail /tmp
total 0
 1688849860281053 0 drwxrwxrwt+  3 rsignell Domain Users 0 Dec  4 07:07 .
  281474976792025 0 drwxrwx---+ 13 rsignell Users        0 Dec  4 06:26 ..
37717646879254565 0 drwxrwxrwt+  2 rsignell Domain Users 0 Dec  4 07:07 .X11-unix


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