From owner-freebsd-x11@FreeBSD.ORG Sat Jan 24 17:36:04 2009 Return-Path: Delivered-To: x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9BE901065676 for ; Sat, 24 Jan 2009 17:36:04 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-ew0-f21.google.com (mail-ew0-f21.google.com [209.85.219.21]) by mx1.freebsd.org (Postfix) with ESMTP id 072C88FC08 for ; Sat, 24 Jan 2009 17:36:03 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by ewy14 with SMTP id 14so86107ewy.19 for ; Sat, 24 Jan 2009 09:36:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=YtmMDMXzZ60aQAajONKaTGv8Si1EW3n56/miZ6Hdc2A=; b=ikqy0ZZPX7alpr6bJTDemCsJpUr4g1181PQk7o+E64rzov69HuIQ60K5mztBC4E67p zXPY0aqhcm6XpgYcUotmybM5G3hN9hxraCzvVHooRWW8C6eoxE4tm1JDa0sVhEMM1rAh 5SZ32OOwiAzAAhUJBMUGQZJP2uZigEAEdmwpo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=PdFnc2JjHicd7939azADY0aAkz6q3SK/88uelALkZBrMa9pnG2jQpL2A6HlTfBO2KM bLmzo0tzkzdlM4fopcfpFWPbvdi5MVyNm8whe/YAYksp1nCQzG7aJ49tWFuibYpQekMs gyWEYbwnZOteveRylxPfzVd/QwwougFeTG86g= MIME-Version: 1.0 Received: by 10.210.60.3 with SMTP id i3mr1028922eba.115.1232816609526; Sat, 24 Jan 2009 09:03:29 -0800 (PST) In-Reply-To: <90a5caac0901240831j2367a69eo3a6dfd82f8e3c200@mail.gmail.com> References: <90a5caac0901240831j2367a69eo3a6dfd82f8e3c200@mail.gmail.com> Date: Sat, 24 Jan 2009 18:03:29 +0100 Message-ID: <3a142e750901240903p56dbae27maea5c98a3ddc5971@mail.gmail.com> From: "Paul B. Mahol" To: Lucius Windschuh Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: x11@freebsd.org Subject: Re: Xorg 7.4 freezes when not moving the mouse X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jan 2009 17:36:05 -0000 On 1/24/09, Lucius Windschuh wrote: > Hi guys. > I updated yesterday to the new Xorg 7.4 on my laptop. After rebuilding > many of my ports due to the libxcb dependency, I stumbled upon a this > error: > > The X server stops responding: nothing on the screen changes. Until I > move the mouse cursor. > Then, everything is normal for some time. And when I stop moving the > mouse, it freezes again after a short time. > Literally, this is a show-stopper. ;-) > > Some investigation with ktrace showed that my mouse is responsible: > My configuration uses /dev/sysmouse as mouse device. It is opened by > xf86OpenSerial() (xorg-server: > hw/xfree86/os-support/shared/posix_tty.c). > After some ioctls, this function clears the O_NONBLOCK flag on the > associated file descriptor. So that's why X waits with blocking I/O > for me to move the mouse, which lets moused generate output on > /dev/sysmouse. > Clearing O_NONBLOCK seems a bit strange to me, but I did not look > further into the xf86OpenSerial()-Code. Instead, I patched > xf86-input-mouse to set O_NONBLOCK again. > > I am not sure if this is the right point to correct the error. I would > patch out the part around "i &= ~O_NONBLOCK" in xf86OpenSerial, but > this could have consequences for other devices that assume that their > device I/O blocks. > > You can find the dmesg, xorg.conf and Xorg.1.log and the patch on my > site: http://sites.google.com/site/lwfreebsd/Home/files > The patch itself is quite simple ( > http://sites.google.com/site/lwfreebsd/Home/files/xf86-input-mouse-O_NONBLOCK.diff.txt > ). > > Other thoughts? > > I wonder why nobody has complained before. Is nobody using moused > these days? ;-) > > Lucius > _______________________________________________ > freebsd-x11@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-x11 > To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org" > Xorg is compiled with hald support and hald is enabled? moused is working fine for me, only if I add `Option "AllowEmptyInput" "0"` to xorg.conf, and that one is documented in UPDATING. Without it and without hald running mouse and keyboard where not working at all and Xorg even managed to suspend freebsd. -- Paul