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.\" 3197d92980SPeter Wemm.\" $FreeBSD$ 325cf470d6SWolfram Schneider.\" 3359bd9500SSimon L. B. Nielsen.Dd November 12, 2004 3494a804c5SMike Pritchard.Dt MOUSED 8 35a4c37c81SRuslan Ermilov.Os 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 41efe4cd6aSGeorge C A Reid.Op Fl DPRacdfs 42f82812a2SKazutaka YOKOTA.Op Fl I Ar file 435f436cfbSKazutaka YOKOTA.Op Fl F Ar rate 445f436cfbSKazutaka YOKOTA.Op Fl r Ar resolution 4594a804c5SMike Pritchard.Op Fl S Ar baudrate 462c9b9132SPhilip Paeps.Op Fl VH Op Fl U Ar distance 47efe4cd6aSGeorge C A Reid.Op Fl a Ar X Ns Op , Ns Ar Y 485f436cfbSKazutaka YOKOTA.Op Fl C Ar threshold 495f436cfbSKazutaka YOKOTA.Op Fl m Ar N=M 509fb1d70cSKazutaka YOKOTA.Op Fl w Ar N 515f436cfbSKazutaka YOKOTA.Op Fl z Ar target 525f436cfbSKazutaka YOKOTA.Op Fl t Ar mousetype 5333282bf4SPhilip Paeps.Op Fl l Ar level 54e68b10b3SKazutaka YOKOTA.Op Fl 3 Op Fl E Ar timeout 55d5f2946aSPhilip Paeps.Op Fl T Ar distance Ns Op , Ns Ar time Ns Op , Ns Ar after 5694a804c5SMike Pritchard.Fl p Ar port 5794a804c5SMike Pritchard.Pp 585f436cfbSKazutaka YOKOTA.Nm 595f436cfbSKazutaka YOKOTA.Op Fl Pd 605f436cfbSKazutaka YOKOTA.Fl p Ar port 615f436cfbSKazutaka YOKOTA.Fl i Ar info 625f436cfbSKazutaka YOKOTA.Sh DESCRIPTION 63490d5836SPhilippe CharnierThe 645f436cfbSKazutaka YOKOTA.Nm 65490d5836SPhilippe Charnierutility and the console driver work together to support 665f436cfbSKazutaka YOKOTAmouse operation in the text console and user programs. 675f436cfbSKazutaka YOKOTAThey virtualize the mouse and provide user programs with mouse data 685f436cfbSKazutaka YOKOTAin the standard format 69c4d9468eSRuslan Ermilov(see 70c4d9468eSRuslan Ermilov.Xr sysmouse 4 ) . 715f436cfbSKazutaka YOKOTA.Pp 725f436cfbSKazutaka YOKOTAThe mouse daemon listens to the specified port for mouse data, 735f436cfbSKazutaka YOKOTAinterprets and then passes it via ioctls to the console driver. 745f436cfbSKazutaka YOKOTAThe mouse daemon 755f436cfbSKazutaka YOKOTAreports translation movement, button press/release 765f436cfbSKazutaka YOKOTAevents and movement of the roller or the wheel if available. 7759bd9500SSimon L. B. NielsenThe roller/wheel movement is reported as 7859bd9500SSimon L. B. Nielsen.Dq Z 7959bd9500SSimon L. B. Nielsenaxis movement. 805f436cfbSKazutaka YOKOTA.Pp 815f436cfbSKazutaka YOKOTAThe console driver will display the mouse pointer on the screen 825f436cfbSKazutaka YOKOTAand provide cut and paste functions if the mouse pointer is enabled 835f436cfbSKazutaka YOKOTAin the virtual console via 842f2ac2cbSChris Costello.Xr vidcontrol 1 . 855f436cfbSKazutaka YOKOTAIf 865f436cfbSKazutaka YOKOTA.Xr sysmouse 4 875f436cfbSKazutaka YOKOTAis opened by the user program, the console driver also passes the mouse 885f436cfbSKazutaka YOKOTAdata to the device so that the user program will see it. 895f436cfbSKazutaka YOKOTA.Pp 905f436cfbSKazutaka YOKOTAIf the mouse daemon receives the signal 915f436cfbSKazutaka YOKOTA.Dv SIGHUP , 92bc84aa4bSRuslan Ermilovit will reopen the mouse port and reinitialize itself. 93bc84aa4bSRuslan ErmilovUseful if 945f436cfbSKazutaka YOKOTAthe mouse is attached/detached while the system is suspended. 955f436cfbSKazutaka YOKOTA.Pp 969eac5bb9SPhilip PaepsIf the mouse daemon receives the signal 979eac5bb9SPhilip Paeps.Dv SIGUSR1 , 98bc84aa4bSRuslan Ermilovit will stop passing mouse events. 99bc84aa4bSRuslan ErmilovSending the signal 1009eac5bb9SPhilip Paeps.Dv SIGUSR1 101bc84aa4bSRuslan Ermilovagain will resume passing mouse events. 102bc84aa4bSRuslan ErmilovUseful if your typing on a laptop is 1039eac5bb9SPhilip Paepsinterrupted by accidentally touching the mouse pad. 1049eac5bb9SPhilip Paeps.Pp 1055f436cfbSKazutaka YOKOTAThe following options are available: 10694a804c5SMike Pritchard.Bl -tag -width indent 1075f436cfbSKazutaka YOKOTA.It Fl 3 108f2e366a1SSheldon HearnEmulate the third (middle) button for 2-button mice. 109f2e366a1SSheldon HearnIt is emulated 1105f436cfbSKazutaka YOKOTAby pressing the left and right physical buttons simultaneously. 1115f436cfbSKazutaka YOKOTA.It Fl C Ar threshold 1125f436cfbSKazutaka YOKOTASet double click speed as the maximum interval in msec between button clicks. 1135f436cfbSKazutaka YOKOTAWithout this option, the default value of 500 msec will be assumed. 1145f436cfbSKazutaka YOKOTAThis option will have effect only on the cut and paste operations 115f2e366a1SSheldon Hearnin the text mode console. 116f2e366a1SSheldon HearnThe user program which is reading mouse data 1175f436cfbSKazutaka YOKOTAvia 1185f436cfbSKazutaka YOKOTA.Xr sysmouse 4 119f5c73cbbSKazutaka YOKOTAwill not be affected. 12094a804c5SMike Pritchard.It Fl D 12194a804c5SMike PritchardLower DTR on the serial port. 1225f436cfbSKazutaka YOKOTAThis option is valid only if 1235f436cfbSKazutaka YOKOTA.Ar mousesystems 1245f436cfbSKazutaka YOKOTAis selected as the protocol type. 1255f436cfbSKazutaka YOKOTAThe DTR line may need to be dropped for a 3-button mouse 1265f436cfbSKazutaka YOKOTAto operate in the 1275f436cfbSKazutaka YOKOTA.Ar mousesystems 1285f436cfbSKazutaka YOKOTAmode. 129e68b10b3SKazutaka YOKOTA.It Fl E Ar timeout 130e68b10b3SKazutaka YOKOTAWhen the third button emulation is enabled 131c4d9468eSRuslan Ermilov(see above), 132e68b10b3SKazutaka YOKOTAthe 133e68b10b3SKazutaka YOKOTA.Nm 134490d5836SPhilippe Charnierutility waits 135e68b10b3SKazutaka YOKOTA.Ar timeout 136f5c73cbbSKazutaka YOKOTAmsec at most before deciding whether two buttons are being pressed 137e68b10b3SKazutaka YOKOTAsimultaneously. 1389c9d9993SKazutaka YOKOTAThe default timeout is 100 msec. 1395f436cfbSKazutaka YOKOTA.It Fl F Ar rate 1405f436cfbSKazutaka YOKOTASet the report rate (reports/sec) of the device if supported. 1412c9b9132SPhilip Paeps.It Fl H 1422c9b9132SPhilip PaepsEnable 1432c9b9132SPhilip Paeps.Dq Horizontal Virtual Scrolling . 1442c9b9132SPhilip PaepsWith this option set, holding the middle mouse 1452c9b9132SPhilip Paepsbutton down will cause motion to be interpreted as 1462c9b9132SPhilip Paepshorizontal scrolling. 1472c9b9132SPhilip PaepsUse the 1482c9b9132SPhilip Paeps.Fl U 1492c9b9132SPhilip Paepsoption to set the distance the mouse must move before the scrolling mode is 15078ad5421SRuslan Ermilovactivated. 15178ad5421SRuslan ErmilovThis option may be used with or without the 1522c9b9132SPhilip Paeps.Fl V 1532c9b9132SPhilip Paepsoption. 154f82812a2SKazutaka YOKOTA.It Fl I Ar file 155f82812a2SKazutaka YOKOTAWrite the process id of the 156f82812a2SKazutaka YOKOTA.Nm 157490d5836SPhilippe Charnierutility in the specified file. 158f82812a2SKazutaka YOKOTAWithout this option, the process id will be stored in 159f82812a2SKazutaka YOKOTA.Pa /var/run/moused.pid . 1605f436cfbSKazutaka YOKOTA.It Fl P 1615f436cfbSKazutaka YOKOTADo not start the Plug and Play COM device enumeration procedure 1625f436cfbSKazutaka YOKOTAwhen identifying the serial mouse. 1635f436cfbSKazutaka YOKOTAIf this option is given together with the 1645f436cfbSKazutaka YOKOTA.Fl i 1655f436cfbSKazutaka YOKOTAoption, the 1665f436cfbSKazutaka YOKOTA.Nm 167490d5836SPhilippe Charnierutility will not be able to print useful information for the serial mouse. 16894a804c5SMike Pritchard.It Fl R 16994a804c5SMike PritchardLower RTS on the serial port. 1705f436cfbSKazutaka YOKOTAThis option is valid only if 1715f436cfbSKazutaka YOKOTA.Ar mousesystems 1725f436cfbSKazutaka YOKOTAis selected as the protocol type by the 1735f436cfbSKazutaka YOKOTA.Fl t 174f2e366a1SSheldon Hearnoption below. 175f2e366a1SSheldon HearnIt is often used with the 1765f436cfbSKazutaka YOKOTA.Fl D 177f2e366a1SSheldon Hearnoption above. 178f2e366a1SSheldon HearnBoth RTS and DTR lines may need to be dropped for 1795f436cfbSKazutaka YOKOTAa 3-button mouse to operate in the 1805f436cfbSKazutaka YOKOTA.Ar mousesystems 1815f436cfbSKazutaka YOKOTAmode. 18294a804c5SMike Pritchard.It Fl S Ar baudrate 18394a804c5SMike PritchardSelect the baudrate for the serial port (1200 to 9600). 1845f436cfbSKazutaka YOKOTANot all serial mice support this option. 185d5f2946aSPhilip Paeps.It Fl T Ar distance Ns Op , Ns Ar time Ns Op , Ns Ar after 1868f3d766bSPhilip PaepsTerminate drift. 187d5f2946aSPhilip PaepsUse this option if mouse pointer slowly wanders when mouse is not moved. 188d5f2946aSPhilip PaepsMovements up to 189d5f2946aSPhilip Paeps.Ar distance 190d5f2946aSPhilip Paeps(for example 4) pixels (X+Y) in 191d5f2946aSPhilip Paeps.Ar time 192d5f2946aSPhilip Paepsmsec (default 500) are ignored, except during 193d5f2946aSPhilip Paeps.Ar after 194d5f2946aSPhilip Paepsmsec (default 4000) since last real mouse movement. 1952a669c47SPhilip Paeps.It Fl V 19659bd9500SSimon L. B. NielsenEnable 19759bd9500SSimon L. B. Nielsen.Dq Virtual Scrolling . 19859bd9500SSimon L. B. NielsenWith this option set, holding the middle mouse 19959bd9500SSimon L. B. Nielsenbutton down will cause motion to be interpreted as scrolling. 20059bd9500SSimon L. B. NielsenUse the 2012a669c47SPhilip Paeps.Fl U 2022a669c47SPhilip Paepsoption to set the distance the mouse must move before the scrolling mode is 2032a669c47SPhilip Paepsactivated. 204ba133278SPhilip Paeps.It Fl U Ar distance 205ba133278SPhilip PaepsWhen 206ba133278SPhilip Paeps.Dq Virtual Scrolling 207ba133278SPhilip Paepsis enabled, the 208ba133278SPhilip Paeps.Fl U 209ba133278SPhilip Paepsoption can be used to set the 210ba133278SPhilip Paeps.Ar distance 211ba133278SPhilip Paeps(in pixels) that the mouse must move before the scrolling 212ba133278SPhilip Paepsmode is activated. 213ba133278SPhilip PaepsThe default 214ba133278SPhilip Paeps.Ar distance 215ba133278SPhilip Paepsis 3 pixels. 216efe4cd6aSGeorge C A Reid.It Fl a Ar X Ns Op , Ns Ar Y 217efe4cd6aSGeorge C A ReidAccelerate or decelerate the mouse input. 218efe4cd6aSGeorge C A ReidThis is a linear acceleration only. 219efe4cd6aSGeorge C A ReidValues less than 1.0 slow down movement, values greater than 1.0 speed it 220efe4cd6aSGeorge C A Reidup. 221efe4cd6aSGeorge C A ReidSpecifying only one value sets the acceleration for both axes. 22294a804c5SMike Pritchard.It Fl c 2235f436cfbSKazutaka YOKOTASome mice report middle button down events 224f5c73cbbSKazutaka YOKOTAas if the left and right buttons are being pressed. 225f2e366a1SSheldon HearnThis option handles this. 22694a804c5SMike Pritchard.It Fl d 22794a804c5SMike PritchardEnable debugging messages. 22894a804c5SMike Pritchard.It Fl f 22994a804c5SMike PritchardDo not become a daemon and instead run as a foreground process. 2305f436cfbSKazutaka YOKOTAUseful for testing and debugging. 2315f436cfbSKazutaka YOKOTA.It Fl i Ar info 23207bfccd7SRuslan ErmilovPrint specified information and quit. 23307bfccd7SRuslan ErmilovAvailable pieces of 2345f436cfbSKazutaka YOKOTAinformation are: 2355f436cfbSKazutaka YOKOTA.Pp 2365f436cfbSKazutaka YOKOTA.Bl -tag -compact -width modelxxx 2375f436cfbSKazutaka YOKOTA.It Ar port 23857e4378bSRuslan ErmilovPort (device file) name, i.e.\& 239d0139887SPhilip Paeps.Pa /dev/cuad0 , 2405f436cfbSKazutaka YOKOTA.Pa /dev/mse0 2415f436cfbSKazutaka YOKOTAand 2425f436cfbSKazutaka YOKOTA.Pa /dev/psm0 . 2435f436cfbSKazutaka YOKOTA.It Ar if 2445f436cfbSKazutaka YOKOTAInterface type: serial, bus, inport or ps/2. 2455f436cfbSKazutaka YOKOTA.It Ar type 246f2e366a1SSheldon HearnProtocol type. 247f2e366a1SSheldon HearnIt is one of the types listed under the 2485f436cfbSKazutaka YOKOTA.Fl t 2495f436cfbSKazutaka YOKOTAoption below or 2505f436cfbSKazutaka YOKOTA.Ar sysmouse 2515f436cfbSKazutaka YOKOTAif the driver supports the 2525f436cfbSKazutaka YOKOTA.Ar sysmouse 2535f436cfbSKazutaka YOKOTAdata format standard. 2545f436cfbSKazutaka YOKOTA.It Ar model 25507bfccd7SRuslan ErmilovMouse model. 25607bfccd7SRuslan ErmilovThe 2575f436cfbSKazutaka YOKOTA.Nm 258490d5836SPhilippe Charnierutility may not always be able to identify the model. 2595f436cfbSKazutaka YOKOTA.It Ar all 26007bfccd7SRuslan ErmilovAll of the above items. 26107bfccd7SRuslan ErmilovPrint port, interface, type and model in this order 2625f436cfbSKazutaka YOKOTAin one line. 2635f436cfbSKazutaka YOKOTA.El 2645f436cfbSKazutaka YOKOTA.Pp 2655f436cfbSKazutaka YOKOTAIf the 2665f436cfbSKazutaka YOKOTA.Nm 26759bd9500SSimon L. B. Nielsenutility cannot determine the requested information, it prints 26859bd9500SSimon L. B. Nielsen.Dq Li unknown 26959bd9500SSimon L. B. Nielsenor 27059bd9500SSimon L. B. Nielsen.Dq Li generic . 27133282bf4SPhilip Paeps.It Fl l Ar level 27233282bf4SPhilip PaepsSpecifies at which level 27333282bf4SPhilip Paeps.Nm 27433282bf4SPhilip Paepsshould operate the mouse driver. 27533282bf4SPhilip PaepsRefer to 2761a74e6a1SRuslan Ermilov.Sx Operation Levels 27733282bf4SPhilip Paepsin 27833282bf4SPhilip Paeps.Xr psm 4 27933282bf4SPhilip Paepsfor more information on this. 2805f436cfbSKazutaka YOKOTA.It Fl m Ar N=M 2815f436cfbSKazutaka YOKOTAAssign the physical button 2825f436cfbSKazutaka YOKOTA.Ar M 2835f436cfbSKazutaka YOKOTAto the logical button 2845f436cfbSKazutaka YOKOTA.Ar N . 2855f436cfbSKazutaka YOKOTAYou may specify as many instances of this option as you like. 2865f436cfbSKazutaka YOKOTAMore than one physical button may be assigned to a logical button at the 287f2e366a1SSheldon Hearnsame time. 288f2e366a1SSheldon HearnIn this case the logical button will be down, 2895f436cfbSKazutaka YOKOTAif either of the assigned physical buttons is held down. 29059bd9500SSimon L. B. NielsenDo not put space around 29159bd9500SSimon L. B. Nielsen.Ql = . 29294a804c5SMike Pritchard.It Fl p Ar port 29394a804c5SMike PritchardUse 29494a804c5SMike Pritchard.Ar port 2955f436cfbSKazutaka YOKOTAto communicate with the mouse. 2965f436cfbSKazutaka YOKOTA.It Fl r Ar resolution 2975f436cfbSKazutaka YOKOTASet the resolution of the device; in Dots Per Inch, or 2985f436cfbSKazutaka YOKOTA.Ar low , 2995f436cfbSKazutaka YOKOTA.Ar medium-low , 3005f436cfbSKazutaka YOKOTA.Ar medium-high 3015f436cfbSKazutaka YOKOTAor 3025f436cfbSKazutaka YOKOTA.Ar high . 3035f436cfbSKazutaka YOKOTAThis option may not be supported by all the device. 30494a804c5SMike Pritchard.It Fl s 30594a804c5SMike PritchardSelect a baudrate of 9600 for the serial line. 3065f436cfbSKazutaka YOKOTANot all serial mice support this option. 3075f436cfbSKazutaka YOKOTA.It Fl t Ar type 308f8b013e2SKazutaka YOKOTASpecify the protocol type of the mouse attached to the port. 30930ee7535SKazutaka YOKOTAYou may explicitly specify a type listed below, or use 31030ee7535SKazutaka YOKOTA.Ar auto 31130ee7535SKazutaka YOKOTAto let the 312f8b013e2SKazutaka YOKOTA.Nm 31375c07b90SChristian Bruefferutility automatically select an appropriate protocol for the given 31430ee7535SKazutaka YOKOTAmouse. 31575c07b90SChristian BruefferIf you entirely omit this option in the command line, 31630ee7535SKazutaka YOKOTA.Fl t Ar auto 31730ee7535SKazutaka YOKOTAis assumed. 31830ee7535SKazutaka YOKOTAUnder normal circumstances, 31930ee7535SKazutaka YOKOTAyou need to use this option only if the 32030ee7535SKazutaka YOKOTA.Nm 321490d5836SPhilippe Charnierutility is not able to detect the protocol automatically 32275c07b90SChristian Brueffer(see 323c4d9468eSRuslan Ermilov.Sx "Configuring Mouse Daemon" ) . 324f8b013e2SKazutaka YOKOTA.Pp 3259e65e45bSKazutaka YOKOTANote that if a protocol type is specified with this option, the 32630ee7535SKazutaka YOKOTA.Fl P 32730ee7535SKazutaka YOKOTAoption above is implied and Plug and Play COM device enumeration 32830ee7535SKazutaka YOKOTAprocedure will be disabled. 32930ee7535SKazutaka YOKOTA.Pp 3309e65e45bSKazutaka YOKOTAAlso note that if your mouse is attached to the PS/2 mouse port, you should 3319e65e45bSKazutaka YOKOTAalways choose 3329e65e45bSKazutaka YOKOTA.Ar auto 3339e65e45bSKazutaka YOKOTAor 3349e65e45bSKazutaka YOKOTA.Ar ps/2 , 33507bfccd7SRuslan Ermilovregardless of the brand and model of the mouse. 33607bfccd7SRuslan ErmilovLikewise, if your 3379e65e45bSKazutaka YOKOTAmouse is attached to the bus mouse port, choose 3389e65e45bSKazutaka YOKOTA.Ar auto 3399e65e45bSKazutaka YOKOTAor 3409e65e45bSKazutaka YOKOTA.Ar busmouse . 3419e65e45bSKazutaka YOKOTASerial mouse protocols will not work with these mice. 3429e65e45bSKazutaka YOKOTA.Pp 343045c8108SKazutaka YOKOTAFor the USB mouse, the protocol must be 344045c8108SKazutaka YOKOTA.Ar auto . 345045c8108SKazutaka YOKOTANo other protocol will work with the USB mouse. 346045c8108SKazutaka YOKOTA.Pp 347f8b013e2SKazutaka YOKOTAValid types for this option are 3485f436cfbSKazutaka YOKOTAlisted below. 34994a804c5SMike Pritchard.Pp 3505f436cfbSKazutaka YOKOTAFor the serial mouse: 35194a804c5SMike Pritchard.Bl -tag -compact -width mousesystemsxxx 3525f436cfbSKazutaka YOKOTA.It Ar microsoft 35307bfccd7SRuslan ErmilovMicrosoft serial mouse protocol. 35407bfccd7SRuslan ErmilovMost 2-button serial mice use this protocol. 3555f436cfbSKazutaka YOKOTA.It Ar intellimouse 35607bfccd7SRuslan ErmilovMicrosoft IntelliMouse protocol. 35707bfccd7SRuslan ErmilovGenius NetMouse, 358490d5836SPhilippe Charnier.Tn ASCII 359490d5836SPhilippe CharnierMie Mouse, 3605f436cfbSKazutaka YOKOTALogitech MouseMan+ and FirstMouse+ use this protocol too. 3615f436cfbSKazutaka YOKOTAOther mice with a roller/wheel may be compatible with this protocol. 3625f436cfbSKazutaka YOKOTA.It Ar mousesystems 36307bfccd7SRuslan ErmilovMouseSystems 5-byte protocol. 36407bfccd7SRuslan Ermilov3-button mice may use this protocol. 3655f436cfbSKazutaka YOKOTA.It Ar mmseries 3665f436cfbSKazutaka YOKOTAMM Series mouse protocol. 3675f436cfbSKazutaka YOKOTA.It Ar logitech 36807bfccd7SRuslan ErmilovLogitech mouse protocol. 36907bfccd7SRuslan ErmilovNote that this is for old Logitech models. 3705f436cfbSKazutaka YOKOTA.Ar mouseman 3715f436cfbSKazutaka YOKOTAor 3725f436cfbSKazutaka YOKOTA.Ar intellimouse 3735f436cfbSKazutaka YOKOTAshould be specified for newer models. 3745f436cfbSKazutaka YOKOTA.It Ar mouseman 37507bfccd7SRuslan ErmilovLogitech MouseMan and TrackMan protocol. 37607bfccd7SRuslan ErmilovSome 3-button mice may be compatible 37707bfccd7SRuslan Ermilovwith this protocol. 37807bfccd7SRuslan ErmilovNote that MouseMan+ and FirstMouse+ use 3795f436cfbSKazutaka YOKOTA.Ar intellimouse 3805f436cfbSKazutaka YOKOTAprotocol rather than this one. 3815f436cfbSKazutaka YOKOTA.It Ar glidepoint 3825f436cfbSKazutaka YOKOTAALPS GlidePoint protocol. 3835f436cfbSKazutaka YOKOTA.It Ar thinkingmouse 3845f436cfbSKazutaka YOKOTAKensington ThinkingMouse protocol. 385929cbbf2SDoug White.It Ar mmhitab 3865f436cfbSKazutaka YOKOTAHitachi tablet protocol. 38767978692SAmancio Hasty.It Ar x10mouseremote 38867978692SAmancio HastyX10 MouseRemote. 3891b11ca6cSKazutaka YOKOTA.It Ar kidspad 3901b11ca6cSKazutaka YOKOTAGenius Kidspad and Easypad protocol. 3912e09fb67SKazutaka YOKOTA.It Ar versapad 3922e09fb67SKazutaka YOKOTAInterlink VersaPad protocol. 39394a804c5SMike Pritchard.El 394ce99e877SMatthew N. Dodd.It Ar gtco_digipad 395ce99e877SMatthew N. DoddGTCO Digipad protocol. 3965f436cfbSKazutaka YOKOTA.Pp 3975f436cfbSKazutaka YOKOTAFor the bus and InPort mouse: 3985f436cfbSKazutaka YOKOTA.Bl -tag -compact -width mousesystemsxxx 3995f436cfbSKazutaka YOKOTA.It Ar busmouse 4005f436cfbSKazutaka YOKOTAThis is the only protocol type available for 4015f436cfbSKazutaka YOKOTAthe bus and InPort mouse and should be specified for any bus mice 4025f436cfbSKazutaka YOKOTAand InPort mice, regardless of the brand. 4035f436cfbSKazutaka YOKOTA.El 4045f436cfbSKazutaka YOKOTA.Pp 4055f436cfbSKazutaka YOKOTAFor the PS/2 mouse: 4065f436cfbSKazutaka YOKOTA.Bl -tag -compact -width mousesystemsxxx 4075f436cfbSKazutaka YOKOTA.It Ar ps/2 4085f436cfbSKazutaka YOKOTAThis is the only protocol type available for the PS/2 mouse 4095f436cfbSKazutaka YOKOTAand should be specified for any PS/2 mice, regardless of the brand. 4105f436cfbSKazutaka YOKOTA.El 411045c8108SKazutaka YOKOTA.Pp 412045c8108SKazutaka YOKOTAFor the USB mouse, 413045c8108SKazutaka YOKOTA.Ar auto 414045c8108SKazutaka YOKOTAis the only protocol type available for the USB mouse 415045c8108SKazutaka YOKOTAand should be specified for any USB mice, regardless of the brand. 4169fb1d70cSKazutaka YOKOTA.It Fl w Ar N 4179fb1d70cSKazutaka YOKOTAMake the physical button 4189fb1d70cSKazutaka YOKOTA.Ar N 4199fb1d70cSKazutaka YOKOTAact as the wheel mode button. 4209fb1d70cSKazutaka YOKOTAWhile this button is pressed, X and Y axis movement is reported to be zero 4219fb1d70cSKazutaka YOKOTAand the Y axis movement is mapped to Z axis. 4229fb1d70cSKazutaka YOKOTAYou may further map the Z axis movement to virtual buttons by the 4239fb1d70cSKazutaka YOKOTA.Fl z 4249fb1d70cSKazutaka YOKOTAoption below. 4255f436cfbSKazutaka YOKOTA.It Fl z Ar target 4265f436cfbSKazutaka YOKOTAMap Z axis (roller/wheel) movement to another axis or to virtual buttons. 4275f436cfbSKazutaka YOKOTAValid 4285f436cfbSKazutaka YOKOTA.Ar target 4295f436cfbSKazutaka YOKOTAmaybe: 4305f436cfbSKazutaka YOKOTA.Bl -tag -compact -width x__ 4315f436cfbSKazutaka YOKOTA.It Ar x 4325f436cfbSKazutaka YOKOTA.It Ar y 4335f436cfbSKazutaka YOKOTAX or Y axis movement will be reported when the Z axis movement is detected. 4345f436cfbSKazutaka YOKOTA.It Ar N 435f5c73cbbSKazutaka YOKOTAReport down events for the virtual buttons 4365f436cfbSKazutaka YOKOTA.Ar N 4375f436cfbSKazutaka YOKOTAand 4385f436cfbSKazutaka YOKOTA.Ar N+1 439f5c73cbbSKazutaka YOKOTArespectively when negative and positive Z axis movement 440f2e366a1SSheldon Hearnis detected. 441f5c73cbbSKazutaka YOKOTAThere do not need to be physical buttons 4425f436cfbSKazutaka YOKOTA.Ar N 4435f436cfbSKazutaka YOKOTAand 4445f436cfbSKazutaka YOKOTA.Ar N+1 . 4455f436cfbSKazutaka YOKOTANote that mapping to logical buttons is carried out after mapping 4465f436cfbSKazutaka YOKOTAfrom the Z axis movement to the virtual buttons is done. 447e68b10b3SKazutaka YOKOTA.It Ar N1 N2 448f5c73cbbSKazutaka YOKOTAReport down events for the virtual buttons 449e68b10b3SKazutaka YOKOTA.Ar N1 450e68b10b3SKazutaka YOKOTAand 451e68b10b3SKazutaka YOKOTA.Ar N2 452f5c73cbbSKazutaka YOKOTArespectively when negative and positive Z axis movement 453e68b10b3SKazutaka YOKOTAis detected. 454e68b10b3SKazutaka YOKOTA.It Ar N1 N2 N3 N4 455e68b10b3SKazutaka YOKOTAThis is useful for the mouse with two wheels of which 456e68b10b3SKazutaka YOKOTAthe second wheel is used to generate horizontal scroll action, 457e68b10b3SKazutaka YOKOTAand for the mouse which has a knob or a stick which can detect 458e68b10b3SKazutaka YOKOTAthe horizontal force applied by the user. 459e68b10b3SKazutaka YOKOTA.Pp 460e68b10b3SKazutaka YOKOTAThe motion of the second wheel will be mapped to the buttons 461e68b10b3SKazutaka YOKOTA.Ar N3 , 462e68b10b3SKazutaka YOKOTAfor the negative direction, and 463e68b10b3SKazutaka YOKOTA.Ar N4 , 464e68b10b3SKazutaka YOKOTAfor the positive direction. 465e68b10b3SKazutaka YOKOTAIf the buttons 466e68b10b3SKazutaka YOKOTA.Ar N3 467e68b10b3SKazutaka YOKOTAand 468e68b10b3SKazutaka YOKOTA.Ar N4 469f5c73cbbSKazutaka YOKOTAactually exist in this mouse, their actions will not be detected. 470e68b10b3SKazutaka YOKOTA.Pp 471e68b10b3SKazutaka YOKOTANote that horizontal movement or second roller/wheel movement may not 472e68b10b3SKazutaka YOKOTAalways be detected, 473e68b10b3SKazutaka YOKOTAbecause there appears to be no accepted standard as to how it is encoded. 474e68b10b3SKazutaka YOKOTA.Pp 47575c07b90SChristian BruefferNote also that some mice think left is the negative horizontal direction; 476e68b10b3SKazutaka YOKOTAothers may think otherwise. 477e68b10b3SKazutaka YOKOTAMoreover, there are some mice whose two wheels are both mounted vertically, 478e68b10b3SKazutaka YOKOTAand the direction of the second vertical wheel does not match the 47975c07b90SChristian Bruefferfirst one. 4805f436cfbSKazutaka YOKOTA.El 4815f436cfbSKazutaka YOKOTA.El 482f8b013e2SKazutaka YOKOTA.Ss Configuring Mouse Daemon 4835f436cfbSKazutaka YOKOTAThe first thing you need to know is the interface type 4845f436cfbSKazutaka YOKOTAof the mouse you are going to use. 4855f436cfbSKazutaka YOKOTAIt can be determined by looking at the connector of the mouse. 4865f436cfbSKazutaka YOKOTAThe serial mouse has a D-Sub female 9- or 25-pin connector. 4875f436cfbSKazutaka YOKOTAThe bus and InPort mice have either a D-Sub male 9-pin connector 4885f436cfbSKazutaka YOKOTAor a round DIN 9-pin connector. 4895f436cfbSKazutaka YOKOTAThe PS/2 mouse is equipped with a small, round DIN 6-pin connector. 4905f436cfbSKazutaka YOKOTASome mice come with adapters with which the connector can 49107bfccd7SRuslan Ermilovbe converted to another. 49207bfccd7SRuslan ErmilovIf you are to use such an adapter, 4935f436cfbSKazutaka YOKOTAremember the connector at the very end of the mouse/adapter pair is 4945f436cfbSKazutaka YOKOTAwhat matters. 495045c8108SKazutaka YOKOTAThe USB mouse has a flat rectangular connector. 4965f436cfbSKazutaka YOKOTA.Pp 4975f436cfbSKazutaka YOKOTAThe next thing to decide is a port to use for the given interface. 4985f436cfbSKazutaka YOKOTAFor the bus, InPort and PS/2 mice, there is little choice: 4995f436cfbSKazutaka YOKOTAthe bus and InPort mice always use 5005f436cfbSKazutaka YOKOTA.Pa /dev/mse0 , 5015f436cfbSKazutaka YOKOTAand the PS/2 mouse is always at 5025f436cfbSKazutaka YOKOTA.Pa /dev/psm0 . 5035f436cfbSKazutaka YOKOTAThere may be more than one serial port to which the serial 50407bfccd7SRuslan Ermilovmouse can be attached. 50507bfccd7SRuslan ErmilovMany people often assign the first, built-in 5065f436cfbSKazutaka YOKOTAserial port 507d0139887SPhilip Paeps.Pa /dev/cuad0 5085f436cfbSKazutaka YOKOTAto the mouse. 509045c8108SKazutaka YOKOTAYou can attach multiple USB mice to your system or to your USB hub. 510045c8108SKazutaka YOKOTAThey are accessible as 511045c8108SKazutaka YOKOTA.Pa /dev/ums0 , /dev/ums1 , 512045c8108SKazutaka YOKOTAand so on. 51359bd9500SSimon L. B. Nielsen.Pp 5145f436cfbSKazutaka YOKOTAYou may want to create a symbolic link 5155f436cfbSKazutaka YOKOTA.Pa /dev/mouse 5165f436cfbSKazutaka YOKOTApointing to the real port to which the mouse is connected, so that you 51759bd9500SSimon L. B. Nielsencan easily distinguish which is your 51859bd9500SSimon L. B. Nielsen.Dq mouse 51959bd9500SSimon L. B. Nielsenport later. 5205f436cfbSKazutaka YOKOTA.Pp 5215f436cfbSKazutaka YOKOTAThe next step is to guess the appropriate protocol type for the mouse. 5225f436cfbSKazutaka YOKOTAThe 5235f436cfbSKazutaka YOKOTA.Nm 524490d5836SPhilippe Charnierutility may be able to automatically determine the protocol type. 5255f436cfbSKazutaka YOKOTARun the 5265f436cfbSKazutaka YOKOTA.Nm 527490d5836SPhilippe Charnierutility with the 5285f436cfbSKazutaka YOKOTA.Fl i 52907bfccd7SRuslan Ermilovoption and see what it says. 53007bfccd7SRuslan ErmilovIf the command can identify 5315f436cfbSKazutaka YOKOTAthe protocol type, no further investigation is necessary on your part. 5325f436cfbSKazutaka YOKOTAYou may start the daemon without explicitly specifying a protocol type 533c4d9468eSRuslan Ermilov(see 534c4d9468eSRuslan Ermilov.Sx EXAMPLES ) . 5355f436cfbSKazutaka YOKOTA.Pp 5365f436cfbSKazutaka YOKOTAThe command may print 5375f436cfbSKazutaka YOKOTA.Ar sysmouse 5385f436cfbSKazutaka YOKOTAif the mouse driver supports this protocol type. 5395f436cfbSKazutaka YOKOTA.Pp 5405f436cfbSKazutaka YOKOTANote that the 5415f436cfbSKazutaka YOKOTA.Dv type 5425f436cfbSKazutaka YOKOTAand 5435f436cfbSKazutaka YOKOTA.Dv model 5445f436cfbSKazutaka YOKOTAprinted by the 5455f436cfbSKazutaka YOKOTA.Fl i 5465f436cfbSKazutaka YOKOTAoption do not necessarily match the product name of the pointing device 5475f436cfbSKazutaka YOKOTAin question, but they may give the name of the device with which it is 5485f436cfbSKazutaka YOKOTAcompatible. 5495f436cfbSKazutaka YOKOTA.Pp 5505f436cfbSKazutaka YOKOTAIf the 5515f436cfbSKazutaka YOKOTA.Fl i 5525f436cfbSKazutaka YOKOTAoption yields nothing, you need to specify a protocol type to the 5535f436cfbSKazutaka YOKOTA.Nm 554490d5836SPhilippe Charnierutility by the 5555f436cfbSKazutaka YOKOTA.Fl t 556f2e366a1SSheldon Hearnoption. 557f2e366a1SSheldon HearnYou have to make a guess and try. 5585f436cfbSKazutaka YOKOTAThere is rule of thumb: 5595f436cfbSKazutaka YOKOTA.Pp 560610a5778SRuslan Ermilov.Bl -enum -compact -width 1.X 561610a5778SRuslan Ermilov.It 5625f436cfbSKazutaka YOKOTAThe bus and InPort mice always use 5635f436cfbSKazutaka YOKOTA.Ar busmouse 5645f436cfbSKazutaka YOKOTAprotocol regardless of the brand of the mouse. 565610a5778SRuslan Ermilov.It 5665f436cfbSKazutaka YOKOTAThe 5675f436cfbSKazutaka YOKOTA.Ar ps/2 5685f436cfbSKazutaka YOKOTAprotocol should always be specified for the PS/2 mouse 5695f436cfbSKazutaka YOKOTAregardless of the brand of the mouse. 570610a5778SRuslan Ermilov.It 571045c8108SKazutaka YOKOTAYou must specify the 572045c8108SKazutaka YOKOTA.Ar auto 573045c8108SKazutaka YOKOTAprotocol for the USB mouse. 574610a5778SRuslan Ermilov.It 5755f436cfbSKazutaka YOKOTAMost 2-button serial mice support the 5765f436cfbSKazutaka YOKOTA.Ar microsoft 5775f436cfbSKazutaka YOKOTAprotocol. 578610a5778SRuslan Ermilov.It 5795f436cfbSKazutaka YOKOTA3-button serial mice may work with the 5805f436cfbSKazutaka YOKOTA.Ar mousesystems 581f2e366a1SSheldon Hearnprotocol. 582f5c73cbbSKazutaka YOKOTAIf it does not, it may work with the 5835f436cfbSKazutaka YOKOTA.Ar microsoft 5845f436cfbSKazutaka YOKOTAprotocol although 585f5c73cbbSKazutaka YOKOTAthe third (middle) button will not function. 5865f436cfbSKazutaka YOKOTA3-button serial mice may also work with the 5875f436cfbSKazutaka YOKOTA.Ar mouseman 5885f436cfbSKazutaka YOKOTAprotocol under which the third button may function as expected. 589610a5778SRuslan Ermilov.It 59059bd9500SSimon L. B. Nielsen3-button serial mice may have a small switch to choose between 59159bd9500SSimon L. B. Nielsen.Dq MS 59259bd9500SSimon L. B. Nielsenand 59359bd9500SSimon L. B. Nielsen.Dq PC , 59459bd9500SSimon L. B. Nielsenor 59559bd9500SSimon L. B. Nielsen.Dq 2 59659bd9500SSimon L. B. Nielsenand 59759bd9500SSimon L. B. Nielsen.Dq 3 . 59859bd9500SSimon L. B. Nielsen.Dq MS 59959bd9500SSimon L. B. Nielsenor 60059bd9500SSimon L. B. Nielsen.Dq 2 60159bd9500SSimon L. B. Nielsenusually mean the 6025f436cfbSKazutaka YOKOTA.Ar microsoft 6035f436cfbSKazutaka YOKOTAprotocol. 60459bd9500SSimon L. B. Nielsen.Dq PC 60559bd9500SSimon L. B. Nielsenor 60659bd9500SSimon L. B. Nielsen.Dq 3 60759bd9500SSimon L. B. Nielsenwill choose the 6085f436cfbSKazutaka YOKOTA.Ar mousesystems 6095f436cfbSKazutaka YOKOTAprotocol. 610610a5778SRuslan Ermilov.It 6115f436cfbSKazutaka YOKOTAIf the mouse has a roller or a wheel, it may be compatible with the 6125f436cfbSKazutaka YOKOTA.Ar intellimouse 6135f436cfbSKazutaka YOKOTAprotocol. 6145f436cfbSKazutaka YOKOTA.El 6155f436cfbSKazutaka YOKOTA.Pp 6165f436cfbSKazutaka YOKOTATo test if the selected protocol type is correct for the given mouse, 6175f436cfbSKazutaka YOKOTAenable the mouse pointer in the current virtual console, 6185f436cfbSKazutaka YOKOTA.Pp 619bc84aa4bSRuslan Ermilov.Dl "vidcontrol -m on" 6205f436cfbSKazutaka YOKOTA.Pp 6215f436cfbSKazutaka YOKOTAstart the mouse daemon in the foreground mode, 6225f436cfbSKazutaka YOKOTA.Pp 623bc84aa4bSRuslan Ermilov.Dl "moused -f -p <selected_port> -t <selected_protocol>" 6245f436cfbSKazutaka YOKOTA.Pp 6255f436cfbSKazutaka YOKOTAand see if the mouse pointer travels correctly 626f2e366a1SSheldon Hearnaccording to the mouse movement. 627f2e366a1SSheldon HearnThen try cut & paste features by 628f2e366a1SSheldon Hearnclicking the left, right and middle buttons. 629f2e366a1SSheldon HearnType ^C to stop 6305f436cfbSKazutaka YOKOTAthe command. 6315f436cfbSKazutaka YOKOTA.Ss Multiple Mice 6325f436cfbSKazutaka YOKOTAAs many instances of the mouse daemon as the number of mice attached to 6335f436cfbSKazutaka YOKOTAthe system may be run simultaneously; one 6345f436cfbSKazutaka YOKOTAinstance for each mouse. 6355f436cfbSKazutaka YOKOTAThis is useful if the user wants to use the built-in PS/2 pointing device 6365f436cfbSKazutaka YOKOTAof a laptop computer while on the road, but wants to use a serial 6375f436cfbSKazutaka YOKOTAmouse when s/he attaches the system to the docking station in the office. 6385f436cfbSKazutaka YOKOTARun two mouse daemons and tell the application program 639c4d9468eSRuslan Ermilov(such as the 640c4d9468eSRuslan Ermilov.Tn "X\ Window System" ) 6415f436cfbSKazutaka YOKOTAto use 642f84e4bb7SPhilippe Charnier.Xr sysmouse 4 , 64375c07b90SChristian Bruefferthen the application program will always see mouse data from either mouse. 6445f436cfbSKazutaka YOKOTAWhen the serial mouse is not attached, the corresponding mouse daemon 645f5c73cbbSKazutaka YOKOTAwill not detect any movement or button state change and the application 6465f436cfbSKazutaka YOKOTAprogram will only see mouse data coming from the daemon for the 647f2e366a1SSheldon HearnPS/2 mouse. 648f2e366a1SSheldon HearnIn contrast when both mice are attached and both of them 6495f436cfbSKazutaka YOKOTAare moved at the same time in this configuration, 6505f436cfbSKazutaka YOKOTAthe mouse pointer will travel across the screen just as if movement of 6515f436cfbSKazutaka YOKOTAthe mice is combined all together. 6525f436cfbSKazutaka YOKOTA.Sh FILES 6535f436cfbSKazutaka YOKOTA.Bl -tag -width /dev/consolectl -compact 6545f436cfbSKazutaka YOKOTA.It Pa /dev/consolectl 6555f436cfbSKazutaka YOKOTAdevice to control the console 6565f436cfbSKazutaka YOKOTA.It Pa /dev/mse%d 6575f436cfbSKazutaka YOKOTAbus and InPort mouse driver 6585f436cfbSKazutaka YOKOTA.It Pa /dev/psm%d 6595f436cfbSKazutaka YOKOTAPS/2 mouse driver 6605f436cfbSKazutaka YOKOTA.It Pa /dev/sysmouse 6615f436cfbSKazutaka YOKOTAvirtualized mouse driver 6625f436cfbSKazutaka YOKOTA.It Pa /dev/ttyv%d 6635f436cfbSKazutaka YOKOTAvirtual consoles 664045c8108SKazutaka YOKOTA.It Pa /dev/ums%d 665045c8108SKazutaka YOKOTAUSB mouse driver 666f82812a2SKazutaka YOKOTA.It Pa /var/run/moused.pid 667f82812a2SKazutaka YOKOTAprocess id of the currently running 668f82812a2SKazutaka YOKOTA.Nm 669490d5836SPhilippe Charnierutility 67067978692SAmancio Hasty.It Pa /var/run/MouseRemote 67167978692SAmancio HastyUNIX-domain stream socket for X10 MouseRemote events 67294a804c5SMike Pritchard.El 673251c176fSRuslan Ermilov.Sh EXAMPLES 674bc84aa4bSRuslan Ermilov.Dl "moused -p /dev/cuad0 -i type" 6755f436cfbSKazutaka YOKOTA.Pp 6765f436cfbSKazutaka YOKOTALet the 6775f436cfbSKazutaka YOKOTA.Nm 678490d5836SPhilippe Charnierutility determine the protocol type of the mouse at the serial port 679d0139887SPhilip Paeps.Pa /dev/cuad0 . 6805f436cfbSKazutaka YOKOTAIf successful, the command will print the type, otherwise it will say 68159bd9500SSimon L. B. Nielsen.Dq Li unknown . 682bc84aa4bSRuslan Ermilov.Bd -literal -offset indent 683bc84aa4bSRuslan Ermilovmoused -p /dev/cuad0 684bc84aa4bSRuslan Ermilovvidcontrol -m on 685bc84aa4bSRuslan Ermilov.Ed 686bf29452fSWolfram Schneider.Pp 6875f436cfbSKazutaka YOKOTAIf the 6885f436cfbSKazutaka YOKOTA.Nm 689490d5836SPhilippe Charnierutility is able to identify the protocol type of the mouse at the specified 6905f436cfbSKazutaka YOKOTAport automatically, you can start the daemon without the 6915f436cfbSKazutaka YOKOTA.Fl t 6925f436cfbSKazutaka YOKOTAoption and enable the mouse pointer in the text console as above. 693bc84aa4bSRuslan Ermilov.Bd -literal -offset indent 694bc84aa4bSRuslan Ermilovmoused -p /dev/mouse -t microsoft 695bc84aa4bSRuslan Ermilovvidcontrol -m on 696bc84aa4bSRuslan Ermilov.Ed 6975f436cfbSKazutaka YOKOTA.Pp 6985f436cfbSKazutaka YOKOTAStart the mouse daemon on the serial port 6995f436cfbSKazutaka YOKOTA.Pa /dev/mouse . 7005f436cfbSKazutaka YOKOTAThe protocol type 7015f436cfbSKazutaka YOKOTA.Ar microsoft 7025f436cfbSKazutaka YOKOTAis explicitly specified by the 7035f436cfbSKazutaka YOKOTA.Fl t 7045f436cfbSKazutaka YOKOTAoption. 7055f436cfbSKazutaka YOKOTA.Pp 706bc84aa4bSRuslan Ermilov.Dl "moused -p /dev/mouse -m 1=3 -m 3=1" 7075f436cfbSKazutaka YOKOTA.Pp 7085f436cfbSKazutaka YOKOTAAssign the physical button 3 (right button) to the logical button 1 7095f436cfbSKazutaka YOKOTA(logical left) and the physical button 1 (left) to the logical 7105f436cfbSKazutaka YOKOTAbutton 3 (logical right). 7115f436cfbSKazutaka YOKOTAThis will effectively swap the left and right buttons. 7125f436cfbSKazutaka YOKOTA.Pp 713bc84aa4bSRuslan Ermilov.Dl "moused -p /dev/mouse -t intellimouse -z 4" 7145f436cfbSKazutaka YOKOTA.Pp 7150d64fcd8SDavid E. O'BrienReport negative Z axis movement (i.e., mouse wheel) as the button 4 pressed 7160d64fcd8SDavid E. O'Brienand positive Z axis movement (i.e., mouse wheel) as the button 5 pressed. 7179eac5bb9SPhilip Paeps.Pp 7189eac5bb9SPhilip PaepsIf you add 7199eac5bb9SPhilip Paeps.Pp 720bc84aa4bSRuslan Ermilov.Dl "ALL ALL = NOPASSWD: /usr/bin/killall -USR1 moused" 7219eac5bb9SPhilip Paeps.Pp 7229eac5bb9SPhilip Paepsto your 7239eac5bb9SPhilip Paeps.Pa /usr/local/etc/sudoers 7249eac5bb9SPhilip Paepsfile, and bind 7259eac5bb9SPhilip Paeps.Pp 726bc84aa4bSRuslan Ermilov.Dl "killall -USR1 moused" 7279eac5bb9SPhilip Paeps.Pp 7289eac5bb9SPhilip Paepsto a key in your window manager, you can suspend mouse events on your laptop if 7299eac5bb9SPhilip Paepsyou keep brushing over the mouse pad while typing. 7305f436cfbSKazutaka YOKOTA.Sh CAVEATS 7315f436cfbSKazutaka YOKOTAMany pad devices behave as if the first (left) button were pressed if 73259bd9500SSimon L. B. Nielsenthe user 73359bd9500SSimon L. B. Nielsen.Dq taps 73459bd9500SSimon L. B. Nielsenthe surface of the pad. 7352e09fb67SKazutaka YOKOTAIn contrast, some ALPS GlidePoint and Interlink VersaPad models 7362e09fb67SKazutaka YOKOTAtreat the tapping action 737f2e366a1SSheldon Hearnas fourth button events. 73859bd9500SSimon L. B. NielsenUse the option 73959bd9500SSimon L. B. Nielsen.Dq Fl m Li 1=4 74059bd9500SSimon L. B. Nielsenfor these models 7415f436cfbSKazutaka YOKOTAto obtain the same effect as the other pad devices. 742851c9886SKazutaka YOKOTA.Pp 743851c9886SKazutaka YOKOTACut and paste functions in the virtual console assume that there 744851c9886SKazutaka YOKOTAare three buttons on the mouse. 745851c9886SKazutaka YOKOTAThe logical button 1 (logical left) selects a region of text in the 746851c9886SKazutaka YOKOTAconsole and copies it to the cut buffer. 747851c9886SKazutaka YOKOTAThe logical button 3 (logical right) extends the selected region. 748851c9886SKazutaka YOKOTAThe logical button 2 (logical middle) pastes the selected text 749851c9886SKazutaka YOKOTAat the text cursor position. 750851c9886SKazutaka YOKOTAIf the mouse has only two buttons, the middle, `paste' button 751851c9886SKazutaka YOKOTAis not available. 752851c9886SKazutaka YOKOTATo obtain the paste function, use the 753851c9886SKazutaka YOKOTA.Fl 3 754851c9886SKazutaka YOKOTAoption to emulate the middle button, or use the 755851c9886SKazutaka YOKOTA.Fl m 756851c9886SKazutaka YOKOTAoption to assign the physical right button to the logical middle button: 75759bd9500SSimon L. B. Nielsen.Dq Fl m Li 2=3 . 75894a804c5SMike Pritchard.Sh SEE ALSO 7595f436cfbSKazutaka YOKOTA.Xr kill 1 , 7605cf470d6SWolfram Schneider.Xr vidcontrol 1 , 76194a804c5SMike Pritchard.Xr keyboard 4 , 7625f436cfbSKazutaka YOKOTA.Xr mse 4 , 7635f436cfbSKazutaka YOKOTA.Xr psm 4 , 764b7d50183SWolfram Schneider.Xr screen 4 , 765045c8108SKazutaka YOKOTA.Xr sysmouse 4 , 766045c8108SKazutaka YOKOTA.Xr ums 4 767251c176fSRuslan Ermilov.Sh STANDARDS 7685f436cfbSKazutaka YOKOTAThe 7695f436cfbSKazutaka YOKOTA.Nm 770490d5836SPhilippe Charnierutility partially supports 77179d8f01cSAlexey Zelkin.Dq Plug and Play External COM Device Specification 7725f436cfbSKazutaka YOKOTAin order to support PnP serial mice. 7735f436cfbSKazutaka YOKOTAHowever, due to various degrees of conformance to the specification by 7745f436cfbSKazutaka YOKOTAexisting serial mice, it does not strictly follow the version 1.0 of the 775f2e366a1SSheldon Hearnstandard. 776f2e366a1SSheldon HearnEven with this less strict approach, 7775f436cfbSKazutaka YOKOTAit may not always determine an appropriate protocol type 7785f436cfbSKazutaka YOKOTAfor the given serial mouse. 77959a3c79dSRuslan Ermilov.Sh HISTORY 78059a3c79dSRuslan ErmilovThe 78159a3c79dSRuslan Ermilov.Nm 78259a3c79dSRuslan Ermilovutility first appeared in 78359a3c79dSRuslan Ermilov.Fx 2.2 . 78494a804c5SMike Pritchard.Sh AUTHORS 785f4d874a1SRuslan Ermilov.An -nosplit 78694a804c5SMike PritchardThe 78794a804c5SMike Pritchard.Nm 788490d5836SPhilippe Charnierutility was written by 7892dcf9f10SSteve Price.An Michael Smith Aq msmith@FreeBSD.org . 7905f436cfbSKazutaka YOKOTAThis manual page was written by 79107e1d533SPhilippe Charnier.An Mike Pritchard Aq mpp@FreeBSD.org . 7922dcf9f10SSteve PriceThe command and manual page have since been updated by 7932dcf9f10SSteve Price.An Kazutaka Yokota Aq yokota@FreeBSD.org . 794