Gentoo Archives: gentoo-user

From: Jorge Peixoto de Morais Neto <please.no.spam.here@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to stop mouse motion
Date: Sat, 15 Nov 2008 21:20:41
Message-Id: 38af3d670811151320o5d28a873t960e9866e5571090@mail.gmail.com
In Reply to: Re: [gentoo-user] How to stop mouse motion by Albert Hopkins
1 On Sat, Nov 15, 2008 at 7:15 PM, Albert Hopkins <marduk@×××××××××××.org> wrote:
2 > On Sat, 2008-11-15 at 18:55 -0200, Jorge Peixoto de Morais Neto wrote:
3 >> Hi. I have a crappy mouse made in China. One of its problems is that
4 >> the mouse pointer sometimes moves even while the mouse is not moving.
5 >> Usually this manifests by the pointer "shaking", moving back and
6 >> forward one or two pixels very fast (it looks like some 5 times per
7 >> second). The worst problem caused by this is that the monitor can
8 >> wake up at seemingly random times.
9 >>
10 >> One solution would be to switch off the monitor every time I won't use
11 >> it for a few minutes, but (AFAIK) this would waste energy and reduce
12 >> lifetime. I want the DPMS modes of standby, suspend, off.
13 >>
14 >> Another solution would be to buy another mouse, but this would cost
15 >> money and would not teach me the solution (this problem can manifest
16 >> again in the future, with this or another computer).
17 >>
18 >> So I want a way to tell the kernel or X11 to ignore mouse motion.
19 >> Either to shut down mouse motion completely, or to allow it but to
20 >> ignore it for the effect considering the computer as idle. I have
21 >> performed a quick read of kernel code and of the xorg.conf man page
22 >> but I see no clue.
23 >>
24 >> Anybody knows?
25 >>
26 > Yes. What you need to do is write your own mouse driver. Call it
27 > 'crappydrv'. In this driver, you detect events sent by the mouse, but
28 > then simply ignore them.
29 I don't know how to write my own driver, and what I want is to
30 dynamically shut up the mouse at runtime, and free it when I come
31 back. Or, ideally, just make X ignore mouse movement for idle time
32 calculations.
33
34 But you were probably joking anyway...
35
36 --
37 Software is like sex: it is better when it is free - Linus Torvalds

Replies

Subject Author
Re: [gentoo-user] How to stop mouse motion Volker Armin Hemmann <volker.armin.hemmann@××××××××××××.de>