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 1L1TB2-0005JT-PW for garchives@archives.gentoo.org; Sat, 15 Nov 2008 21:59:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 384FCE0265; Sat, 15 Nov 2008 21:59:37 +0000 (UTC) Received: from poseidon.rz.tu-clausthal.de (poseidon.rz.tu-clausthal.de [139.174.2.21]) by pigeon.gentoo.org (Postfix) with ESMTP id 0CECAE0265 for ; Sat, 15 Nov 2008 21:59:37 +0000 (UTC) Received: from poseidon.rz.tu-clausthal.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id A3B54212349 for ; Sat, 15 Nov 2008 22:58:58 +0100 (CET) Received: from tu-clausthal.de (poseidon [139.174.2.21]) by poseidon.rz.tu-clausthal.de (Postfix) with ESMTP id 7D577212348 for ; Sat, 15 Nov 2008 22:58:58 +0100 (CET) Received: from [2001:638:605:eea0:219:66ff:fe86:ce12] (account wevah HELO energy.localnet) by tu-clausthal.de (CommuniGate Pro SMTP 5.2.10) with ESMTPSA id 38862060 for gentoo-user@lists.gentoo.org; Sat, 15 Nov 2008 22:58:58 +0100 From: Volker Armin Hemmann To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How to stop mouse motion Date: Sat, 15 Nov 2008 22:58:57 +0100 User-Agent: KMail/1.10.90 (Linux/2.6.27.6r4_ehci; KDE/4.1.71; x86_64; ; ) References: <38af3d670811151255k8e40d83n268f57fbf7516ae3@mail.gmail.com> <1226783725.25426.4.camel@blackwidow.nbk> <38af3d670811151320o5d28a873t960e9866e5571090@mail.gmail.com> In-Reply-To: <38af3d670811151320o5d28a873t960e9866e5571090@mail.gmail.com> 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 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811152258.57994.volker.armin.hemmann@tu-clausthal.de> X-Virus-Scanned: by PureMessage V5.4 at tu-clausthal.de X-Archives-Salt: 98a9eb2c-5b62-4b93-94c4-62c2e6926346 X-Archives-Hash: 1aace2f9783c21be133567c983460544 On Samstag 15 November 2008, Jorge Peixoto de Morais Neto wrote: > On Sat, Nov 15, 2008 at 7:15 PM, Albert Hopkins wrote: > > 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. > > I don't know how to write my own driver, and what I want is to > dynamically shut up the mouse at runtime, and free it when I come > back. Or, ideally, just make X ignore mouse movement for idle time > calculations. > > But you were probably joking anyway... if it is a usb mouse, disconnect it. Or unload the driver.