mdetect(1) | General Commands Manual | mdetect(1) |
mdetect - mouse device autodetection tool
mdetect [option ...]
mdetect may be run without arguments.
mdetect is a tool for autoconfiguring mice and compatible pointing devices; it is typically used as the backend to some user-friendly frontend code that, for example, asks the user to move the mouse for a moment. mdetect is then run while user is producing input on the mouse device. While mouse motion during detection is sometimes unnecessary, it is seldom problematic.
mdetect writes the autodetected mouse device and protocol to standard output. Unless either of the -o or -x options is given, mdetect produces output appropriate for configuring the gpm(1) program. Alternatively, output appropriate for an XFree86 X server configuration file is produced. If the -v option is given, some information about the program's status is also written to standard output, but this is largely unimplemented at this writing.
If mdetect is unable to find a mouse device, it exits after a few seconds of searching.
Detection of serial and PS/2 devices is often aided by moving the mouse while mdetect runs.
Terminals connected to serial ports may display a small amount of garbage to the screen while mdetect probes them, but this a harmless side-effect; the terminal's line settings are restored after the port has been probed.
mdetect's exit status is used to communicate information.
Please report bugs in mdetect to <submit@bugs.debian.org>. The current bug list may be viewed at <http://bugs.debian.org/mdetect>.
mdetect is copyright 1999 Caldera Systems, Inc. The actual authors are unknown. Branden Robinson of Progeny Linux Systems, Inc. and the Debian Project added several enhancements, including the XFree86-aware code and this manual page. Richard Hirst wrote code to save and restore serial port settings.
The mdetect source code is licensed under the Q Public License (QPL); see <http://www.trolltech.com/products/download/freelicense/license.html>.
This manual page is licensed under the GNU General Public License.
2002-02-22 | Debian GNU/Linux |