From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1L1SUL-00022K-0T for garchives@archives.gentoo.org; Sat, 15 Nov 2008 21:15:29 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5A9EDE0241; Sat, 15 Nov 2008 21:15:28 +0000 (UTC) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by pigeon.gentoo.org (Postfix) with ESMTP id 3FCABE0241 for ; Sat, 15 Nov 2008 21:15:28 +0000 (UTC) Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id 805D91B7330 for ; Sat, 15 Nov 2008 16:15:26 -0500 (EST) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Sat, 15 Nov 2008 16:15:26 -0500 X-Sasl-enc: GQlEN+iLNfgFcowMgrC61G9KItvpcKuFqCMftA++Ai1Q 1226783726 Received: from [192.168.31.10] (cpe-071-077-032-150.nc.res.rr.com [71.77.32.150]) by www.fastmail.fm (Postfix) with ESMTPSA id 35F4F2A72D for ; Sat, 15 Nov 2008 16:15:26 -0500 (EST) Subject: Re: [gentoo-user] How to stop mouse motion From: Albert Hopkins To: gentoo-user@lists.gentoo.org In-Reply-To: <38af3d670811151255k8e40d83n268f57fbf7516ae3@mail.gmail.com> References: <38af3d670811151255k8e40d83n268f57fbf7516ae3@mail.gmail.com> Content-Type: text/plain Date: Sat, 15 Nov 2008 16:15:25 -0500 Message-Id: <1226783725.25426.4.camel@blackwidow.nbk> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-Archives-Salt: f446f61c-7845-4733-ae4a-1c340dfcb73e X-Archives-Hash: a833bc466a45db90ddccfe3c57b9f64b On Sat, 2008-11-15 at 18:55 -0200, Jorge Peixoto de Morais Neto wrote: > Hi. I have a crappy mouse made in China. One of its problems is that > the mouse pointer sometimes moves even while the mouse is not moving. > Usually this manifests by the pointer "shaking", moving back and > forward one or two pixels very fast (it looks like some 5 times per > second). The worst problem caused by this is that the monitor can > wake up at seemingly random times. > > One solution would be to switch off the monitor every time I won't use > it for a few minutes, but (AFAIK) this would waste energy and reduce > lifetime. I want the DPMS modes of standby, suspend, off. > > Another solution would be to buy another mouse, but this would cost > money and would not teach me the solution (this problem can manifest > again in the future, with this or another computer). > > So I want a way to tell the kernel or X11 to ignore mouse motion. > Either to shut down mouse motion completely, or to allow it but to > ignore it for the effect considering the computer as idle. I have > performed a quick read of kernel code and of the xorg.conf man page > but I see no clue. > > Anybody knows? > Yes. What you need to do is write your own mouse driver. Call it 'crappydrv'. In this driver, you detect events sent by the mouse, but then simply ignore them. HTH, -a