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 <gentoo-user+bounces-86389-garchives=archives.gentoo.org@lists.gentoo.org>) id 1L1SZN-0002hU-C4 for garchives@archives.gentoo.org; Sat, 15 Nov 2008 21:20:41 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 03ABDE023C; Sat, 15 Nov 2008 21:20:41 +0000 (UTC) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by pigeon.gentoo.org (Postfix) with ESMTP id B9323E023C for <gentoo-user@lists.gentoo.org>; Sat, 15 Nov 2008 21:20:40 +0000 (UTC) Received: by nf-out-0910.google.com with SMTP id c7so1099266nfi.26 for <gentoo-user@lists.gentoo.org>; Sat, 15 Nov 2008 13:20:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=FUtq7/lOFDfgm2drS7TTXEjsXEPFwGXnHZRJdbTIE0Q=; b=ur+xZEk6C55/WrOG8J69UkQCsyZGwJvWB0E8NwpKSKqri6R4l81RJ2mjYO3BXp2Gv2 fNrsYG+yrO/VGK7R+OcKPazTZF/ynUFHjUKVfLuZ9JL4h2tG1eZQ4nao/B8HG53PkvBt RwKLOMKzICJDfWV1UKNScXsfUhxf/sqp1I9mY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=We2QobSjPe97S/SLQeQ24h/BX7GrMwR9FDAtzk3xP9HALxrCYLFHzelylUYeZz/z+i fhzp69kqm9sA5fnwe9LcS3UxFHwtSMftRjYsiDkWIDRw2Ga4Y2r4lIuoTHiEL1dSF2IC bD9rImpdOaS/eSmQs//if5X/L5MJ7Jt8WY4W8= Received: by 10.210.119.16 with SMTP id r16mr2445868ebc.161.1226784038658; Sat, 15 Nov 2008 13:20:38 -0800 (PST) Received: by 10.210.37.7 with HTTP; Sat, 15 Nov 2008 13:20:38 -0800 (PST) Message-ID: <38af3d670811151320o5d28a873t960e9866e5571090@mail.gmail.com> Date: Sat, 15 Nov 2008 19:20:38 -0200 From: "Jorge Peixoto de Morais Neto" <please.no.spam.here@gmail.com> Sender: jorgepeixotomorais@gmail.com To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How to stop mouse motion In-Reply-To: <1226783725.25426.4.camel@blackwidow.nbk> Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> 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 References: <38af3d670811151255k8e40d83n268f57fbf7516ae3@mail.gmail.com> <1226783725.25426.4.camel@blackwidow.nbk> X-Google-Sender-Auth: fce4e0a34e5909e3 X-Archives-Salt: fc771145-5958-4e59-a931-b08b1e92da17 X-Archives-Hash: fcd9970ad76650cf41e05cf265b86e51 On Sat, Nov 15, 2008 at 7:15 PM, Albert Hopkins <marduk@letterboxes.org> 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... -- Software is like sex: it is better when it is free - Linus Torvalds