From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17480 invoked by alias); 13 Feb 2013 15:05:50 -0000 Received: (qmail 17467 invoked by uid 22791); 13 Feb 2013 15:05:49 -0000 X-SWARE-Spam-Status: No, hits=-3.3 required=5.0 tests=BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,TW_CF X-Spam-Check-By: sourceware.org Received: from nm3-vm0.bt.bullet.mail.ird.yahoo.com (HELO nm3-vm0.bt.bullet.mail.ird.yahoo.com) (212.82.108.88) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 13 Feb 2013 15:05:40 +0000 Received: from [212.82.108.230] by nm3.bt.bullet.mail.ird.yahoo.com with NNFMP; 13 Feb 2013 15:05:38 -0000 Received: from [217.146.183.121] by tm3.bt.bullet.mail.ird.yahoo.com with NNFMP; 13 Feb 2013 15:05:37 -0000 Received: from [127.0.0.1] by smtp826.mail.ukl.yahoo.com with NNFMP; 13 Feb 2013 15:05:37 -0000 X-Yahoo-SMTP: u.JgLvyswBBMp9ZJJfsX14qmYb3T2ivhMAr6OupnxLpNQEFZ9g-- Received: from [192.168.1.73] (jon.turney@86.166.57.162 with plain) by smtp826.mail.ukl.yahoo.com with SMTP; 13 Feb 2013 07:05:37 -0800 PST Message-ID: <511BABC1.3040801@dronecode.org.uk> Date: Wed, 13 Feb 2013 15:05:00 -0000 From: Jon TURNEY Reply-To: cygwin-xfree User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com CC: rabalo2036@gmail.com Subject: Re: X connections reset on PC sleep References: <7BAAEF845FCF42B687F8A3181FD86025@ToshibaLaptop> In-Reply-To: <7BAAEF845FCF42B687F8A3181FD86025@ToshibaLaptop> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2013-02/txt/msg00033.txt.bz2 On 12/02/2013 03:51, Ray Balogh wrote: > Sorry, I’m sure this is a known issue, but I can’t seem to locate any > description of the problem in the FAQ, docs, or mailing list archives. > > The problem is that when my PC sleeps, my X connections get reset with > > xterm: fatal IO error 104 (Connection reset by peer) or KillClient > on X server “somehost:0” > > although the Cygwin/X server (Ver. 1.13.1) is still running. I’ve enabled > logging, but I don’t see anything at all in the log file. > > Is there some configuration to stop Cygwin/X from doing this? It’s extremely > inconvenient to have to recreate all my windows if I happen to step away from > the system for a while. I’m running the X clients under a Ubuntu VM (VMware > Player), in case that is significant. I'm afraid that the X protocol doesn't have any way for a running client to detach and reconnect to a server. If one end of the connection goes to sleep, the connection will be broken. I don't think there's anything particularly cygwin-specific about this X server behaviour. It's not clear to me from what you write if the Ubuntu VM is on the same PC as the cygwin X server. If so, it might be that there is some kind of problem with the order in which things are allowed to resume (e.g. the client program resumes before the virtual networking path to the X server is available, or something) You might find using xpra or VNC to connect to an X server running on the VM, an adequate workaround, as they allow you to disconnect and reconnect. Alternatively you could arrange for sleeping to be suspended while the X server is running (It seems on Win7 or later you can use powercfg -requestsoverride to prevent sleep while a specified program is running, or there are several simple utilities available which prevent suspend while they are running) -- 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/