1 .\" $NetBSD: moused.8,v 1.7 2006/02/25 02:27:42 wiz Exp $
4 .\" Mike Pritchard <mpp@FreeBSD.org>. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. All advertising materials mentioning features or use of this software
15 .\" must display the following acknowledgement:
16 .\" This product includes software developed by Mike Pritchard.
17 .\" 4. Neither the name of the author nor the names of its contributors
18 .\" may be used to endorse or promote products derived from this software
19 .\" without specific prior written permission.
21 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
22 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
25 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 .\" FreeBSD: src/usr.sbin/moused/moused.8,v 1.39 2001/08/10 13:45:34 ru Exp
42 .Nd pass mouse data to mouse mux
48 .Op Fl r Ar resolution
50 .Op Fl W Ar devicename
51 .Op Fl a Ar X Ns Op ,Y
56 .Op Fl 3 Op Fl E Ar timeout
66 and the console driver work together to support
67 access to serial mice from user programs.
68 They virtualize the mouse and provide user programs with mouse data
69 in the standard format
74 listens to the specified port for mouse data, interprets and then
75 passes it via ioctls to the console driver.
76 It reports translation movement, button press/release events and
77 movement of the roller or the wheel if available.
78 The roller/wheel movement is reported as
86 it will reopen the mouse port and reinitializes itself.
88 the mouse is attached/detached while the system is suspended.
90 The following options are available:
91 .Bl -tag -width indent
93 Emulate the third (middle) button for 2-button mice.
95 by pressing the left and right physical buttons simultaneously.
97 Lower DTR on the serial port.
98 This option is valid only if
100 is selected as the protocol type.
101 The DTR line may need to be dropped for a 3-button mouse
106 When the third button emulation is enabled (see above),
110 milliseconds at most before deciding whether two buttons are being
111 pressed simultaneously.
112 The default timeout is 100 milliseconds.
114 Set the report rate (reports per second) of the device if supported.
116 Write the process id of
118 in the specified file.
119 Without this option, the process id will be stored in
120 .Pa /var/run/moused.pid .
122 Do not start the Plug and Play COM device enumeration procedure
123 when identifying the serial mouse.
124 If this option is given together with the
128 will not be able to print useful information for the serial mouse.
130 Lower RTS on the serial port.
131 This option is valid only if
133 is selected as the protocol type by the
136 It is often used with the
139 Both RTS and DTR lines may need to be dropped for
140 a 3-button mouse to operate in the
144 Select the baudrate for the serial port (1200 to 9600).
145 Not all serial mice support this option.
146 .It Fl W Ar devicename
152 .It Fl a Ar X Ns Op ,Y
153 Accelerate or decelerate the mouse input.
154 This is a linear acceleration only.
155 Values less than 1.0 slow down movement, values greater than 1.0 speed it
157 Specifying only one value sets the acceleration for both axes.
159 Some mice report middle button down events
160 as if the left and right buttons are being pressed.
161 This option handles this.
163 Enable debugging messages.
165 Do not become a daemon and instead run as a foreground process.
166 Useful for testing and debugging.
168 Print specified information and quit.
169 Available pieces of information are:
171 .Bl -tag -compact -width modelxxx
173 Port (device file) name, e.g.\&
176 Interface type: serial, bus, inport or ps/2.
179 It is one of the types listed under the
185 may not always be able to identify the model.
187 All of the above items.
188 Print port, interface, type and model in this order in one line.
193 cannot determine the requested information, it prints ``unknown'' or
196 Assign the physical button
198 to the logical button
200 You may specify as many instances of this option as you like.
201 More than one physical button may be assigned to a logical button at the
203 In this case the logical button will be down,
204 if either of the assigned physical buttons is held down.
205 Do not put space around `='.
209 to communicate with the mouse.
210 .It Fl r Ar resolution
211 Set the resolution of the device; in Dots Per Inch, or
217 This option may not be supported by all the device.
219 Select a baudrate of 9600 for the serial line.
220 Not all serial mice support this option.
222 Specify the protocol type of the mouse attached to the port.
223 You may explicitly specify a type listed below, or use
227 automatically select an appropriate protocol for the given mouse.
228 If you entirely omit this option on the command line,
231 Under normal circumstances, you need to use this option only if
233 is not able to detect the protocol automatically.
235 Note that if a protocol type is specified with this option, the
237 option above is implied and Plug and Play COM device enumeration
238 procedure will be disabled.
240 Valid types for this option are
243 For the serial mouse:
244 .Bl -tag -compact -width mousesystemsxxx
246 Microsoft serial mouse protocol.
247 Most 2-button serial mice use this protocol.
249 Microsoft IntelliMouse protocol.
250 Genius NetMouse, ASCII Mie Mouse, Logitech MouseMan+ and FirstMouse+
251 use this protocol too.
252 Other mice with a roller/wheel may be compatible with this protocol.
254 MouseSystems 5-byte protocol.
255 3-button mice may use this protocol.
257 MM Series mouse protocol.
259 Logitech mouse protocol.
260 Note that this is for old Logitech models.
264 should be specified for newer models.
266 Logitech MouseMan and TrackMan protocol.
267 Some 3-button mice may be compatible with this protocol.
268 Note that MouseMan+ and FirstMouse+ use
270 protocol rather than this one.
272 ALPS GlidePoint protocol.
274 Kensington ThinkingMouse protocol.
276 Hitachi tablet protocol.
277 .It Ar x10mouseremote
280 Genius Kidspad and Easypad protocol.
282 Interlink VersaPad protocol.
285 Make the physical button
287 act as the wheel mode button.
288 While this button is pressed, X and Y axis movement is reported to be zero
289 and the Y axis movement is mapped to Z axis.
290 You may further map the Z axis movement to virtual buttons by the
294 Map Z axis (roller/wheel) movement to another axis or to virtual buttons.
298 .Bl -tag -compact -width x__
301 X or Y axis movement will be reported when the Z axis movement is detected.
303 Report down events for the virtual buttons
307 respectively when negative and positive Z axis movement
309 There do not need to be physical buttons
313 Note that mapping to logical buttons is carried out after mapping
314 from the Z axis movement to the virtual buttons is done.
316 Report down events for the virtual buttons
320 respectively when negative and positive Z axis movement
323 This is useful for the mouse with two wheels of which
324 the second wheel is used to generate horizontal scroll action,
325 and for the mouse which has a knob or a stick which can detect
326 the horizontal force applied by the user.
328 The motion of the second wheel will be mapped to the buttons
330 for the negative direction, and
332 for the positive direction.
337 actually exist in this mouse, their actions will not be detected.
339 Note that horizontal movement or second roller/wheel movement may not
341 because there appears to be no accepted standard as to how it is encoded.
343 Note also that some mice think left is the negative horizontal direction,
344 others may think otherwise.
345 Moreover, there are some mice whose two wheels are both mounted vertically,
346 and the direction of the second vertical wheel does not match the
353 as the number of mice attached to the system may be run
354 simultaneously; one instance for each serial mouse.
356 .Bl -tag -width /var/run/moused.pid -compact
357 .It Pa /dev/wsmuxctl0
358 default device to control mouse mux
359 .It Pa /var/run/moused.pid
360 process id of the currently running
364 .Dl moused -p /dev/tty00 -i type
368 determine the protocol type of the mouse at the serial port
372 will print the type, otherwise it will say ``unknown''.
374 .Dl moused -p /dev/tty00
378 is able to identify the protocol type of the mouse at the specified
379 port automatically, you can start the daemon without the
381 option and enable the mouse pointer in the text console as above.
383 .Dl moused -p /dev/tty01 -t microsoft
391 is explicitly specified by the
395 .Dl moused -p /dev/tty01 -m 1=3 -m 3=1
397 Assign the physical button 3 (right button) to the logical button 1
398 (logical left) and the physical button 1 (left) to the logical
399 button 3 (logical right).
400 This will effectively swap the left and right buttons.
402 .Dl moused -p /dev/tty01 -t intellimouse -z 4
404 Report negative Z axis (roller) movement as the button 4 pressed
405 and positive Z axis movement as the button 5 pressed.
407 The mouse daemon is normally enabled by setting
419 .Dq Plug and Play External COM Device Specification
420 in order to support PnP serial mice.
421 However, due to various degrees of conformance to the specification
422 by existing serial mice, it does not strictly follow version 1.0
424 Even with this less strict approach, it may not always determine
425 an appropriate protocol type for the given serial mouse.
437 .Aq msmith@FreeBSD.org .
438 This manual page was written by
440 .Aq mpp@FreeBSD.org .
441 The daemon and manual page have since been updated by
443 .Aq yokota@FreeBSD.org .
447 .An Lennart Augustsson
448 .Aq augustss@NetBSD.org .
450 Many pad devices behave as if the first (left) button were pressed if
451 the user `taps' the surface of the pad.
452 In contrast, some ALPS GlidePoint and Interlink VersaPad models
453 treat the tapping action as fourth button events.
454 Use the option ``-m 1=4'' for these models
455 to obtain the same effect as the other pad devices.