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 |