xref: /freebsd/usr.sbin/moused/msconvd/msconvd.8 (revision aef807876c305587c60f73e2cd914115d22a53fd)
1*aef80787SVladimir Kondratyev.\"-
2*aef80787SVladimir Kondratyev.\" SPDX-License-Identifier: BSD-4-Clause
3*aef80787SVladimir Kondratyev.\"
4*aef80787SVladimir Kondratyev.\" Copyright (c) 1996
5*aef80787SVladimir Kondratyev.\"	Mike Pritchard <mpp@FreeBSD.org>.  All rights reserved.
6*aef80787SVladimir Kondratyev.\"
7*aef80787SVladimir Kondratyev.\" Redistribution and use in source and binary forms, with or without
8*aef80787SVladimir Kondratyev.\" modification, are permitted provided that the following conditions
9*aef80787SVladimir Kondratyev.\" are met:
10*aef80787SVladimir Kondratyev.\" 1. Redistributions of source code must retain the above copyright
11*aef80787SVladimir Kondratyev.\"    notice, this list of conditions and the following disclaimer.
12*aef80787SVladimir Kondratyev.\" 2. Redistributions in binary form must reproduce the above copyright
13*aef80787SVladimir Kondratyev.\"    notice, this list of conditions and the following disclaimer in the
14*aef80787SVladimir Kondratyev.\"    documentation and/or other materials provided with the distribution.
15*aef80787SVladimir Kondratyev.\" 3. All advertising materials mentioning features or use of this software
16*aef80787SVladimir Kondratyev.\"    must display the following acknowledgement:
17*aef80787SVladimir Kondratyev.\"	This product includes software developed by Mike Pritchard.
18*aef80787SVladimir Kondratyev.\" 4. Neither the name of the author nor the names of its contributors
19*aef80787SVladimir Kondratyev.\"    may be used to endorse or promote products derived from this software
20*aef80787SVladimir Kondratyev.\"    without specific prior written permission.
21*aef80787SVladimir Kondratyev.\"
22*aef80787SVladimir Kondratyev.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
23*aef80787SVladimir Kondratyev.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24*aef80787SVladimir Kondratyev.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25*aef80787SVladimir Kondratyev.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
26*aef80787SVladimir Kondratyev.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27*aef80787SVladimir Kondratyev.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28*aef80787SVladimir Kondratyev.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29*aef80787SVladimir Kondratyev.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30*aef80787SVladimir Kondratyev.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31*aef80787SVladimir Kondratyev.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32*aef80787SVladimir Kondratyev.\" SUCH DAMAGE.
33*aef80787SVladimir Kondratyev.\"
34*aef80787SVladimir Kondratyev.Dd May 18, 2025
35*aef80787SVladimir Kondratyev.Dt MSCONVD 8
36*aef80787SVladimir Kondratyev.Os
37*aef80787SVladimir Kondratyev.Sh NAME
38*aef80787SVladimir Kondratyev.Nm msconvd
39*aef80787SVladimir Kondratyev.Nd mouse protocol conversion daemon
40*aef80787SVladimir Kondratyev.Sh SYNOPSIS
41*aef80787SVladimir Kondratyev.Nm
42*aef80787SVladimir Kondratyev.Op Fl DPRcdfs
43*aef80787SVladimir Kondratyev.Op Fl I Ar file
44*aef80787SVladimir Kondratyev.Op Fl F Ar rate
45*aef80787SVladimir Kondratyev.Op Fl r Ar resolution
46*aef80787SVladimir Kondratyev.Op Fl S Ar baudrate
47*aef80787SVladimir Kondratyev.Op Fl t Ar mousetype
48*aef80787SVladimir Kondratyev.Op Fl l Ar level
49*aef80787SVladimir Kondratyev.Fl p Ar port
50*aef80787SVladimir Kondratyev.Pp
51*aef80787SVladimir Kondratyev.Nm
52*aef80787SVladimir Kondratyev.Op Fl Pd
53*aef80787SVladimir Kondratyev.Fl p Ar port
54*aef80787SVladimir Kondratyev.Fl i Ar info
55*aef80787SVladimir Kondratyev.Sh DESCRIPTION
56*aef80787SVladimir KondratyevThe
57*aef80787SVladimir Kondratyev.Nm
58*aef80787SVladimir Kondratyevutility and the
59*aef80787SVladimir Kondratyev.Xr moused 8
60*aef80787SVladimir Kondratyevdriver work together to support legacy devices like COM,
61*aef80787SVladimir Kondratyev.Xr ams 4
62*aef80787SVladimir Kondratyevmices and X10 remotes as well.
63*aef80787SVladimir Kondratyev.Xr psm 4 ,
64*aef80787SVladimir Kondratyev.Xr ums 4
65*aef80787SVladimir Kondratyevand some other devices are supported too but not recomended to use with
66*aef80787SVladimir Kondratyev.Nm
67*aef80787SVladimir Kondratyevunless kernel is compiled without
68*aef80787SVladimir Kondratyev.Dq option EVDEV_SUPPORT .
69*aef80787SVladimir KondratyevThe
70*aef80787SVladimir Kondratyev.Nm
71*aef80787SVladimir Kondratyevlistens to the specified port for mouse data, decodes and then passes
72*aef80787SVladimir Kondratyevit via input event device a.k.a evdev to consumer aplications like
73*aef80787SVladimir Kondratyev.Xr moused 8
74*aef80787SVladimir Kondratyevor
75*aef80787SVladimir Kondratyev.Xr libinput 1 .
76*aef80787SVladimir KondratyevIt does not display the mouse pointer on the screen or provide cut and
77*aef80787SVladimir Kondratyevpaste functions.
78*aef80787SVladimir KondratyevThe msconv daemon converts translation movement, button press/release
79*aef80787SVladimir Kondratyevevents and movement of the roller or the wheel if available.
80*aef80787SVladimir Kondratyev.Pp
81*aef80787SVladimir Kondratyev.Pp
82*aef80787SVladimir KondratyevIf the
83*aef80787SVladimir Kondratyev.Nm
84*aef80787SVladimir Kondratyevreceives the signal
85*aef80787SVladimir Kondratyev.Dv SIGHUP ,
86*aef80787SVladimir Kondratyevit will reopen the mouse port and reinitialize itself.
87*aef80787SVladimir KondratyevUseful if
88*aef80787SVladimir Kondratyevthe mouse is attached/detached while the system is suspended.
89*aef80787SVladimir Kondratyev.Pp
90*aef80787SVladimir KondratyevIf the
91*aef80787SVladimir Kondratyev.Nm
92*aef80787SVladimir Kondratyevreceives the signal
93*aef80787SVladimir Kondratyev.Dv SIGUSR1 ,
94*aef80787SVladimir Kondratyevit will stop passing mouse events.
95*aef80787SVladimir KondratyevSending the signal
96*aef80787SVladimir Kondratyev.Dv SIGUSR1
97*aef80787SVladimir Kondratyevagain will resume passing mouse events.
98*aef80787SVladimir KondratyevUseful if your typing on a laptop is
99*aef80787SVladimir Kondratyevinterrupted by accidentally touching the mouse pad.
100*aef80787SVladimir Kondratyev.Pp
101*aef80787SVladimir KondratyevThe following options are available:
102*aef80787SVladimir Kondratyev.Bl -tag -width indent
103*aef80787SVladimir Kondratyev.It Fl D
104*aef80787SVladimir KondratyevLower DTR on the serial port.
105*aef80787SVladimir KondratyevThis option is valid only if
106*aef80787SVladimir Kondratyev.Ar mousesystems
107*aef80787SVladimir Kondratyevis selected as the protocol type.
108*aef80787SVladimir KondratyevThe DTR line may need to be dropped for a 3-button mouse
109*aef80787SVladimir Kondratyevto operate in the
110*aef80787SVladimir Kondratyev.Ar mousesystems
111*aef80787SVladimir Kondratyevmode.
112*aef80787SVladimir Kondratyev.It Fl F Ar rate
113*aef80787SVladimir KondratyevSet the report rate (reports/sec) of the device if supported.
114*aef80787SVladimir Kondratyev.It Fl I Ar file
115*aef80787SVladimir KondratyevWrite the process id of the
116*aef80787SVladimir Kondratyev.Nm
117*aef80787SVladimir Kondratyevutility in the specified file.
118*aef80787SVladimir KondratyevWithout this option, the process id will be stored in
119*aef80787SVladimir Kondratyev.Pa /var/run/moused.pid .
120*aef80787SVladimir Kondratyev.It Fl P
121*aef80787SVladimir KondratyevDo not start the Plug and Play COM device enumeration procedure
122*aef80787SVladimir Kondratyevwhen identifying the serial mouse.
123*aef80787SVladimir KondratyevIf this option is given together with the
124*aef80787SVladimir Kondratyev.Fl i
125*aef80787SVladimir Kondratyevoption, the
126*aef80787SVladimir Kondratyev.Nm
127*aef80787SVladimir Kondratyevutility will not be able to print useful information for the serial mouse.
128*aef80787SVladimir Kondratyev.It Fl R
129*aef80787SVladimir KondratyevLower RTS on the serial port.
130*aef80787SVladimir KondratyevThis option is valid only if
131*aef80787SVladimir Kondratyev.Ar mousesystems
132*aef80787SVladimir Kondratyevis selected as the protocol type by the
133*aef80787SVladimir Kondratyev.Fl t
134*aef80787SVladimir Kondratyevoption below.
135*aef80787SVladimir KondratyevIt is often used with the
136*aef80787SVladimir Kondratyev.Fl D
137*aef80787SVladimir Kondratyevoption above.
138*aef80787SVladimir KondratyevBoth RTS and DTR lines may need to be dropped for
139*aef80787SVladimir Kondratyeva 3-button mouse to operate in the
140*aef80787SVladimir Kondratyev.Ar mousesystems
141*aef80787SVladimir Kondratyevmode.
142*aef80787SVladimir Kondratyev.It Fl S Ar baudrate
143*aef80787SVladimir KondratyevSelect the baudrate for the serial port (1200 to 9600).
144*aef80787SVladimir KondratyevNot all serial mice support this option.
145*aef80787SVladimir Kondratyev.It Fl c
146*aef80787SVladimir KondratyevSome mice report middle button down events
147*aef80787SVladimir Kondratyevas if the left and right buttons are being pressed.
148*aef80787SVladimir KondratyevThis option handles this.
149*aef80787SVladimir Kondratyev.It Fl d
150*aef80787SVladimir KondratyevEnable debugging messages.
151*aef80787SVladimir Kondratyev.It Fl f
152*aef80787SVladimir KondratyevDo not become a daemon and instead run as a foreground process.
153*aef80787SVladimir KondratyevUseful for testing and debugging.
154*aef80787SVladimir Kondratyev.It Fl i Ar info
155*aef80787SVladimir KondratyevPrint specified information and quit.
156*aef80787SVladimir KondratyevAvailable pieces of
157*aef80787SVladimir Kondratyevinformation are:
158*aef80787SVladimir Kondratyev.Pp
159*aef80787SVladimir Kondratyev.Bl -tag -compact -width modelxxx
160*aef80787SVladimir Kondratyev.It Ar port
161*aef80787SVladimir KondratyevPort (device file) name, i.e.\&
162*aef80787SVladimir Kondratyev.Pa /dev/cuau0 ,
163*aef80787SVladimir Kondratyevand
164*aef80787SVladimir Kondratyev.Pa /dev/psm0 .
165*aef80787SVladimir Kondratyev.It Ar if
166*aef80787SVladimir KondratyevInterface type: serial, bus, inport or ps/2.
167*aef80787SVladimir Kondratyev.It Ar type
168*aef80787SVladimir KondratyevProtocol type.
169*aef80787SVladimir KondratyevIt is one of the types listed under the
170*aef80787SVladimir Kondratyev.Fl t
171*aef80787SVladimir Kondratyevoption below or
172*aef80787SVladimir Kondratyev.Ar sysmouse
173*aef80787SVladimir Kondratyevif the driver supports the
174*aef80787SVladimir Kondratyev.Ar sysmouse
175*aef80787SVladimir Kondratyevdata format standard.
176*aef80787SVladimir Kondratyev.It Ar model
177*aef80787SVladimir KondratyevMouse model.
178*aef80787SVladimir KondratyevThe
179*aef80787SVladimir Kondratyev.Nm
180*aef80787SVladimir Kondratyevutility may not always be able to identify the model.
181*aef80787SVladimir Kondratyev.It Ar all
182*aef80787SVladimir KondratyevAll of the above items.
183*aef80787SVladimir KondratyevPrint port, interface, type and model in this order
184*aef80787SVladimir Kondratyevin one line.
185*aef80787SVladimir Kondratyev.El
186*aef80787SVladimir Kondratyev.Pp
187*aef80787SVladimir KondratyevIf the
188*aef80787SVladimir Kondratyev.Nm
189*aef80787SVladimir Kondratyevutility cannot determine the requested information, it prints
190*aef80787SVladimir Kondratyev.Dq Li unknown
191*aef80787SVladimir Kondratyevor
192*aef80787SVladimir Kondratyev.Dq Li generic .
193*aef80787SVladimir Kondratyev.It Fl l Ar level
194*aef80787SVladimir KondratyevSpecifies at which level
195*aef80787SVladimir Kondratyev.Nm
196*aef80787SVladimir Kondratyevshould operate the mouse driver.
197*aef80787SVladimir KondratyevRefer to
198*aef80787SVladimir Kondratyev.Sx Operation Levels
199*aef80787SVladimir Kondratyevin
200*aef80787SVladimir Kondratyev.Xr psm 4
201*aef80787SVladimir Kondratyevfor more information on this.
202*aef80787SVladimir Kondratyev.It Fl p Ar port
203*aef80787SVladimir KondratyevUse
204*aef80787SVladimir Kondratyev.Ar port
205*aef80787SVladimir Kondratyevto communicate with the mouse.
206*aef80787SVladimir Kondratyev.It Fl r Ar resolution
207*aef80787SVladimir KondratyevSet the resolution of the device; in Dots Per Inch, or
208*aef80787SVladimir Kondratyev.Ar low ,
209*aef80787SVladimir Kondratyev.Ar medium-low ,
210*aef80787SVladimir Kondratyev.Ar medium-high
211*aef80787SVladimir Kondratyevor
212*aef80787SVladimir Kondratyev.Ar high .
213*aef80787SVladimir KondratyevThis option may not be supported by all the device.
214*aef80787SVladimir Kondratyev.It Fl s
215*aef80787SVladimir KondratyevSelect a baudrate of 9600 for the serial line.
216*aef80787SVladimir KondratyevNot all serial mice support this option.
217*aef80787SVladimir Kondratyev.It Fl t Ar type
218*aef80787SVladimir KondratyevSpecify the protocol type of the mouse attached to the port.
219*aef80787SVladimir KondratyevYou may explicitly specify a type listed below, or use
220*aef80787SVladimir Kondratyev.Ar auto
221*aef80787SVladimir Kondratyevto let the
222*aef80787SVladimir Kondratyev.Nm
223*aef80787SVladimir Kondratyevutility automatically select an appropriate protocol for the given
224*aef80787SVladimir Kondratyevmouse.
225*aef80787SVladimir KondratyevIf you entirely omit this option in the command line,
226*aef80787SVladimir Kondratyev.Fl t Ar auto
227*aef80787SVladimir Kondratyevis assumed.
228*aef80787SVladimir KondratyevUnder normal circumstances,
229*aef80787SVladimir Kondratyevyou need to use this option only if the
230*aef80787SVladimir Kondratyev.Nm
231*aef80787SVladimir Kondratyevutility is not able to detect the protocol automatically
232*aef80787SVladimir Kondratyev(see
233*aef80787SVladimir Kondratyev.Sx "Configuring Mouse Protocol Conversion Daemon" ) .
234*aef80787SVladimir Kondratyev.Pp
235*aef80787SVladimir KondratyevNote that if a protocol type is specified with this option, the
236*aef80787SVladimir Kondratyev.Fl P
237*aef80787SVladimir Kondratyevoption above is implied and Plug and Play COM device enumeration
238*aef80787SVladimir Kondratyevprocedure will be disabled.
239*aef80787SVladimir Kondratyev.Pp
240*aef80787SVladimir KondratyevAlso note that if your mouse is attached to the PS/2 mouse port, you should
241*aef80787SVladimir Kondratyevalways choose
242*aef80787SVladimir Kondratyev.Ar auto
243*aef80787SVladimir Kondratyevor
244*aef80787SVladimir Kondratyev.Ar ps/2 ,
245*aef80787SVladimir Kondratyevregardless of the brand and model of the mouse.
246*aef80787SVladimir KondratyevLikewise, if your
247*aef80787SVladimir Kondratyevmouse is attached to the bus mouse port, choose
248*aef80787SVladimir Kondratyev.Ar auto
249*aef80787SVladimir Kondratyevor
250*aef80787SVladimir Kondratyev.Ar busmouse .
251*aef80787SVladimir KondratyevSerial mouse protocols will not work with these mice.
252*aef80787SVladimir Kondratyev.Pp
253*aef80787SVladimir KondratyevFor the USB mouse, the protocol must be
254*aef80787SVladimir Kondratyev.Ar auto .
255*aef80787SVladimir KondratyevNo other protocol will work with the USB mouse.
256*aef80787SVladimir Kondratyev.Pp
257*aef80787SVladimir KondratyevValid types for this option are
258*aef80787SVladimir Kondratyevlisted below.
259*aef80787SVladimir Kondratyev.Pp
260*aef80787SVladimir KondratyevFor the serial mouse:
261*aef80787SVladimir Kondratyev.Bl -tag -compact -width mousesystemsxxx
262*aef80787SVladimir Kondratyev.It Ar microsoft
263*aef80787SVladimir KondratyevMicrosoft serial mouse protocol.
264*aef80787SVladimir KondratyevMost 2-button serial mice use this protocol.
265*aef80787SVladimir Kondratyev.It Ar intellimouse
266*aef80787SVladimir KondratyevMicrosoft IntelliMouse protocol.
267*aef80787SVladimir KondratyevGenius NetMouse,
268*aef80787SVladimir Kondratyev.Tn ASCII
269*aef80787SVladimir KondratyevMie Mouse,
270*aef80787SVladimir KondratyevLogitech MouseMan+ and FirstMouse+ use this protocol too.
271*aef80787SVladimir KondratyevOther mice with a roller/wheel may be compatible with this protocol.
272*aef80787SVladimir Kondratyev.It Ar mousesystems
273*aef80787SVladimir KondratyevMouseSystems 5-byte protocol.
274*aef80787SVladimir Kondratyev3-button mice may use this protocol.
275*aef80787SVladimir Kondratyev.It Ar mmseries
276*aef80787SVladimir KondratyevMM Series mouse protocol.
277*aef80787SVladimir Kondratyev.It Ar logitech
278*aef80787SVladimir KondratyevLogitech mouse protocol.
279*aef80787SVladimir KondratyevNote that this is for old Logitech models.
280*aef80787SVladimir Kondratyev.Ar mouseman
281*aef80787SVladimir Kondratyevor
282*aef80787SVladimir Kondratyev.Ar intellimouse
283*aef80787SVladimir Kondratyevshould be specified for newer models.
284*aef80787SVladimir Kondratyev.It Ar mouseman
285*aef80787SVladimir KondratyevLogitech MouseMan and TrackMan protocol.
286*aef80787SVladimir KondratyevSome 3-button mice may be compatible
287*aef80787SVladimir Kondratyevwith this protocol.
288*aef80787SVladimir KondratyevNote that MouseMan+ and FirstMouse+ use
289*aef80787SVladimir Kondratyev.Ar intellimouse
290*aef80787SVladimir Kondratyevprotocol rather than this one.
291*aef80787SVladimir Kondratyev.It Ar glidepoint
292*aef80787SVladimir KondratyevALPS GlidePoint protocol.
293*aef80787SVladimir Kondratyev.It Ar thinkingmouse
294*aef80787SVladimir KondratyevKensington ThinkingMouse protocol.
295*aef80787SVladimir Kondratyev.It Ar mmhitab
296*aef80787SVladimir KondratyevHitachi tablet protocol.
297*aef80787SVladimir Kondratyev.It Ar x10mouseremote
298*aef80787SVladimir KondratyevX10 MouseRemote.
299*aef80787SVladimir Kondratyev.It Ar kidspad
300*aef80787SVladimir KondratyevGenius Kidspad and Easypad protocol.
301*aef80787SVladimir Kondratyev.It Ar versapad
302*aef80787SVladimir KondratyevInterlink VersaPad protocol.
303*aef80787SVladimir Kondratyev.It Ar gtco_digipad
304*aef80787SVladimir KondratyevGTCO Digipad protocol.
305*aef80787SVladimir Kondratyev.El
306*aef80787SVladimir Kondratyev.Pp
307*aef80787SVladimir KondratyevFor the bus and InPort mouse:
308*aef80787SVladimir Kondratyev.Bl -tag -compact -width mousesystemsxxx
309*aef80787SVladimir Kondratyev.It Ar busmouse
310*aef80787SVladimir KondratyevThis is the only protocol type available for
311*aef80787SVladimir Kondratyevthe bus and InPort mouse and should be specified for any bus mice
312*aef80787SVladimir Kondratyevand InPort mice, regardless of the brand.
313*aef80787SVladimir Kondratyev.El
314*aef80787SVladimir Kondratyev.Pp
315*aef80787SVladimir KondratyevFor the PS/2 mouse:
316*aef80787SVladimir Kondratyev.Bl -tag -compact -width mousesystemsxxx
317*aef80787SVladimir Kondratyev.It Ar ps/2
318*aef80787SVladimir KondratyevThis is the only protocol type available for the PS/2 mouse
319*aef80787SVladimir Kondratyevand should be specified for any PS/2 mice, regardless of the brand.
320*aef80787SVladimir Kondratyev.El
321*aef80787SVladimir Kondratyev.Pp
322*aef80787SVladimir KondratyevFor the USB mouse,
323*aef80787SVladimir Kondratyev.Ar auto
324*aef80787SVladimir Kondratyevis the only protocol type available for the USB mouse
325*aef80787SVladimir Kondratyevand should be specified for any USB mice, regardless of the brand.
326*aef80787SVladimir Kondratyev.El
327*aef80787SVladimir Kondratyev.El
328*aef80787SVladimir Kondratyev.Ss Configuring Mouse Protocol Conversion Daemon
329*aef80787SVladimir KondratyevThe first thing you need to know is the interface type
330*aef80787SVladimir Kondratyevof the mouse you are going to use.
331*aef80787SVladimir KondratyevIt can be determined by looking at the connector of the mouse.
332*aef80787SVladimir KondratyevThe serial mouse has a D-Sub female 9- or 25-pin connector.
333*aef80787SVladimir KondratyevThe bus and InPort mice have either a D-Sub male 9-pin connector
334*aef80787SVladimir Kondratyevor a round DIN 9-pin connector.
335*aef80787SVladimir KondratyevThe PS/2 mouse is equipped with a small, round DIN 6-pin connector.
336*aef80787SVladimir KondratyevSome mice come with adapters with which the connector can
337*aef80787SVladimir Kondratyevbe converted to another.
338*aef80787SVladimir KondratyevIf you are to use such an adapter,
339*aef80787SVladimir Kondratyevremember the connector at the very end of the mouse/adapter pair is
340*aef80787SVladimir Kondratyevwhat matters.
341*aef80787SVladimir KondratyevThe USB mouse has a flat rectangular connector.
342*aef80787SVladimir Kondratyev.Pp
343*aef80787SVladimir KondratyevThe next thing to decide is a port to use for the given interface.
344*aef80787SVladimir KondratyevThe PS/2 mouse is always at
345*aef80787SVladimir Kondratyev.Pa /dev/psm0 .
346*aef80787SVladimir KondratyevThere may be more than one serial port to which the serial
347*aef80787SVladimir Kondratyevmouse can be attached.
348*aef80787SVladimir KondratyevMany people often assign the first, built-in
349*aef80787SVladimir Kondratyevserial port
350*aef80787SVladimir Kondratyev.Pa /dev/cuau0
351*aef80787SVladimir Kondratyevto the mouse.
352*aef80787SVladimir KondratyevYou can attach multiple USB mice to your system or to your USB hub.
353*aef80787SVladimir KondratyevThey are accessible as
354*aef80787SVladimir Kondratyev.Pa /dev/ums0 , /dev/ums1 ,
355*aef80787SVladimir Kondratyevand so on.
356*aef80787SVladimir Kondratyev.Pp
357*aef80787SVladimir KondratyevYou may want to create a symbolic link
358*aef80787SVladimir Kondratyev.Pa /dev/mouse
359*aef80787SVladimir Kondratyevpointing to the real port to which the mouse is connected, so that you
360*aef80787SVladimir Kondratyevcan easily distinguish which is your
361*aef80787SVladimir Kondratyev.Dq mouse
362*aef80787SVladimir Kondratyevport later.
363*aef80787SVladimir Kondratyev.Pp
364*aef80787SVladimir KondratyevThe next step is to guess the appropriate protocol type for the mouse.
365*aef80787SVladimir KondratyevThe
366*aef80787SVladimir Kondratyev.Nm
367*aef80787SVladimir Kondratyevutility may be able to automatically determine the protocol type.
368*aef80787SVladimir KondratyevRun the
369*aef80787SVladimir Kondratyev.Nm
370*aef80787SVladimir Kondratyevutility with the
371*aef80787SVladimir Kondratyev.Fl i
372*aef80787SVladimir Kondratyevoption and see what it says.
373*aef80787SVladimir KondratyevIf the command can identify
374*aef80787SVladimir Kondratyevthe protocol type, no further investigation is necessary on your part.
375*aef80787SVladimir KondratyevYou may start the daemon without explicitly specifying a protocol type
376*aef80787SVladimir Kondratyev(see
377*aef80787SVladimir Kondratyev.Sx EXAMPLES ) .
378*aef80787SVladimir Kondratyev.Pp
379*aef80787SVladimir KondratyevThe command may print
380*aef80787SVladimir Kondratyev.Ar sysmouse
381*aef80787SVladimir Kondratyevif the mouse driver supports this protocol type.
382*aef80787SVladimir Kondratyev.Pp
383*aef80787SVladimir KondratyevNote that the
384*aef80787SVladimir Kondratyev.Dv type
385*aef80787SVladimir Kondratyevand
386*aef80787SVladimir Kondratyev.Dv model
387*aef80787SVladimir Kondratyevprinted by the
388*aef80787SVladimir Kondratyev.Fl i
389*aef80787SVladimir Kondratyevoption do not necessarily match the product name of the pointing device
390*aef80787SVladimir Kondratyevin question, but they may give the name of the device with which it is
391*aef80787SVladimir Kondratyevcompatible.
392*aef80787SVladimir Kondratyev.Pp
393*aef80787SVladimir KondratyevIf the
394*aef80787SVladimir Kondratyev.Fl i
395*aef80787SVladimir Kondratyevoption yields nothing, you need to specify a protocol type to the
396*aef80787SVladimir Kondratyev.Nm
397*aef80787SVladimir Kondratyevutility by the
398*aef80787SVladimir Kondratyev.Fl t
399*aef80787SVladimir Kondratyevoption.
400*aef80787SVladimir KondratyevYou have to make a guess and try.
401*aef80787SVladimir KondratyevThere is rule of thumb:
402*aef80787SVladimir Kondratyev.Pp
403*aef80787SVladimir Kondratyev.Bl -enum -compact -width 1.X
404*aef80787SVladimir Kondratyev.It
405*aef80787SVladimir KondratyevThe bus and InPort mice always use
406*aef80787SVladimir Kondratyev.Ar busmouse
407*aef80787SVladimir Kondratyevprotocol regardless of the brand of the mouse.
408*aef80787SVladimir Kondratyev.It
409*aef80787SVladimir KondratyevThe
410*aef80787SVladimir Kondratyev.Ar ps/2
411*aef80787SVladimir Kondratyevprotocol should always be specified for the PS/2 mouse
412*aef80787SVladimir Kondratyevregardless of the brand of the mouse.
413*aef80787SVladimir Kondratyev.It
414*aef80787SVladimir KondratyevYou must specify the
415*aef80787SVladimir Kondratyev.Ar auto
416*aef80787SVladimir Kondratyevprotocol for the USB mouse.
417*aef80787SVladimir Kondratyev.It
418*aef80787SVladimir KondratyevMost 2-button serial mice support the
419*aef80787SVladimir Kondratyev.Ar microsoft
420*aef80787SVladimir Kondratyevprotocol.
421*aef80787SVladimir Kondratyev.It
422*aef80787SVladimir Kondratyev3-button serial mice may work with the
423*aef80787SVladimir Kondratyev.Ar mousesystems
424*aef80787SVladimir Kondratyevprotocol.
425*aef80787SVladimir KondratyevIf it does not, it may work with the
426*aef80787SVladimir Kondratyev.Ar microsoft
427*aef80787SVladimir Kondratyevprotocol although
428*aef80787SVladimir Kondratyevthe third (middle) button will not function.
429*aef80787SVladimir Kondratyev3-button serial mice may also work with the
430*aef80787SVladimir Kondratyev.Ar mouseman
431*aef80787SVladimir Kondratyevprotocol under which the third button may function as expected.
432*aef80787SVladimir Kondratyev.It
433*aef80787SVladimir Kondratyev3-button serial mice may have a small switch to choose between
434*aef80787SVladimir Kondratyev.Dq MS
435*aef80787SVladimir Kondratyevand
436*aef80787SVladimir Kondratyev.Dq PC ,
437*aef80787SVladimir Kondratyevor
438*aef80787SVladimir Kondratyev.Dq 2
439*aef80787SVladimir Kondratyevand
440*aef80787SVladimir Kondratyev.Dq 3 .
441*aef80787SVladimir Kondratyev.Dq MS
442*aef80787SVladimir Kondratyevor
443*aef80787SVladimir Kondratyev.Dq 2
444*aef80787SVladimir Kondratyevusually mean the
445*aef80787SVladimir Kondratyev.Ar microsoft
446*aef80787SVladimir Kondratyevprotocol.
447*aef80787SVladimir Kondratyev.Dq PC
448*aef80787SVladimir Kondratyevor
449*aef80787SVladimir Kondratyev.Dq 3
450*aef80787SVladimir Kondratyevwill choose the
451*aef80787SVladimir Kondratyev.Ar mousesystems
452*aef80787SVladimir Kondratyevprotocol.
453*aef80787SVladimir Kondratyev.It
454*aef80787SVladimir KondratyevIf the mouse has a roller or a wheel, it may be compatible with the
455*aef80787SVladimir Kondratyev.Ar intellimouse
456*aef80787SVladimir Kondratyevprotocol.
457*aef80787SVladimir Kondratyev.El
458*aef80787SVladimir Kondratyev.Pp
459*aef80787SVladimir KondratyevTo test if the selected protocol type is correct for the given mouse,
460*aef80787SVladimir Kondratyevensure the
461*aef80787SVladimir Kondratyev.Xr moused 8
462*aef80787SVladimir Kondratyevis running in auto port mode,
463*aef80787SVladimir Kondratyev.Pp
464*aef80787SVladimir Kondratyev.Dl "moused -p auto"
465*aef80787SVladimir Kondratyev.Pp
466*aef80787SVladimir Kondratyevstart the
467*aef80787SVladimir Kondratyev.Nm
468*aef80787SVladimir Kondratyevin the foreground mode,
469*aef80787SVladimir Kondratyev.Pp
470*aef80787SVladimir Kondratyev.Dl "msconvd -f -p <selected_port> -t <selected_protocol>"
471*aef80787SVladimir Kondratyev.Pp
472*aef80787SVladimir Kondratyevand see if the mouse pointer travels correctly
473*aef80787SVladimir Kondratyevaccording to the mouse movement.
474*aef80787SVladimir KondratyevThen try cut & paste features by
475*aef80787SVladimir Kondratyevclicking the left, right and middle buttons.
476*aef80787SVladimir KondratyevType ^C to stop
477*aef80787SVladimir Kondratyevthe command.
478*aef80787SVladimir Kondratyev.Ss Multiple Mice
479*aef80787SVladimir KondratyevAs many instances of the
480*aef80787SVladimir Kondratyev.Nm
481*aef80787SVladimir Kondratyevas the number of mice attached to the system may be run simultaneously;
482*aef80787SVladimir Kondratyevone instance for each mouse.
483*aef80787SVladimir KondratyevThis is useful if the user wants to use the built-in PS/2 pointing device
484*aef80787SVladimir Kondratyevof a laptop computer while on the road, but wants to use a serial
485*aef80787SVladimir Kondratyevmouse when s/he attaches the system to the docking station in the office.
486*aef80787SVladimir KondratyevRun two
487*aef80787SVladimir Kondratyev.Nm
488*aef80787SVladimir Kondratyevand then the application program e.g.
489*aef80787SVladimir Kondratyev.Xr moused 8
490*aef80787SVladimir Kondratyevwill always see mouse data from either mouse.
491*aef80787SVladimir KondratyevWhen the serial mouse is not attached, the corresponding
492*aef80787SVladimir Kondratyev.Nm
493*aef80787SVladimir Kondratyevwill not detect any movement or button state change and the application
494*aef80787SVladimir Kondratyevprogram will only see mouse data coming from the daemon for the
495*aef80787SVladimir KondratyevPS/2 mouse.
496*aef80787SVladimir KondratyevIn contrast when both mice are attached and both of them
497*aef80787SVladimir Kondratyevare moved at the same time in this configuration,
498*aef80787SVladimir Kondratyevthe mouse pointer will travel across the screen just as if movement of
499*aef80787SVladimir Kondratyevthe mice is combined all together.
500*aef80787SVladimir Kondratyev.Sh FILES
501*aef80787SVladimir Kondratyev.Bl -tag -width /dev/input/event%d -compact
502*aef80787SVladimir Kondratyev.It Pa /dev/input/event%d
503*aef80787SVladimir Kondratyevinput event device
504*aef80787SVladimir Kondratyev.It Pa /dev/psm%d
505*aef80787SVladimir KondratyevPS/2 mouse driver
506*aef80787SVladimir Kondratyev.It Pa /dev/cuau%d
507*aef80787SVladimir Kondratyevserial port
508*aef80787SVladimir Kondratyev.It Pa /dev/ttyv%d
509*aef80787SVladimir Kondratyevvirtual consoles
510*aef80787SVladimir Kondratyev.It Pa /dev/ums%d
511*aef80787SVladimir KondratyevUSB mouse driver
512*aef80787SVladimir Kondratyev.It Pa /var/run/msconvd.pid
513*aef80787SVladimir Kondratyevprocess id of the currently running
514*aef80787SVladimir Kondratyev.Nm
515*aef80787SVladimir Kondratyevutility
516*aef80787SVladimir Kondratyev.It Pa /var/run/MouseRemote
517*aef80787SVladimir KondratyevUNIX-domain stream socket for X10 MouseRemote events
518*aef80787SVladimir Kondratyev.El
519*aef80787SVladimir Kondratyev.Sh EXAMPLES
520*aef80787SVladimir Kondratyev.Dl "msconvd -p /dev/cuau0 -i type"
521*aef80787SVladimir Kondratyev.Pp
522*aef80787SVladimir KondratyevLet the
523*aef80787SVladimir Kondratyev.Nm
524*aef80787SVladimir Kondratyevutility determine the protocol type of the mouse at the serial port
525*aef80787SVladimir Kondratyev.Pa /dev/cuau0 .
526*aef80787SVladimir KondratyevIf successful, the command will print the type, otherwise it will say
527*aef80787SVladimir Kondratyev.Dq Li unknown .
528*aef80787SVladimir Kondratyev.Bd -literal -offset indent
529*aef80787SVladimir Kondratyevmsconvd -p /dev/cuau0
530*aef80787SVladimir Kondratyev.Ed
531*aef80787SVladimir Kondratyev.Pp
532*aef80787SVladimir KondratyevIf the
533*aef80787SVladimir Kondratyev.Nm
534*aef80787SVladimir Kondratyevutility is able to identify the protocol type of the mouse at the specified
535*aef80787SVladimir Kondratyevport automatically, you can start the daemon without the
536*aef80787SVladimir Kondratyev.Fl t
537*aef80787SVladimir Kondratyevoption.
538*aef80787SVladimir Kondratyev.Bd -literal -offset indent
539*aef80787SVladimir Kondratyevmsconvd -p /dev/mouse -t microsoft
540*aef80787SVladimir Kondratyev.Ed
541*aef80787SVladimir Kondratyev.Pp
542*aef80787SVladimir KondratyevStart the mouse daemon on the serial port
543*aef80787SVladimir Kondratyev.Pa /dev/mouse .
544*aef80787SVladimir KondratyevThe protocol type
545*aef80787SVladimir Kondratyev.Ar microsoft
546*aef80787SVladimir Kondratyevis explicitly specified by the
547*aef80787SVladimir Kondratyev.Fl t
548*aef80787SVladimir Kondratyevoption.
549*aef80787SVladimir Kondratyev.Pp
550*aef80787SVladimir KondratyevIf you add
551*aef80787SVladimir Kondratyev.Pp
552*aef80787SVladimir Kondratyev.Dl "ALL ALL = NOPASSWD: /usr/bin/killall -USR1 msconvd"
553*aef80787SVladimir Kondratyev.Pp
554*aef80787SVladimir Kondratyevto your
555*aef80787SVladimir Kondratyev.Pa /usr/local/etc/sudoers
556*aef80787SVladimir Kondratyevfile, and bind
557*aef80787SVladimir Kondratyev.Pp
558*aef80787SVladimir Kondratyev.Dl "killall -USR1 msconvd"
559*aef80787SVladimir Kondratyev.Pp
560*aef80787SVladimir Kondratyevto a key in your window manager, you can suspend mouse events on your laptop if
561*aef80787SVladimir Kondratyevyou keep brushing over the mouse pad while typing.
562*aef80787SVladimir Kondratyev.Sh SEE ALSO
563*aef80787SVladimir Kondratyev.Xr moused 8 ,
564*aef80787SVladimir Kondratyev.Xr kill 1 ,
565*aef80787SVladimir Kondratyev.Xr xset 1 ,
566*aef80787SVladimir Kondratyev.Xr psm 4 ,
567*aef80787SVladimir Kondratyev.Xr screen 4 ,
568*aef80787SVladimir Kondratyev.Xr sysmouse 4 ,
569*aef80787SVladimir Kondratyev.Xr uart 4
570*aef80787SVladimir Kondratyev.Sh STANDARDS
571*aef80787SVladimir KondratyevThe
572*aef80787SVladimir Kondratyev.Nm
573*aef80787SVladimir Kondratyevutility partially supports
574*aef80787SVladimir Kondratyev.Dq Plug and Play External COM Device Specification
575*aef80787SVladimir Kondratyevin order to support PnP serial mice.
576*aef80787SVladimir KondratyevHowever, due to various degrees of conformance to the specification by
577*aef80787SVladimir Kondratyevexisting serial mice, it does not strictly follow the version 1.0 of the
578*aef80787SVladimir Kondratyevstandard.
579*aef80787SVladimir KondratyevEven with this less strict approach,
580*aef80787SVladimir Kondratyevit may not always determine an appropriate protocol type
581*aef80787SVladimir Kondratyevfor the given serial mouse.
582*aef80787SVladimir Kondratyev.Sh HISTORY
583*aef80787SVladimir KondratyevThe
584*aef80787SVladimir Kondratyev.Nm
585*aef80787SVladimir Kondratyevutility first appeared in
586*aef80787SVladimir Kondratyev.Fx 15.0 .
587*aef80787SVladimir KondratyevIt is a cropped-down version of
588*aef80787SVladimir Kondratyev.Fx 14.0
589*aef80787SVladimir Kondratyev.Xr moused 8
590*aef80787SVladimir Kondratyevutility originated back in
591*aef80787SVladimir Kondratyev.Fx 2.2 .
592*aef80787SVladimir Kondratyev.Sh AUTHORS
593*aef80787SVladimir Kondratyev.An -nosplit
594*aef80787SVladimir KondratyevThe
595*aef80787SVladimir Kondratyev.Nm
596*aef80787SVladimir Kondratyevutility is based on
597*aef80787SVladimir Kondratyev.Xr moused 8
598*aef80787SVladimir Kondratyevwritten by
599*aef80787SVladimir Kondratyev.An Michael Smith Aq Mt msmith@FreeBSD.org .
600*aef80787SVladimir KondratyevThis manual page is extracted from
601*aef80787SVladimir Kondratyev.Xr moused 8
602*aef80787SVladimir Kondratyevpage written by
603*aef80787SVladimir Kondratyev.An Mike Pritchard Aq Mt mpp@FreeBSD.org .
604*aef80787SVladimir KondratyevThe command and manual page have since been updated by
605*aef80787SVladimir Kondratyev.An Kazutaka Yokota Aq Mt yokota@FreeBSD.org .
606*aef80787SVladimir Kondratyev.Sh CAVEATS
607*aef80787SVladimir KondratyevMany pad devices behave as if the first (left) button were pressed if
608*aef80787SVladimir Kondratyevthe user
609*aef80787SVladimir Kondratyev.Dq taps
610*aef80787SVladimir Kondratyevthe surface of the pad.
611*aef80787SVladimir KondratyevIn contrast, some ALPS GlidePoint and Interlink VersaPad models
612*aef80787SVladimir Kondratyevtreat the tapping action
613*aef80787SVladimir Kondratyevas fourth button events.
614*aef80787SVladimir KondratyevUse the option
615*aef80787SVladimir Kondratyev.Dq Fl m Li 1=4
616*aef80787SVladimir Kondratyevof
617*aef80787SVladimir Kondratyev.Xr moused 8
618*aef80787SVladimir Kondratyevfor these models
619*aef80787SVladimir Kondratyevto obtain the same effect as the other pad devices.
620