From: "Jorge Peixoto de Morais Neto" <please.no.spam.here@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] How to stop mouse motion
Date: Sat, 15 Nov 2008 19:20:38 -0200 [thread overview]
Message-ID: <38af3d670811151320o5d28a873t960e9866e5571090@mail.gmail.com> (raw)
In-Reply-To: <1226783725.25426.4.camel@blackwidow.nbk>
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
next prev parent reply other threads:[~2008-11-15 21:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-15 20:55 [gentoo-user] How to stop mouse motion Jorge Peixoto de Morais Neto
2008-11-15 21:15 ` Albert Hopkins
2008-11-15 21:20 ` Jorge Peixoto de Morais Neto [this message]
2008-11-15 21:58 ` Volker Armin Hemmann
2008-11-15 22:04 ` Jorge Peixoto de Morais Neto
2008-11-15 22:43 ` Volker Armin Hemmann
2008-11-15 21:27 ` Daniel Pielmeier
2008-11-15 21:25 ` Alan McKinnon
2008-11-15 21:57 ` Volker Armin Hemmann
2008-11-15 22:26 ` Mark Kirkwood
2008-11-16 11:58 ` Etaoin Shrdlu
2008-11-16 13:14 ` Jorge Peixoto de Morais Neto
2008-11-16 12:14 ` Johám-Luís Miguéns Vila
2008-11-17 8:07 ` Allan Arguelles
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=38af3d670811151320o5d28a873t960e9866e5571090@mail.gmail.com \
--to=please.no.spam.here@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox