194a804c5SMike Pritchard.\" Copyright (c) 1996 294a804c5SMike Pritchard.\" Mike Pritchard <mpp@FreeBSD.org>. All rights reserved. 394a804c5SMike Pritchard.\" 494a804c5SMike Pritchard.\" Redistribution and use in source and binary forms, with or without 594a804c5SMike Pritchard.\" modification, are permitted provided that the following conditions 694a804c5SMike Pritchard.\" are met: 794a804c5SMike Pritchard.\" 1. Redistributions of source code must retain the above copyright 894a804c5SMike Pritchard.\" notice, this list of conditions and the following disclaimer. 994a804c5SMike Pritchard.\" 2. Redistributions in binary form must reproduce the above copyright 1094a804c5SMike Pritchard.\" notice, this list of conditions and the following disclaimer in the 1194a804c5SMike Pritchard.\" documentation and/or other materials provided with the distribution. 1294a804c5SMike Pritchard.\" 3. All advertising materials mentioning features or use of this software 1394a804c5SMike Pritchard.\" must display the following acknowledgement: 1494a804c5SMike Pritchard.\" This product includes software developed by Mike Pritchard. 1594a804c5SMike Pritchard.\" 4. Neither the name of the author nor the names of its contributors 1694a804c5SMike Pritchard.\" may be used to endorse or promote products derived from this software 1794a804c5SMike Pritchard.\" without specific prior written permission. 1894a804c5SMike Pritchard.\" 1994a804c5SMike Pritchard.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 2094a804c5SMike Pritchard.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2194a804c5SMike Pritchard.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2294a804c5SMike Pritchard.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2394a804c5SMike Pritchard.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2494a804c5SMike Pritchard.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2594a804c5SMike Pritchard.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2694a804c5SMike Pritchard.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2794a804c5SMike Pritchard.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2894a804c5SMike Pritchard.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2994a804c5SMike Pritchard.\" SUCH DAMAGE. 3094a804c5SMike Pritchard.\" 3107e1d533SPhilippe Charnier.\" $Id: moused.8,v 1.5 1997/07/27 23:10:33 wosch Exp $ 325cf470d6SWolfram Schneider.\" 335f436cfbSKazutaka YOKOTA.Dd December 3, 1997 3494a804c5SMike Pritchard.Dt MOUSED 8 3594a804c5SMike Pritchard.Os FreeBSD 3694a804c5SMike Pritchard.Sh NAME 3794a804c5SMike Pritchard.Nm moused 385f436cfbSKazutaka YOKOTA.Nd pass mouse data to the console driver 3994a804c5SMike Pritchard.Sh SYNOPSIS 4094a804c5SMike Pritchard.Nm 415f436cfbSKazutaka YOKOTA.Op Fl 3DPRcdfs 425f436cfbSKazutaka YOKOTA.Op Fl F Ar rate 435f436cfbSKazutaka YOKOTA.Op Fl r Ar resolution 4494a804c5SMike Pritchard.Op Fl S Ar baudrate 455f436cfbSKazutaka YOKOTA.Op Fl C Ar threshold 465f436cfbSKazutaka YOKOTA.Op Fl m Ar N=M 475f436cfbSKazutaka YOKOTA.Op Fl z Ar target 485f436cfbSKazutaka YOKOTA.Op Fl t Ar mousetype 4994a804c5SMike Pritchard.Fl p Ar port 5094a804c5SMike Pritchard.Pp 515f436cfbSKazutaka YOKOTA.Nm 525f436cfbSKazutaka YOKOTA.Op Fl Pd 535f436cfbSKazutaka YOKOTA.Fl p Ar port 545f436cfbSKazutaka YOKOTA.Fl i Ar info 555f436cfbSKazutaka YOKOTA.Sh DESCRIPTION 565f436cfbSKazutaka YOKOTAThe mouse daemon 575f436cfbSKazutaka YOKOTA.Nm 585f436cfbSKazutaka YOKOTAand the console driver work together to support 595f436cfbSKazutaka YOKOTAmouse operation in the text console and user programs. 605f436cfbSKazutaka YOKOTAThey virtualize the mouse and provide user programs with mouse data 615f436cfbSKazutaka YOKOTAin the standard format 625f436cfbSKazutaka YOKOTA.Pq see Xr sysmouse 4 . 635f436cfbSKazutaka YOKOTA.Pp 645f436cfbSKazutaka YOKOTAThe mouse daemon listens to the specified port for mouse data, 655f436cfbSKazutaka YOKOTAinterprets and then passes it via ioctls to the console driver. 665f436cfbSKazutaka YOKOTAThe mouse daemon 675f436cfbSKazutaka YOKOTAreports translation movement, button press/release 685f436cfbSKazutaka YOKOTAevents and movement of the roller or the wheel if available. 695f436cfbSKazutaka YOKOTAThe roller/wheel movement is reported as ``Z'' axis movement. 705f436cfbSKazutaka YOKOTA.Pp 715f436cfbSKazutaka YOKOTAThe console driver will display the mouse pointer on the screen 725f436cfbSKazutaka YOKOTAand provide cut and paste functions if the mouse pointer is enabled 735f436cfbSKazutaka YOKOTAin the virtual console via 745f436cfbSKazutaka YOKOTA.Xr vidcontrol 4 . 755f436cfbSKazutaka YOKOTAIf 765f436cfbSKazutaka YOKOTA.Xr sysmouse 4 775f436cfbSKazutaka YOKOTAis opened by the user program, the console driver also passes the mouse 785f436cfbSKazutaka YOKOTAdata to the device so that the user program will see it. 795f436cfbSKazutaka YOKOTA.Pp 805f436cfbSKazutaka YOKOTAIf the mouse daemon receives the signal 815f436cfbSKazutaka YOKOTA.Dv SIGHUP , 825f436cfbSKazutaka YOKOTAit will reopen the mouse port and reinitializes itself. Useful if 835f436cfbSKazutaka YOKOTAthe mouse is attached/detached while the system is suspended. 845f436cfbSKazutaka YOKOTA.Pp 855f436cfbSKazutaka YOKOTAThe following options are available: 8694a804c5SMike Pritchard.Bl -tag -width indent 875f436cfbSKazutaka YOKOTA.It Fl 3 885f436cfbSKazutaka YOKOTAEmulate the third (middle) button for 2-button mice. It is emulated 895f436cfbSKazutaka YOKOTAby pressing the left and right physical buttons simultaneously. 905f436cfbSKazutaka YOKOTA.It Fl C Ar threshold 915f436cfbSKazutaka YOKOTASet double click speed as the maximum interval in msec between button clicks. 925f436cfbSKazutaka YOKOTAWithout this option, the default value of 500 msec will be assumed. 935f436cfbSKazutaka YOKOTAThis option will have effect only on the cut and paste operations 945f436cfbSKazutaka YOKOTAin the text mode console. The user program which is reading mouse data 955f436cfbSKazutaka YOKOTAvia 965f436cfbSKazutaka YOKOTA.Xr sysmouse 4 975f436cfbSKazutaka YOKOTAwon't be affected. 9894a804c5SMike Pritchard.It Fl D 9994a804c5SMike PritchardLower DTR on the serial port. 1005f436cfbSKazutaka YOKOTAThis option is valid only if 1015f436cfbSKazutaka YOKOTA.Ar mousesystems 1025f436cfbSKazutaka YOKOTAis selected as the protocol type. 1035f436cfbSKazutaka YOKOTAThe DTR line may need to be dropped for a 3-button mouse 1045f436cfbSKazutaka YOKOTAto operate in the 1055f436cfbSKazutaka YOKOTA.Ar mousesystems 1065f436cfbSKazutaka YOKOTAmode. 1075f436cfbSKazutaka YOKOTA.It Fl F Ar rate 1085f436cfbSKazutaka YOKOTASet the report rate (reports/sec) of the device if supported. 1095f436cfbSKazutaka YOKOTA.It Fl P 1105f436cfbSKazutaka YOKOTADo not start the Plug and Play COM device enumeration procedure 1115f436cfbSKazutaka YOKOTAwhen identifying the serial mouse. 1125f436cfbSKazutaka YOKOTAIf this option is given together with the 1135f436cfbSKazutaka YOKOTA.Fl i 1145f436cfbSKazutaka YOKOTAoption, the 1155f436cfbSKazutaka YOKOTA.Nm 1165f436cfbSKazutaka YOKOTAcommand won't be able to print userful information for the serial mouse. 11794a804c5SMike Pritchard.It Fl R 11894a804c5SMike PritchardLower RTS on the serial port. 1195f436cfbSKazutaka YOKOTAThis option is valid only if 1205f436cfbSKazutaka YOKOTA.Ar mousesystems 1215f436cfbSKazutaka YOKOTAis selected as the protocol type by the 1225f436cfbSKazutaka YOKOTA.Fl t 1235f436cfbSKazutaka YOKOTAoption below. It is often used with the 1245f436cfbSKazutaka YOKOTA.Fl D 1255f436cfbSKazutaka YOKOTAoption above. Both RTS and DTR lines may need to be dropped for 1265f436cfbSKazutaka YOKOTAa 3-button mouse to operate in the 1275f436cfbSKazutaka YOKOTA.Ar mousesystems 1285f436cfbSKazutaka YOKOTAmode. 12994a804c5SMike Pritchard.It Fl S Ar baudrate 13094a804c5SMike PritchardSelect the baudrate for the serial port (1200 to 9600). 1315f436cfbSKazutaka YOKOTANot all serial mice support this option. 13294a804c5SMike Pritchard.It Fl c 1335f436cfbSKazutaka YOKOTASome mice report middle button down events 1345f436cfbSKazutaka YOKOTAas if the left and right buttons are pressed. This option handles this. 13594a804c5SMike Pritchard.It Fl d 13694a804c5SMike PritchardEnable debugging messages. 13794a804c5SMike Pritchard.It Fl f 13894a804c5SMike PritchardDo not become a daemon and instead run as a foreground process. 1395f436cfbSKazutaka YOKOTAUseful for testing and debugging. 1405f436cfbSKazutaka YOKOTA.It Fl i Ar info 1415f436cfbSKazutaka YOKOTAPrint specified information and quit. Available pieces of 1425f436cfbSKazutaka YOKOTAinformation are: 1435f436cfbSKazutaka YOKOTA.Pp 1445f436cfbSKazutaka YOKOTA.Bl -tag -compact -width modelxxx 1455f436cfbSKazutaka YOKOTA.It Ar port 1465f436cfbSKazutaka YOKOTAPort (device file) name, i.e. 1475f436cfbSKazutaka YOKOTA.Pa /dev/cuaa0 , 1485f436cfbSKazutaka YOKOTA.Pa /dev/mse0 1495f436cfbSKazutaka YOKOTAand 1505f436cfbSKazutaka YOKOTA.Pa /dev/psm0. 1515f436cfbSKazutaka YOKOTA.It Ar if 1525f436cfbSKazutaka YOKOTAInterface type: serial, bus, inport or ps/2. 1535f436cfbSKazutaka YOKOTA.It Ar type 1545f436cfbSKazutaka YOKOTAProtocol type. It is one of the types listed under the 1555f436cfbSKazutaka YOKOTA.Fl t 1565f436cfbSKazutaka YOKOTAoption below or 1575f436cfbSKazutaka YOKOTA.Ar sysmouse 1585f436cfbSKazutaka YOKOTAif the driver supports the 1595f436cfbSKazutaka YOKOTA.Ar sysmouse 1605f436cfbSKazutaka YOKOTAdata format standard. 1615f436cfbSKazutaka YOKOTA.It Ar model 1625f436cfbSKazutaka YOKOTAMouse model. The 1635f436cfbSKazutaka YOKOTA.Nm 1645f436cfbSKazutaka YOKOTAcommand may not always be able to identify the model. 1655f436cfbSKazutaka YOKOTA.It Ar all 1665f436cfbSKazutaka YOKOTAAll of the above items. Print port, interface, type and model in this order 1675f436cfbSKazutaka YOKOTAin one line. 1685f436cfbSKazutaka YOKOTA.El 1695f436cfbSKazutaka YOKOTA.Pp 1705f436cfbSKazutaka YOKOTAIf the 1715f436cfbSKazutaka YOKOTA.Nm 1725f436cfbSKazutaka YOKOTAcommand cannot determine the requested information, it prints ``unknown'' 1735f436cfbSKazutaka YOKOTAor ``generic''. 1745f436cfbSKazutaka YOKOTA.It Fl m Ar N=M 1755f436cfbSKazutaka YOKOTAAssign the physical button 1765f436cfbSKazutaka YOKOTA.Ar M 1775f436cfbSKazutaka YOKOTAto the logical button 1785f436cfbSKazutaka YOKOTA.Ar N. 1795f436cfbSKazutaka YOKOTAYou may specify as many instances of this option as you like. 1805f436cfbSKazutaka YOKOTAMore than one physical button may be assigned to a logical button at the 1815f436cfbSKazutaka YOKOTAsame time. In this case the logical button will be down, 1825f436cfbSKazutaka YOKOTAif either of the assigned physical buttons is held down. 1835f436cfbSKazutaka YOKOTADo not put space around `='. 18494a804c5SMike Pritchard.It Fl p Ar port 18594a804c5SMike PritchardUse 18694a804c5SMike Pritchard.Ar port 1875f436cfbSKazutaka YOKOTAto communicate with the mouse. 1885f436cfbSKazutaka YOKOTA.It Fl r Ar resolution 1895f436cfbSKazutaka YOKOTASet the resolution of the device; in Dots Per Inch, or 1905f436cfbSKazutaka YOKOTA.Ar low , 1915f436cfbSKazutaka YOKOTA.Ar medium-low , 1925f436cfbSKazutaka YOKOTA.Ar medium-high 1935f436cfbSKazutaka YOKOTAor 1945f436cfbSKazutaka YOKOTA.Ar high . 1955f436cfbSKazutaka YOKOTAThis option may not be supported by all the device. 19694a804c5SMike Pritchard.It Fl s 19794a804c5SMike PritchardSelect a baudrate of 9600 for the serial line. 1985f436cfbSKazutaka YOKOTANot all serial mice support this option. 1995f436cfbSKazutaka YOKOTA.It Fl t Ar type 2005f436cfbSKazutaka YOKOTASpecify the protocol type of mouse attached to the port. Valid types are 2015f436cfbSKazutaka YOKOTAlisted below. 20294a804c5SMike Pritchard.Pp 2035f436cfbSKazutaka YOKOTAFor the serial mouse: 20494a804c5SMike Pritchard.Bl -tag -compact -width mousesystemsxxx 2055f436cfbSKazutaka YOKOTA.It Ar microsoft 2065f436cfbSKazutaka YOKOTAMicrosoft serial mouse protocol. Most 2-button serial mice use this protocol. 2075f436cfbSKazutaka YOKOTA.It Ar intellimouse 2085f436cfbSKazutaka YOKOTAMicrosoft IntelliMouse protocol. Genius NetMouse, ASCII Mie Mouse, 2095f436cfbSKazutaka YOKOTALogitech MouseMan+ and FirstMouse+ use this protocol too. 2105f436cfbSKazutaka YOKOTAOther mice with a roller/wheel may be compatible with this protocol. 2115f436cfbSKazutaka YOKOTA.It Ar mousesystems 2125f436cfbSKazutaka YOKOTAMouseSystems 5-byte protocol. 3-button mice may use this protocol. 2135f436cfbSKazutaka YOKOTA.It Ar mmseries 2145f436cfbSKazutaka YOKOTAMM Series mouse protocol. 2155f436cfbSKazutaka YOKOTA.It Ar logitech 2165f436cfbSKazutaka YOKOTALogitech mouse protocol. Note that this is for old Logitech models. 2175f436cfbSKazutaka YOKOTA.Ar mouseman 2185f436cfbSKazutaka YOKOTAor 2195f436cfbSKazutaka YOKOTA.Ar intellimouse 2205f436cfbSKazutaka YOKOTAshould be specified for newer models. 2215f436cfbSKazutaka YOKOTA.It Ar mouseman 2225f436cfbSKazutaka YOKOTALogitech MouseMan and TrackMan protocol. Some 3-button mice may be compatible 2235f436cfbSKazutaka YOKOTAwith this protocol. Note that MouseMan+ and FirstMouse+ use 2245f436cfbSKazutaka YOKOTA.Ar intellimouse 2255f436cfbSKazutaka YOKOTAprotocol rather than this one. 2265f436cfbSKazutaka YOKOTA.It Ar glidepoint 2275f436cfbSKazutaka YOKOTAALPS GlidePoint protocol. 2285f436cfbSKazutaka YOKOTA.It Ar thinkingmouse 2295f436cfbSKazutaka YOKOTAKensington ThinkingMouse protocol. 2305f436cfbSKazutaka YOKOTA.It Ar mmhittab 2315f436cfbSKazutaka YOKOTAHitachi tablet protocol. 23294a804c5SMike Pritchard.El 2335f436cfbSKazutaka YOKOTA.Pp 2345f436cfbSKazutaka YOKOTAFor the bus and InPort mouse: 2355f436cfbSKazutaka YOKOTA.Bl -tag -compact -width mousesystemsxxx 2365f436cfbSKazutaka YOKOTA.It Ar busmouse 2375f436cfbSKazutaka YOKOTAThis is the only protocol type available for 2385f436cfbSKazutaka YOKOTAthe bus and InPort mouse and should be specified for any bus mice 2395f436cfbSKazutaka YOKOTAand InPort mice, regardless of the brand. 2405f436cfbSKazutaka YOKOTA.El 2415f436cfbSKazutaka YOKOTA.Pp 2425f436cfbSKazutaka YOKOTAFor the PS/2 mouse: 2435f436cfbSKazutaka YOKOTA.Bl -tag -compact -width mousesystemsxxx 2445f436cfbSKazutaka YOKOTA.It Ar ps/2 2455f436cfbSKazutaka YOKOTAThis is the only protocol type available for the PS/2 mouse 2465f436cfbSKazutaka YOKOTAand should be specified for any PS/2 mice, regardless of the brand. 2475f436cfbSKazutaka YOKOTA.El 2485f436cfbSKazutaka YOKOTA.It Fl z Ar target 2495f436cfbSKazutaka YOKOTAMap Z axis (roller/wheel) movement to another axis or to virtual buttons. 2505f436cfbSKazutaka YOKOTAValid 2515f436cfbSKazutaka YOKOTA.Ar target 2525f436cfbSKazutaka YOKOTAmaybe: 2535f436cfbSKazutaka YOKOTA.Bl -tag -compact -width x__ 2545f436cfbSKazutaka YOKOTA.It Ar x 2555f436cfbSKazutaka YOKOTA.It Ar y 2565f436cfbSKazutaka YOKOTAX or Y axis movement will be reported when the Z axis movement is detected. 2575f436cfbSKazutaka YOKOTA.It Ar N 2585f436cfbSKazutaka YOKOTAReport the virtual buttons 2595f436cfbSKazutaka YOKOTA.Ar N 2605f436cfbSKazutaka YOKOTAand 2615f436cfbSKazutaka YOKOTA.Ar N+1 2625f436cfbSKazutaka YOKOTAdown events respectively when negative and positive Z axis movement 2635f436cfbSKazutaka YOKOTAis detected. There doesn't need to be physical buttons 2645f436cfbSKazutaka YOKOTA.Ar N 2655f436cfbSKazutaka YOKOTAand 2665f436cfbSKazutaka YOKOTA.Ar N+1 . 2675f436cfbSKazutaka YOKOTANote that mapping to logical buttons is carried out after mapping 2685f436cfbSKazutaka YOKOTAfrom the Z axis movement to the virtual buttons is done. 2695f436cfbSKazutaka YOKOTA.El 2705f436cfbSKazutaka YOKOTA.El 2715f436cfbSKazutaka YOKOTA.Ss Configureing Mouse Daemon 2725f436cfbSKazutaka YOKOTAThe first thing you need to know is the interface type 2735f436cfbSKazutaka YOKOTAof the mouse you are going to use. 2745f436cfbSKazutaka YOKOTAIt can be determined by looking at the connector of the mouse. 2755f436cfbSKazutaka YOKOTAThe serial mouse has a D-Sub female 9- or 25-pin connector. 2765f436cfbSKazutaka YOKOTAThe bus and InPort mice have either a D-Sub male 9-pin connector 2775f436cfbSKazutaka YOKOTAor a round DIN 9-pin connector. 2785f436cfbSKazutaka YOKOTAThe PS/2 mouse is equipped with a small, round DIN 6-pin connector. 2795f436cfbSKazutaka YOKOTASome mice come with adapters with which the connector can 2805f436cfbSKazutaka YOKOTAbe converted to another. If you are to use such an adapter, 2815f436cfbSKazutaka YOKOTAremember the connector at the very end of the mouse/adapter pair is 2825f436cfbSKazutaka YOKOTAwhat matters. 2835f436cfbSKazutaka YOKOTA.Pp 2845f436cfbSKazutaka YOKOTAThe next thing to decide is a port to use for the given interface. 2855f436cfbSKazutaka YOKOTAFor the bus, InPort and PS/2 mice, there is little choice: 2865f436cfbSKazutaka YOKOTAthe bus and InPort mice always use 2875f436cfbSKazutaka YOKOTA.Pa /dev/mse0, 2885f436cfbSKazutaka YOKOTAand the PS/2 mouse is always at 2895f436cfbSKazutaka YOKOTA.Pa /dev/psm0. 2905f436cfbSKazutaka YOKOTAThere may be more than one serial port to which the serial 2915f436cfbSKazutaka YOKOTAmouse can be attached. Many people often assign the first, built-in 2925f436cfbSKazutaka YOKOTAserial port 2935f436cfbSKazutaka YOKOTA.Pa /dev/cuaa0 2945f436cfbSKazutaka YOKOTAto the mouse. 2955f436cfbSKazutaka YOKOTAYou may want to create a symbolic link 2965f436cfbSKazutaka YOKOTA.Pa /dev/mouse 2975f436cfbSKazutaka YOKOTApointing to the real port to which the mouse is connected, so that you 2985f436cfbSKazutaka YOKOTAcan easily distinguish which is your ``mouse'' port later. 2995f436cfbSKazutaka YOKOTA.Pp 3005f436cfbSKazutaka YOKOTAThe next step is to guess the appropriate protocol type for the mouse. 3015f436cfbSKazutaka YOKOTAThe 3025f436cfbSKazutaka YOKOTA.Nm 3035f436cfbSKazutaka YOKOTAcommand may be able to automatically determine the protocol type. 3045f436cfbSKazutaka YOKOTARun the 3055f436cfbSKazutaka YOKOTA.Nm 3065f436cfbSKazutaka YOKOTAcommand with the 3075f436cfbSKazutaka YOKOTA.Fl i 3085f436cfbSKazutaka YOKOTAoption and see what it says. If the command can identify 3095f436cfbSKazutaka YOKOTAthe protocol type, no further investigation is necessary on your part. 3105f436cfbSKazutaka YOKOTAYou may start the daemon without explicitly specifying a protocol type 3115f436cfbSKazutaka YOKOTA.Pq see Sx EXAMPLE . 3125f436cfbSKazutaka YOKOTA.Pp 3135f436cfbSKazutaka YOKOTAThe command may print 3145f436cfbSKazutaka YOKOTA.Ar sysmouse 3155f436cfbSKazutaka YOKOTAif the mouse driver supports this protocol type. 3165f436cfbSKazutaka YOKOTA.Pp 3175f436cfbSKazutaka YOKOTANote that the 3185f436cfbSKazutaka YOKOTA.Dv type 3195f436cfbSKazutaka YOKOTAand 3205f436cfbSKazutaka YOKOTA.Dv model 3215f436cfbSKazutaka YOKOTAprinted by the 3225f436cfbSKazutaka YOKOTA.Fl i 3235f436cfbSKazutaka YOKOTAoption do not necessarily match the product name of the pointing device 3245f436cfbSKazutaka YOKOTAin question, but they may give the name of the device with which it is 3255f436cfbSKazutaka YOKOTAcompatible. 3265f436cfbSKazutaka YOKOTA.Pp 3275f436cfbSKazutaka YOKOTAIf the 3285f436cfbSKazutaka YOKOTA.Fl i 3295f436cfbSKazutaka YOKOTAoption yields nothing, you need to specify a protocol type to the 3305f436cfbSKazutaka YOKOTA.Nm 3315f436cfbSKazutaka YOKOTAcommand by the 3325f436cfbSKazutaka YOKOTA.Fl t 3335f436cfbSKazutaka YOKOTAoption. You have to make a guess and try. 3345f436cfbSKazutaka YOKOTAThere is rule of thumb: 3355f436cfbSKazutaka YOKOTA.Pp 3365f436cfbSKazutaka YOKOTA.Bl -tag -compact -width 1.X 3375f436cfbSKazutaka YOKOTA.It 1. 3385f436cfbSKazutaka YOKOTAThe bus and InPort mice always use 3395f436cfbSKazutaka YOKOTA.Ar busmouse 3405f436cfbSKazutaka YOKOTAprotocol regardless of the brand of the mouse. 3415f436cfbSKazutaka YOKOTA.It 2. 3425f436cfbSKazutaka YOKOTAThe 3435f436cfbSKazutaka YOKOTA.Ar ps/2 3445f436cfbSKazutaka YOKOTAprotocol should always be specified for the PS/2 mouse 3455f436cfbSKazutaka YOKOTAregardless of the brand of the mouse. 3465f436cfbSKazutaka YOKOTA.It 3. 3475f436cfbSKazutaka YOKOTAMost 2-button serial mice support the 3485f436cfbSKazutaka YOKOTA.Ar microsoft 3495f436cfbSKazutaka YOKOTAprotocol. 3505f436cfbSKazutaka YOKOTA.It 4. 3515f436cfbSKazutaka YOKOTA3-button serial mice may work with the 3525f436cfbSKazutaka YOKOTA.Ar mousesystems 3535f436cfbSKazutaka YOKOTAprotocol. If it doesn't, it may work with the 3545f436cfbSKazutaka YOKOTA.Ar microsoft 3555f436cfbSKazutaka YOKOTAprotocol although 3565f436cfbSKazutaka YOKOTAthe third (middle) button won't function. 3575f436cfbSKazutaka YOKOTA3-button serial mice may also work with the 3585f436cfbSKazutaka YOKOTA.Ar mouseman 3595f436cfbSKazutaka YOKOTAprotocol under which the third button may function as expected. 3605f436cfbSKazutaka YOKOTA.It 5. 3615f436cfbSKazutaka YOKOTA3-button serial mice may have a small switch to choose between ``MS'' 3625f436cfbSKazutaka YOKOTAand ``PC'', or ``2'' and ``3''. 3635f436cfbSKazutaka YOKOTA``MS'' or ``2'' usually mean the 3645f436cfbSKazutaka YOKOTA.Ar microsoft 3655f436cfbSKazutaka YOKOTAprotocol. 3665f436cfbSKazutaka YOKOTA``PC'' or ``3'' will choose the 3675f436cfbSKazutaka YOKOTA.Ar mousesystems 3685f436cfbSKazutaka YOKOTAprotocol. 3695f436cfbSKazutaka YOKOTA.It 6. 3705f436cfbSKazutaka YOKOTAIf the mouse has a roller or a wheel, it may be compatible with the 3715f436cfbSKazutaka YOKOTA.Ar intellimouse 3725f436cfbSKazutaka YOKOTAprotocol. 3735f436cfbSKazutaka YOKOTA.El 3745f436cfbSKazutaka YOKOTA.Pp 3755f436cfbSKazutaka YOKOTATo test if the selected protocol type is correct for the given mouse, 3765f436cfbSKazutaka YOKOTAenable the mouse pointer in the current virtual console, 3775f436cfbSKazutaka YOKOTA.Pp 3785f436cfbSKazutaka YOKOTA.Dl vidcontrol -m on 3795f436cfbSKazutaka YOKOTA.Pp 3805f436cfbSKazutaka YOKOTAstart the mouse daemon in the foreground mode, 3815f436cfbSKazutaka YOKOTA.Pp 3825f436cfbSKazutaka YOKOTA.Dl moused -f -p Ar _selected_port_ -t Ar _selected_protocol_ 3835f436cfbSKazutaka YOKOTA.Pp 3845f436cfbSKazutaka YOKOTAand see if the mouse pointer travels correctly 3855f436cfbSKazutaka YOKOTAaccording to the mouse movement. Then try cur & paste features by 3865f436cfbSKazutaka YOKOTAclicking the left, right and middle buttons. Type ^C to stop 3875f436cfbSKazutaka YOKOTAthe command. 3885f436cfbSKazutaka YOKOTA.Ss Multiple Mice 3895f436cfbSKazutaka YOKOTAAs many instances of the mouse daemon as the number of mice attached to 3905f436cfbSKazutaka YOKOTAthe system may be run simultaneously; one 3915f436cfbSKazutaka YOKOTAinstance for each mouse. 3925f436cfbSKazutaka YOKOTAThis is useful if the user wants to use the built-in PS/2 pointing device 3935f436cfbSKazutaka YOKOTAof a laptop computer while on the road, but wants to use a serial 3945f436cfbSKazutaka YOKOTAmouse when s/he attaches the system to the docking station in the office. 3955f436cfbSKazutaka YOKOTARun two mouse daemons and tell the application program 3965f436cfbSKazutaka YOKOTA.Pq such as the X Window System 3975f436cfbSKazutaka YOKOTAto use 3985f436cfbSKazutaka YOKOTA.Xr sysmouse , 3995f436cfbSKazutaka YOKOTAthen the application program will always see mouse data from either mice. 4005f436cfbSKazutaka YOKOTAWhen the serial mouse is not attached, the corresponding mouse daemon 4015f436cfbSKazutaka YOKOTAwon't detect any movement or button state change and the application 4025f436cfbSKazutaka YOKOTAprogram will only see mouse data coming from the daemon for the 4035f436cfbSKazutaka YOKOTAPS/2 mouse. In contrast when both mice are attached and both of them 4045f436cfbSKazutaka YOKOTAare moved at the same time in this configuration, 4055f436cfbSKazutaka YOKOTAthe mouse pointer will travel across the screen just as if movement of 4065f436cfbSKazutaka YOKOTAthe mice is combined all together. 4075f436cfbSKazutaka YOKOTA.Sh FILES 4085f436cfbSKazutaka YOKOTA.Bl -tag -width /dev/consolectl -compact 4095f436cfbSKazutaka YOKOTA.It Pa /dev/consolectl 4105f436cfbSKazutaka YOKOTAdevice to control the console 4115f436cfbSKazutaka YOKOTA.It Pa /dev/mse%d 4125f436cfbSKazutaka YOKOTAbus and InPort mouse driver 4135f436cfbSKazutaka YOKOTA.It Pa /dev/psm%d 4145f436cfbSKazutaka YOKOTAPS/2 mouse driver 4155f436cfbSKazutaka YOKOTA.It Pa /dev/sysmouse 4165f436cfbSKazutaka YOKOTAvirtualized mouse driver 4175f436cfbSKazutaka YOKOTA.It Pa /dev/ttyv%d 4185f436cfbSKazutaka YOKOTAvirtual consoles 41994a804c5SMike Pritchard.El 420bf29452fSWolfram Schneider.Sh EXAMPLE 421bf29452fSWolfram Schneider.Pp 4225f436cfbSKazutaka YOKOTA.Dl moused -p /dev/cuaa0 -i type 4235f436cfbSKazutaka YOKOTA.Pp 4245f436cfbSKazutaka YOKOTALet the 4255f436cfbSKazutaka YOKOTA.Nm 4265f436cfbSKazutaka YOKOTAcommand determine the protocol type of the mouse at the serial port 4275f436cfbSKazutaka YOKOTA.Pa /dev/cuaa0. 4285f436cfbSKazutaka YOKOTAIf successful, the command will print the type, otherwise it will say 4295f436cfbSKazutaka YOKOTA``unknown''. 4305f436cfbSKazutaka YOKOTA.Pp 4315f436cfbSKazutaka YOKOTA.Dl moused -p /dev/cuaa0 432bf29452fSWolfram Schneider.Dl vidcontrol -m on 433bf29452fSWolfram Schneider.Pp 4345f436cfbSKazutaka YOKOTAIf the 4355f436cfbSKazutaka YOKOTA.Nm 4365f436cfbSKazutaka YOKOTAcommand is able to identify the protocol type of the mouse at the specified 4375f436cfbSKazutaka YOKOTAport automatically, you can start the daemon without the 4385f436cfbSKazutaka YOKOTA.Fl t 4395f436cfbSKazutaka YOKOTAoption and enable the mouse pointer in the text console as above. 4405f436cfbSKazutaka YOKOTA.Pp 4415f436cfbSKazutaka YOKOTA.Dl moused -p /dev/mouse -t microsoft 4425f436cfbSKazutaka YOKOTA.Dl vidcontrol -m on 4435f436cfbSKazutaka YOKOTA.Pp 4445f436cfbSKazutaka YOKOTAStart the mouse daemon on the serial port 4455f436cfbSKazutaka YOKOTA.Pa /dev/mouse. 4465f436cfbSKazutaka YOKOTAThe protocol type 4475f436cfbSKazutaka YOKOTA.Ar microsoft 4485f436cfbSKazutaka YOKOTAis explicitly specified by the 4495f436cfbSKazutaka YOKOTA.Fl t 4505f436cfbSKazutaka YOKOTAoption. 4515f436cfbSKazutaka YOKOTA.Pp 4525f436cfbSKazutaka YOKOTA.Dl moused -p /dev/mouse -m 1=3 -m 3=1 4535f436cfbSKazutaka YOKOTA.Pp 4545f436cfbSKazutaka YOKOTAAssign the physical button 3 (right button) to the logical button 1 4555f436cfbSKazutaka YOKOTA(logical left) and the physical button 1 (left) to the logical 4565f436cfbSKazutaka YOKOTAbutton 3 (logical right). 4575f436cfbSKazutaka YOKOTAThis will effectively swap the left and right buttons. 4585f436cfbSKazutaka YOKOTA.Pp 4595f436cfbSKazutaka YOKOTA.Dl moused -p /dev/mouse -t intellimouse -z 4 4605f436cfbSKazutaka YOKOTA.Pp 4615f436cfbSKazutaka YOKOTAReport negative Z axis (roller) movement as the button 4 pressed 4625f436cfbSKazutaka YOKOTAand positive Z axis movement as the button 5 pressed. 4635f436cfbSKazutaka YOKOTA.Sh CAVEATS 4645f436cfbSKazutaka YOKOTAThe 4655f436cfbSKazutaka YOKOTA.Nm 4665f436cfbSKazutaka YOKOTAcommand does not currently work with the alternative console driver 4675f436cfbSKazutaka YOKOTA.Xr pcvt 4 . 4685f436cfbSKazutaka YOKOTA.Pp 4695f436cfbSKazutaka YOKOTAMany pad devices behave as if the first (left) button were pressed if 4705f436cfbSKazutaka YOKOTAthe user `taps' the surface of the pad. 4715f436cfbSKazutaka YOKOTAIn contrast, some ALPS GlidePoint pad models treat the tapping action 4725f436cfbSKazutaka YOKOTAas fourth button events. Use the option ``-m 1=4'' for these models 4735f436cfbSKazutaka YOKOTAto obtain the same effect as the other pad devices. 47494a804c5SMike Pritchard.Sh SEE ALSO 4755f436cfbSKazutaka YOKOTA.Xr kill 1 , 4765cf470d6SWolfram Schneider.Xr vidcontrol 1 , 47794a804c5SMike Pritchard.Xr keyboard 4 , 4785f436cfbSKazutaka YOKOTA.Xr mse 4 , 47994a804c5SMike Pritchard.Xr pcvt 4 , 4805f436cfbSKazutaka YOKOTA.Xr psm 4 , 481b7d50183SWolfram Schneider.Xr screen 4 , 482b7d50183SWolfram Schneider.Xr sysmouse 4 4835f436cfbSKazutaka YOKOTA.Sh STANDARD 4845f436cfbSKazutaka YOKOTAThe 4855f436cfbSKazutaka YOKOTA.Nm 4865f436cfbSKazutaka YOKOTAcommand partially supports ``Plag and Play External COM Device Specification'' 4875f436cfbSKazutaka YOKOTAin order to support PnP serial mice. 4885f436cfbSKazutaka YOKOTAHowever, due to various degrees of conformance to the specification by 4895f436cfbSKazutaka YOKOTAexisting serial mice, it does not strictly follow the version 1.0 of the 4905f436cfbSKazutaka YOKOTAstandard. Even with this less strict approach, 4915f436cfbSKazutaka YOKOTAit may not always determine an appropriate protocol type 4925f436cfbSKazutaka YOKOTAfor the given serial mouse. 49394a804c5SMike Pritchard.Sh AUTHORS 49494a804c5SMike PritchardThe 49594a804c5SMike Pritchard.Nm 49607e1d533SPhilippe Charniercommand was written by 49707e1d533SPhilippe Charnier.An Michael Smith . 4985f436cfbSKazutaka YOKOTAThis manual page was written by 49907e1d533SPhilippe Charnier.An Mike Pritchard Aq mpp@FreeBSD.org . 5005f436cfbSKazutaka YOKOTAThe command and the manual page have been updated by 5015f436cfbSKazutaka YOKOTA.An Kazutaka YOKOTA Aq yokota@FreeBSD.org 5025f436cfbSKazutaka YOKOTAsince. 50394a804c5SMike Pritchard.Sh HISTORY 50494a804c5SMike PritchardThe 50507e1d533SPhilippe Charnier.Nm 50694a804c5SMike Pritchardcommand first appeared in 50794a804c5SMike Pritchard.Fx 2.2 . 508