* [gentoo-user] How to stop mouse motion
@ 2008-11-15 20:55 Jorge Peixoto de Morais Neto
2008-11-15 21:15 ` Albert Hopkins
` (5 more replies)
0 siblings, 6 replies; 14+ messages in thread
From: Jorge Peixoto de Morais Neto @ 2008-11-15 20:55 UTC (permalink / raw
To: gentoo-user
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?
--
Software is like sex: it is better when it is free - Linus Torvalds
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] How to stop mouse motion
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
2008-11-15 21:27 ` Daniel Pielmeier
2008-11-15 21:25 ` Alan McKinnon
` (4 subsequent siblings)
5 siblings, 2 replies; 14+ messages in thread
From: Albert Hopkins @ 2008-11-15 21:15 UTC (permalink / raw
To: gentoo-user
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.
HTH,
-a
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] How to stop mouse motion
2008-11-15 21:15 ` Albert Hopkins
@ 2008-11-15 21:20 ` Jorge Peixoto de Morais Neto
2008-11-15 21:58 ` Volker Armin Hemmann
2008-11-15 21:27 ` Daniel Pielmeier
1 sibling, 1 reply; 14+ messages in thread
From: Jorge Peixoto de Morais Neto @ 2008-11-15 21:20 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] How to stop mouse motion
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:25 ` Alan McKinnon
2008-11-15 21:57 ` Volker Armin Hemmann
2008-11-15 22:26 ` Mark Kirkwood
` (3 subsequent siblings)
5 siblings, 1 reply; 14+ messages in thread
From: Alan McKinnon @ 2008-11-15 21:25 UTC (permalink / raw
To: gentoo-user
On Saturday 15 November 2008 22:55:06 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
Yes, this is the best and only thing you could do
> , but this would cost
> money
So? mouses are cheap. I can buy mouses for the price of a packet of smokes or
two beers...
> and would not teach me the solution (this problem can manifest
> again in the future, with this or another computer).
So how you gonna fix this? You have a broken mouse, it sends broken signals to
the machine and the machine reponds brokenly. Here's the only lesson you
should learn (becuase this can't be fixed):
This mouse is broken. It doesn't do what mouses should do. Mouse, meet
dustbin.
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] How to stop mouse motion
2008-11-15 21:15 ` Albert Hopkins
2008-11-15 21:20 ` Jorge Peixoto de Morais Neto
@ 2008-11-15 21:27 ` Daniel Pielmeier
1 sibling, 0 replies; 14+ messages in thread
From: Daniel Pielmeier @ 2008-11-15 21:27 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 247 bytes --]
Albert Hopkins schrieb am 15.11.2008 22:15:
> 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.
>
> HTH,
> -a
>
:D
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] How to stop mouse motion
2008-11-15 21:25 ` Alan McKinnon
@ 2008-11-15 21:57 ` Volker Armin Hemmann
0 siblings, 0 replies; 14+ messages in thread
From: Volker Armin Hemmann @ 2008-11-15 21:57 UTC (permalink / raw
To: gentoo-user
On Samstag 15 November 2008, Alan McKinnon wrote:
> On Saturday 15 November 2008 22:55:06 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
>
> Yes, this is the best and only thing you could do
>
> > , but this would cost
> > money
>
> So? mouses are cheap. I can buy mouses for the price of a packet of smokes
> or two beers...
>
> > and would not teach me the solution (this problem can manifest
> > again in the future, with this or another computer).
>
> So how you gonna fix this? You have a broken mouse, it sends broken signals
> to the machine and the machine reponds brokenly. Here's the only lesson you
> should learn (becuase this can't be fixed):
>
> This mouse is broken. It doesn't do what mouses should do. Mouse, meet
> dustbin.
not dustbin! Its switches might be usefull to repair another mouse. But yeah
- a new mouse is the best solution.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] How to stop mouse motion
2008-11-15 21:20 ` Jorge Peixoto de Morais Neto
@ 2008-11-15 21:58 ` Volker Armin Hemmann
2008-11-15 22:04 ` Jorge Peixoto de Morais Neto
0 siblings, 1 reply; 14+ messages in thread
From: Volker Armin Hemmann @ 2008-11-15 21:58 UTC (permalink / raw
To: gentoo-user
On Samstag 15 November 2008, Jorge Peixoto de Morais Neto wrote:
> 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...
if it is a usb mouse, disconnect it. Or unload the driver.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] How to stop mouse motion
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
0 siblings, 1 reply; 14+ messages in thread
From: Jorge Peixoto de Morais Neto @ 2008-11-15 22:04 UTC (permalink / raw
To: gentoo-user
> if it is a usb mouse, disconnect it. Or unload the driver.
It is PS/2. And if I compile the driver as a module (presently it is
built-in) and unload it while X is running, wouldn't the module refuse
to unload (as it is being used)?
--
Software is like sex: it is better when it is free - Linus Torvalds
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] How to stop mouse motion
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:25 ` Alan McKinnon
@ 2008-11-15 22:26 ` Mark Kirkwood
2008-11-16 11:58 ` Etaoin Shrdlu
` (2 subsequent siblings)
5 siblings, 0 replies; 14+ messages in thread
From: Mark Kirkwood @ 2008-11-15 22:26 UTC (permalink / raw
To: gentoo-user
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.
>
>
If the mouse not brand new, then it may be full of dust and dirt -
assuming it has moving parts at all (i.e it's not a laser or led model)
dismantling it and cleaning may help.
> 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).
>
>
Unless the problem is dirt as above, I serious doubt you are going to
learn anything (technical) - simply replacing the mouse will be the best
solution. I guess the thing to learn is that some computer hardware is
so poorly made that it is useless!
Cheers
Mark
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] How to stop mouse motion
2008-11-15 22:04 ` Jorge Peixoto de Morais Neto
@ 2008-11-15 22:43 ` Volker Armin Hemmann
0 siblings, 0 replies; 14+ messages in thread
From: Volker Armin Hemmann @ 2008-11-15 22:43 UTC (permalink / raw
To: gentoo-user
On Samstag 15 November 2008, Jorge Peixoto de Morais Neto wrote:
> > if it is a usb mouse, disconnect it. Or unload the driver.
>
> It is PS/2. And if I compile the driver as a module (presently it is
> built-in) and unload it while X is running, wouldn't the module refuse
> to unload (as it is being used)?
I don't know, I use usb mice - and removing the usb driver works well.
So get a new mouse.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] How to stop mouse motion
2008-11-15 20:55 [gentoo-user] How to stop mouse motion Jorge Peixoto de Morais Neto
` (2 preceding siblings ...)
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
5 siblings, 1 reply; 14+ messages in thread
From: Etaoin Shrdlu @ 2008-11-16 11:58 UTC (permalink / raw
To: gentoo-user
On Saturday 15 November 2008, 21:55, Jorge Peixoto de Morais Neto wrote:
> 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?
Did you try reducing mouse sensitivity? See man xset.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] How to stop mouse motion
2008-11-15 20:55 [gentoo-user] How to stop mouse motion Jorge Peixoto de Morais Neto
` (3 preceding siblings ...)
2008-11-16 11:58 ` Etaoin Shrdlu
@ 2008-11-16 12:14 ` Johám-Luís Miguéns Vila
2008-11-17 8:07 ` Allan Arguelles
5 siblings, 0 replies; 14+ messages in thread
From: Johám-Luís Miguéns Vila @ 2008-11-16 12:14 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1400 bytes --]
"Jorge Peixoto de Morais Neto" <please.no.spam.here@gmail.com> writes:
> 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.
>
> [ ... ]
>
> 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?
Maybe unclutter could do for you...
* x11-misc/unclutter
gentoo: 8-r1 {:0}
installed: 8-r1* {:0}
Description: Hides mouse pointer while not in use.
Homepage:
http://www.ibiblio.org/pub/X11/contrib/utilities/unclutter-8.README
License: public-domain
Cheers.
--
<spyderous> kurt needs to allow sudo /usr/bin/nano
<seemant> talk to him then :P
<spyderous> i tried =P
<spyderous> he said, be a man
<seemant> HA!
- This message may be digitally signed: GPG KeyID:0x9D2FD6C8 || FNMT SSL cert
[-- Attachment #2: Type: application/pgp-signature, Size: 196 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] How to stop mouse motion
2008-11-16 11:58 ` Etaoin Shrdlu
@ 2008-11-16 13:14 ` Jorge Peixoto de Morais Neto
0 siblings, 0 replies; 14+ messages in thread
From: Jorge Peixoto de Morais Neto @ 2008-11-16 13:14 UTC (permalink / raw
To: gentoo-user
On Sun, Nov 16, 2008 at 9:58 AM, Etaoin Shrdlu <shrdlu@unlimitedmail.org> wrote:
> On Saturday 15 November 2008, 21:55, Jorge Peixoto de Morais Neto wrote:
>
>> 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?
>
> Did you try reducing mouse sensitivity? See man xset.
>
I know about xset, but its man page does not contain the word
"sensitivity". I have, though, reduced the resolution of the mouse
through the kernel parameter psmouse.resolution=100.
It seems to have solved the problem. To have the mouse in a good
speed, I have increased acceleration from 2 to 4 and decreased
threshold from 4 to 3. This is with a xset mouse 4 3 command that is
called when Xfce starts.
Two comments:
1) xorg.conf does have a "Resolution" option, but setting is has no
effect. I do have to pass the resolution as a kernel parameter.
2) There should be a way to set acceleration and threshold in xorg.conf.
Regards,
Jorge Peixoto
--
Software is like sex: it is better when it is free - Linus Torvalds
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] How to stop mouse motion
2008-11-15 20:55 [gentoo-user] How to stop mouse motion Jorge Peixoto de Morais Neto
` (4 preceding siblings ...)
2008-11-16 12:14 ` Johám-Luís Miguéns Vila
@ 2008-11-17 8:07 ` Allan Arguelles
5 siblings, 0 replies; 14+ messages in thread
From: Allan Arguelles @ 2008-11-17 8:07 UTC (permalink / raw
To: gentoo-user
I have this problem with my pc too. I have a razer copperhead, so its
not a cheap/crappy mouse problem for me. Best *quick* solution I found
was to turn the mouse over when I'm not using it.
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?
>
>
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2008-11-17 8:08 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox