Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Xorg Mouse Problems

Posted on 2005-04-12
4
Medium Priority
?
425 Views
Last Modified: 2008-02-01
Hi i've recently installed Gentoo and everything is up and running pretty well..

The one problem i'm having is that every now and then my mouse is having a little fit, and when I move it, it just jumps all over the place and clicks in rapid succession, and will continue for a few seconds.  Sometimes it will just go away and other times, I have to press something like ALT-TAB or change to a different screen using CTRL-ALT-Fx.  The latter seems to work the best.

I've got a USB Logitech Dual Optical mouse with a PS/2 converter on the end of it, I have a feeling it may be the converter but I can't seem to get the mouse to work just through USB, the light won't even come on.

Here is a message that seems to come up in dmesg directly after I have the problem:

psmouse.c: Explorer Mouse at isa0060/serio1/input0 lost synchronization, throwing 1 bytes away

Any ideas?
0
Comment
Question by:mortar
  • 2
  • 2
4 Comments
 
LVL 4

Author Comment

by:mortar
ID: 13761731
Fiddled around a bit and recompiled the kernel with different options and have got the mouse usb support working ok.  I'll run it like this for a bit and see if my mouse does funky things..
0
 
LVL 12

Accepted Solution

by:
GinEric earned 1500 total points
ID: 13768952
It's actually most likely a threading problem.  Same problems occur in KDE as well as X, Qt, others.

Keyboards have similar problems because the mouse and keyboard for modern mice are on dual IRQ's 1 and 12.  Regardless of what Plug and Play says.

IRQ's are not meant to be shared between critical devices, which must have absolute priority to the Interrupt Mask, that is, there are NMI [Non-Maskable Interrupts] which must process instantly, deferring all other proceses and interrupts.  Otherwise, the human loses control of the machine, when, for example, some routine disallows processing of keyboard or mouse interrupts during execution in the middle of such routine.  This leads to what appears to be momentary freezes in mouse and keyboard behavior, and, threads out of order.

This shows up in a lot of gui programs as trying to type "313" and it coming out as "331"

The interrupts were handled "out of order" in a multitasking thread scheme which ought never to have happened.  However, since the programmer, erroneously, put an override on the NMI, it did occur.

I have no doubt that it is in either the core routines of something like X, or whatever gui you are using.

One look at this: "isa0060/serio1/input0" shows that you are using the mouse as Plug and Play in a Linux system.  This is not so good.  Some IRQ's should remain hardwired, for the sake of NMI, and to avoid the relentless overhead of Plug and Play.  USB I suppose is okay, but I would avoid it preferring instead to use the PS/2 as it is a better performing interface.

If you use KDE, under the tools orange wrench on taskbar, Control Center | Peripherals | Mouse you will see various ways to control the mouse behavior.  Under Start | System | Info Center | Interrupts you will see what the mouse and keyboard IRQ's are.

Lost synchronization is probably a race problem with the mouse owing to the fact that the manufacturers forgot something about "twisted pair" in the mouse cabling.  So, the signals tend to "fall over each other" in a highspeed synch scheme.

USB is slower, so it will probably get by without problems, unless, of course, you require really fast mouse movement.

:)
0
 
LVL 4

Author Comment

by:mortar
ID: 13769002
I no longer receive the problem anymore so I think it's all fixed up.. Thanks for the post, quite a bit of useful information!
0
 
LVL 12

Expert Comment

by:GinEric
ID: 13769190
Thank you mortar.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month10 days, 10 hours left to enroll

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question