From owner-freebsd-ppc@FreeBSD.ORG Wed Aug 3 16:40:26 2011 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81E47106564A; Wed, 3 Aug 2011 16:40:26 +0000 (UTC) (envelope-from superbisquit@gmail.com) Received: from mail-pz0-f46.google.com (mail-pz0-f46.google.com [209.85.210.46]) by mx1.freebsd.org (Postfix) with ESMTP id 50C1C8FC12; Wed, 3 Aug 2011 16:40:26 +0000 (UTC) Received: by pzk32 with SMTP id 32so1762395pzk.19 for ; Wed, 03 Aug 2011 09:40:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qLX4EQIzSvk+06KiBIFZp7dCo/A5230s6GovbRNnTDM=; b=vrV5aR5xWoeSRBTXr2+nyE+s368i0/AJRPF1UQBTqmezG1GWEt49DQkiNk7W1ZE2bR 8C88ktfSSXfQVG6lCAaVNhSEar7ANOg5EsFLD5q49nJoN0QHRaoweEcQi1iepq7JUbTz WCJjpcvgCEfUZAyKvTrzuKGI07i2VHCFmt998= MIME-Version: 1.0 Received: by 10.142.248.7 with SMTP id v7mr1270686wfh.358.1312384336192; Wed, 03 Aug 2011 08:12:16 -0700 (PDT) Received: by 10.68.57.36 with HTTP; Wed, 3 Aug 2011 08:12:15 -0700 (PDT) In-Reply-To: <20110803081338.GB4477@blues.laas.fr> References: <20110803054930.GA9201@bluenote.herrb.net> <20110803081338.GB4477@blues.laas.fr> Date: Wed, 3 Aug 2011 11:12:15 -0400 Message-ID: From: Super Bisquit To: Matthieu Herrb , FreeBSD PowerPC ML , Justin Hibbits , Nathan Whitehorn Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: ppc@openbsd.org Subject: Re: Question about mouse grabbing and X on Apple hardware. X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Aug 2011 16:40:26 -0000 On Wed, Aug 3, 2011 at 4:13 AM, Matthieu Herrb wrote: > On Wed, Aug 03, 2011 at 03:18:22AM -0400, Super Bisquit wrote: > > On Wed, Aug 3, 2011 at 1:49 AM, Matthieu Herrb >wrote: > > > > > On Tue, Aug 02, 2011 at 07:00:12PM -0400, Super Bisquit wrote: > > > > My apologies before hand. > > > > I'm wondering how the OpenBSD PPC port dealt with the mouse > > > > grabbing. > > > > > > Sorry, I don't understand the question. What kind of grabbing are you > > > talking about? At the X server level, there is nothing MI in this > > > area. > > > > > > > The mouse pointer will get caught on the left edge of the screen and then > > only a restart of X allows the pointer to be free again. > > And thanks for the reply. > > On OpenBSD/macppc, I don't remember having seen that problem, but I > may be wrong, and I don't use it on a daily basis anymore. We had it > on other architectures though. > > The main reason for this bug is the SIGIO handler in the > Xserver. By default X processes all the data from the mouse driver in > the signal handler attached to SIGIO. With the new pointer > acceleration code this includes a good amount of floating point > computations, and may even trigger some MMX/SSE2 operations in > libpixman to repaint the pointer on the screen. > > If your signal handling code doesn't preserve the FPU (and the > altivec) registers, this is likely to trigger the bug. > > The easiest solution is to disable the code that uses SIGIO to > asynchronously update the pointer. pass --disable-use-sigio-by-default > to configure for this, or set the option in xorg.conf. > > > > > > > > > > > > I would like- if possible and with permission- to use the same method > > > with > > > > FreeBSD PowerPC to solve/prevent the grabbing. > > > > Again, my apologies beforehand if this post to the mailing list seems > or > > > is > > > > out of place. > > > -- > Matthieu Herrb > Thank you for the help and tell DeRaadt thanks also. I'm forwarding this mail to the FreeBSD PowerPC list for the others to see it.