1.\" 2.\" Copyright (c) 1997 3.\" Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer as 11.\" the first lines of this file unmodified. 12.\" 2. Redistributions in binary form must reproduce the above copyright 13.\" notice, this list of conditions and the following disclaimer in the 14.\" documentation and/or other materials provided with the distribution. 15.\" 16.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 17.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 19.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26.\" 27.\" $FreeBSD$ 28.\" 29.Dd April 1, 2000 30.Dt PSM 4 31.Os 32.Sh NAME 33.Nm psm 34.Nd PS/2 mouse style pointing device driver 35.Sh SYNOPSIS 36.Cd "options KBD_RESETDELAY=N" 37.Cd "options KBD_MAXWAIT=N" 38.Cd "options PSM_DEBUG=N" 39.Cd "options KBDIO_DEBUG=N" 40.Cd "device psm0 at atkbdc? irq 12" 41.Sh DESCRIPTION 42The 43.Nm 44driver provides support for the PS/2 mouse style pointing device. 45Currently there can be only one 46.Nm 47device node in the system. 48As the PS/2 mouse port is located 49at the auxiliary port of the keyboard controller, 50the keyboard controller driver, 51.Nm atkbdc , 52must also be configured in the kernel. 53Note that there is currently no provision of changing the 54.Em irq 55number. 56.Pp 57Basic PS/2 style pointing device has two or three buttons. 58Some devices may have a roller or a wheel and/or additional buttons. 59.Ss Device Resolution 60The PS/2 style pointing device usually has several grades of resolution, 61that is, sensitivity of movement. 62They are typically 25, 50, 100 and 200 63pulse per inch. 64Some devices may have finer resolution. 65The current resolution can be changed at runtime. 66The 67.Nm 68driver allows the user to initially set the resolution 69via the driver flag 70(see 71.Sx "DRIVER CONFIGURATION" ) 72or change it later via the 73.Xr ioctl 2 74command 75.Dv MOUSE_SETMODE 76(see 77.Sx IOCTLS ) . 78.Ss Report Rate 79Frequency, or report rate, at which the device sends movement 80and button state reports to the host system is also configurable. 81The PS/2 style pointing device typically supports 10, 20, 40, 60, 80, 100 82and 200 reports per second. 8360 or 100 appears to be the default value for many devices. 84Note that when there is no movement and no button has changed its state, 85the device won't send anything to the host system. 86The report rate can be changed via an ioctl call. 87.Ss Operation Levels 88The 89.Nm 90driver has three levels of operation. 91The current operation level can be set via an ioctl call. 92.Pp 93At the level zero the basic support is provided; the device driver will report 94horizontal and vertical movement of the attached device 95and state of up to three buttons. 96The movement and status are encoded in a series of fixed-length data packets 97(see 98.Sx "Data Packet Format" ) . 99This is the default level of operation and the driver is initially 100at this level when opened by the user program. 101.Pp 102The operation level one, the `extended' level, supports a roller (or wheel), 103if any, and up to 11 buttons. 104The movement of the roller is reported as movement along the Z axis. 1058 byte data packets are sent to the user program at this level. 106.Pp 107At the operation level two, data from the pointing device is passed to the 108user program as is. 109Modern PS/2 type pointing devices often use proprietary data format. 110Therefore, the user program is expected to have 111intimate knowledge about the format from a particular device when operating 112the driver at this level. 113This level is called `native' level. 114.Ss Data Packet Format 115Data packets read from the 116.Nm 117driver are formatted differently at each operation level. 118.Pp 119A data packet from the PS/2 mouse style pointing device 120is three bytes long at the operation level zero: 121.Pp 122.Bl -tag -width Byte_1 -compact 123.It Byte 1 124.Bl -tag -width bit_7 -compact 125.It bit 7 126One indicates overflow in the vertical movement count. 127.It bit 6 128One indicates overflow in the horizontal movement count. 129.It bit 5 130Set if the vertical movement count is negative. 131.It bit 4 132Set if the horizontal movement count is negative. 133.It bit 3 134Always one. 135.\" The ALPS GlidePoint clears this bit when the user `taps' the surface of 136.\" the pad, otherwise the bit is set. 137.\" Most, if not all, other devices always set this bit. 138.It bit 2 139Middle button status; set if pressed. 140For devices without the middle 141button, this bit is always zero. 142.It bit 1 143Right button status; set if pressed. 144.It bit 0 145Left button status; set if pressed. 146.El 147.It Byte 2 148Horizontal movement count in two's complement; 149-256 through 255. 150Note that the sign bit is in the first byte. 151.It Byte 3 152Vertical movement count in two's complement; 153-256 through 255. 154Note that the sign bit is in the first byte. 155.El 156.Pp 157At the level one, a data packet is encoded 158in the standard format 159.Dv MOUSE_PROTO_SYSMOUSE 160as defined in 161.Xr mouse 4 . 162.Pp 163At the level two, native level, there is no standard on the size and format 164of the data packet. 165.Ss Acceleration 166The 167.Nm 168driver can somewhat `accelerate' the movement of the pointing device. 169The faster you move the device, the further the pointer 170travels on the screen. 171The driver has an internal variable which governs the effect of 172the acceleration. 173Its value can be modified via the driver flag 174or via an ioctl call. 175.Ss Device Number 176The minor device number of the 177.Nm 178is made up of: 179.Bd -literal -offset indent 180minor = (`unit' << 1) | `non-blocking' 181.Ed 182.Pp 183where `unit' is the device number (usually 0) and the `non-blocking' bit 184is set to indicate ``don't block waiting for mouse input, 185return immediately''. 186The `non-blocking' bit should be set for \fIXFree86\fP, 187therefore the minor device number usually used for \fIXFree86\fP is 1. 188See 189.Sx FILES 190for device node names. 191.Sh DRIVER CONFIGURATION 192.Ss Kernel Configuration Options 193There are following kernel configuration options to control the 194.Nm 195driver. 196They may be set in the kernel configuration file 197(see 198.Xr config 8 ) . 199.Bl -tag -width MOUSE 200.It Em KBD_RESETDELAY=X , KBD_MAXWAIT=Y 201The 202.Nm 203driver will attempt to reset the pointing device during the boot process. 204It sometimes takes a long while before the device will respond after 205reset. 206These options control how long the driver should wait before 207it eventually gives up waiting. 208The driver will wait 209.Fa X 210* 211.Fa Y 212msecs at most. 213If the driver seems unable to detect your pointing 214device, you may want to increase these values. 215The default values are 216200 msec for 217.Fa X 218and 5 219for 220.Fa Y . 221.It Em PSM_DEBUG=N , KBDIO_DEBUG=N 222Sets the debug level to 223.Fa N . 224The default debug level is zero. 225See 226.Sx DIAGNOSTICS 227for debug logging. 228.El 229.Ss Driver Flags 230The 231.Nm 232driver accepts the following driver flags. 233Set them in the 234kernel configuration file or in the User Configuration Menu at 235the boot time 236(see 237.Xr boot 8 ) . 238.Pp 239.Bl -tag -width MOUSE 240.It bit 0..3 RESOLUTION 241This flag specifies the resolution of the pointing device. 242It must be zero through four. 243The greater the value 244is, the finer resolution the device will select. 245Actual resolution selected by this field varies according to the model 246of the device. 247Typical resolutions are: 248.Pp 249.Bl -tag -width 0_(medium_high)__ -compact 250.It Em 1 (low) 25125 pulse per inch (ppi) 252.It Em 2 (medium low) 25350 ppi 254.It Em 3 (medium high) 255100 ppi 256.It Em 4 (high) 257200 ppi 258.El 259.Pp 260Leaving this flag zero will selects the default resolution for the 261device (whatever it is). 262.It bit 4..7 ACCELERATION 263This flag controls the amount of acceleration effect. 264The smaller the value of this flag is, more sensitive the movement becomes. 265The minimum value allowed, thus the value for the most sensitive setting, 266is one. 267Setting this flag to zero will completely disables the 268acceleration effect. 269.It bit 8 NOCHECKSYNC 270The 271.Nm 272driver tries to detect the first byte of the data packet by checking 273the bit pattern of that byte. 274Although this method should work with most 275PS/2 pointing devices, it may interfere with some devices which are not 276so compatible with known devices. 277If you think your pointing device is not functioning as expected, 278and the kernel frequently prints the following message to the console, 279.Bd -literal -offset indent 280psmintr: out of sync (xxxx != yyyy). 281.Ed 282.Pp 283set this flag to disable synchronization check and see if it helps. 284.It bit 9 NOIDPROBE 285The 286.Nm 287driver will not try to identify the model of the pointing device and 288will not carry out model-specific initialization. 289The device should always act like a standard PS/2 mouse without such 290initialization. 291Extra features, such as wheels and additional buttons, won't be 292recognized by the 293.Nm 294driver. 295.It bit 10 NORESET 296When this flag is set, the 297.Nm 298driver won't reset the pointing device when initializing the device. 299If the 300.Fx 301kernel 302is started after another OS has run, the pointing device will inherit 303settings from the previous OS. 304However, because there is no way for the 305.Nm 306driver to know the settings, the device and the driver may not 307work correctly. 308The flag should never be necessary under normal circumstances. 309.It bit 11 FORCETAP 310Some pad devices report as if the fourth button is pressed 311when the user `taps' the surface of the device (see 312.Sx CAVEATS ) . 313This flag will make the 314.Nm 315driver assume that the device behaves this way. 316Without the flag, the driver will assume this behavior 317for ALPS GlidePoint models only. 318.It bit 12 IGNOREPORTERROR 319This flag makes 320.Nm 321driver ignore certain error conditions when probing the PS/2 mouse port. 322It should never be necessary under normal circumstances. 323.It bit 13 HOOKRESUME 324The built-in PS/2 pointing device of some laptop computers is somehow 325not operable immediately after the system `resumes' from 326the power saving mode, 327though it will eventually become available. 328There are reports that 329stimulating the device by performing I/O will help 330waking up the device quickly. 331This flag will enable a piece of code in the 332.Nm 333driver to hook 334the `resume' event and exercise some harmless I/O operations on the 335device. 336.It bit 14 INITAFTERSUSPEND 337This flag adds more drastic action for the above problem. 338It will cause the 339.Nm 340driver to reset and re-initialize the pointing device 341after the `resume' event. 342It has no effect unless the 343.Em HOOKRESUME 344flag is set as well. 345.El 346.Sh IOCTLS 347There are a few 348.Xr ioctl 2 349commands for mouse drivers. 350These commands and related structures and constants are defined in 351.Ao Pa sys/mouse.h Ac . 352General description of the commands is given in 353.Xr mouse 4 . 354This section explains the features specific to the 355.Nm 356driver. 357.Pp 358.Bl -tag -width MOUSE -compact 359.It Dv MOUSE_GETLEVEL Ar int *level 360.It Dv MOUSE_SETLEVEL Ar int *level 361These commands manipulate the operation level of the 362.Nm 363driver. 364.Pp 365.It Dv MOUSE_GETHWINFO Ar mousehw_t *hw 366Returns the hardware information of the attached device in the following 367structure. 368.Bd -literal 369typedef struct mousehw { 370 int buttons; /* number of buttons */ 371 int iftype; /* I/F type */ 372 int type; /* mouse/track ball/pad... */ 373 int model; /* I/F dependent model ID */ 374 int hwid; /* I/F dependent hardware ID */ 375} mousehw_t; 376.Ed 377.Pp 378The 379.Dv buttons 380field holds the number of buttons on the device. 381The 382.Nm 383driver currently can detect the 3 button mouse from Logitech and report 384accordingly. 385The 3 button mouse from the other manufacturer may or may not be 386reported correctly. 387However, it will not affect the operation of 388the driver. 389.Pp 390The 391.Dv iftype 392is always 393.Dv MOUSE_IF_PS2 . 394.Pp 395The 396.Dv type 397tells the device type: 398.Dv MOUSE_MOUSE , 399.Dv MOUSE_TRACKBALL , 400.Dv MOUSE_STICK , 401.Dv MOUSE_PAD , 402or 403.Dv MOUSE_UNKNOWN . 404The user should not heavily rely on this field, as the 405driver may not always, in fact it is very rarely able to, identify 406the device type. 407.Pp 408The 409.Dv model 410is always 411.Dv MOUSE_MODEL_GENERIC 412at the operation level 0. 413It may be 414.Dv MOUSE_MODEL_GENERIC 415or one of 416.Dv MOUSE_MODEL_XXX 417constants at higher operation levels. 418Again the 419.Nm 420driver may or may not set an appropriate value in this field. 421.Pp 422The 423.Dv hwid 424is the ID value returned by the device. 425Known IDs include: 426.Pp 427.Bl -tag -width 0__ -compact 428.It Em 0 429Mouse (Microsoft, Logitech and many other manufacturers) 430.It Em 2 431Microsoft Ballpoint mouse 432.It Em 3 433Microsoft IntelliMouse 434.El 435.Pp 436.It Dv MOUSE_GETMODE Ar mousemode_t *mode 437The command gets the current operation parameters of the mouse 438driver. 439.Bd -literal 440typedef struct mousemode { 441 int protocol; /* MOUSE_PROTO_XXX */ 442 int rate; /* report rate (per sec), -1 if unknown */ 443 int resolution; /* MOUSE_RES_XXX, -1 if unknown */ 444 int accelfactor; /* acceleration factor */ 445 int level; /* driver operation level */ 446 int packetsize; /* the length of the data packet */ 447 unsigned char syncmask[2]; /* sync. bits */ 448} mousemode_t; 449.Ed 450.Pp 451The 452.Dv protocol 453is 454.Dv MOUSE_PROTO_PS2 455at the operation level zero and two. 456.Dv MOUSE_PROTO_SYSMOUSE 457at the operation level one. 458.Pp 459The 460.Dv rate 461is the status report rate (reports/sec) at which the device will send 462movement report to the host computer. 463Typical supported values are 10, 20, 40, 60, 80, 100 and 200. 464Some mice may accept other arbitrary values too. 465.Pp 466The 467.Dv resolution 468of the pointing device must be one of 469.Dv MOUSE_RES_XXX 470constants or a positive value. 471The greater the value 472is, the finer resolution the mouse will select. 473Actual resolution selected by the 474.Dv MOUSE_RES_XXX 475constant varies according to the model of mouse. 476Typical resolutions are: 477.Pp 478.Bl -tag -width MOUSE_RES_MEDIUMHIGH__ -compact 479.It Dv MOUSE_RES_LOW 48025 ppi 481.It Dv MOUSE_RES_MEDIUMLOW 48250 ppi 483.It Dv MOUSE_RES_MEDIUMHIGH 484100 ppi 485.It Dv MOUSE_RES_HIGH 486200 ppi 487.El 488.Pp 489The 490.Dv accelfactor 491field holds a value to control acceleration feature 492(see 493.Sx Acceleration ) . 494It must be zero or greater. If it is zero, acceleration is disabled. 495.Pp 496The 497.Dv packetsize 498field specifies the length of the data packet. 499It depends on the 500operation level and the model of the pointing device. 501.Pp 502.Bl -tag -width level_0__ -compact 503.It Em level 0 5043 bytes 505.It Em level 1 5068 bytes 507.It Em level 2 508Depends on the model of the device 509.El 510.Pp 511The array 512.Dv syncmask 513holds a bit mask and pattern to detect the first byte of the 514data packet. 515.Dv syncmask[0] 516is the bit mask to be ANDed with a byte. 517If the result is equal to 518.Dv syncmask[1] , 519the byte is likely to be the first byte of the data packet. 520Note that this detection method is not 100% reliable, 521thus, should be taken only as an advisory measure. 522.Pp 523.It Dv MOUSE_SETMODE Ar mousemode_t *mode 524The command changes the current operation parameters of the mouse driver 525as specified in 526.Ar mode . 527Only 528.Dv rate , 529.Dv resolution , 530.Dv level 531and 532.Dv accelfactor 533may be modifiable. 534Setting values in the other field does not generate 535error and has no effect. 536.Pp 537If you do not want to change the current setting of a field, put -1 538there. 539You may also put zero in 540.Dv resolution 541and 542.Dv rate , 543and the default value for the fields will be selected. 544.\" .Pp 545.\" .It Dv MOUSE_GETVARS Ar mousevar_t *vars 546.\" .It Dv MOUSE_SETVARS Ar mousevar_t *vars 547.\" These commands are not supported by the 548.\" .Nm 549.\" driver. 550.Pp 551.It Dv MOUSE_READDATA Ar mousedata_t *data 552.\" The command reads the raw data from the device. 553.\" .Bd -literal 554.\" typedef struct mousedata { 555.\" int len; /* # of data in the buffer */ 556.\" int buf[16]; /* data buffer */ 557.\" } mousedata_t; 558.\" .Ed 559.\" .Pp 560.\" Upon returning to the user program, the driver will place the number 561.\" of valid data bytes in the buffer in the 562.\" .Dv len 563.\" field. 564.\" .Pp 565.It Dv MOUSE_READSTATE Ar mousedata_t *state 566.\" The command reads the hardware settings from the device. 567.\" Upon returning to the user program, the driver will place the number 568.\" of valid data bytes in the buffer in the 569.\" .Dv len 570.\" field. It is usually 3 bytes. 571.\" The buffer is formatted as follows: 572.\" .Pp 573.\" .Bl -tag -width Byte_1 -compact 574.\" .It Byte 1 575.\" .Bl -tag -width bit_6 -compact 576.\" .It bit 7 577.\" Reserved. 578.\" .It bit 6 579.\" 0 - stream mode, 1 - remote mode. 580.\" In the stream mode, the pointing device sends the device status 581.\" whenever its state changes. In the remote mode, the host computer 582.\" must request the status to be sent. 583.\" The 584.\" .Nm 585.\" driver puts the device in the stream mode. 586.\" .It bit 5 587.\" Set if the pointing device is currently enabled. Otherwise zero. 588.\" .It bit 4 589.\" 0 - 1:1 scaling, 1 - 2:1 scaling. 590.\" 1:1 scaling is the default. 591.\" .It bit 3 592.\" Reserved. 593.\" .It bit 2 594.\" Left button status; set if pressed. 595.\" .It bit 1 596.\" Middle button status; set if pressed. 597.\" .It bit 0 598.\" Right button status; set if pressed. 599.\" .El 600.\" .It Byte 2 601.\" .Bl -tag -width bit_6_0 -compact 602.\" .It bit 7 603.\" Reserved. 604.\" .It bit 6..0 605.\" Resolution code: zero through three. Actual resolution for 606.\" the resolution code varies from one device to another. 607.\" .El 608.\" .It Byte 3 609.\" The status report rate (reports/sec) at which the device will send 610.\" movement report to the host computer. 611.\" .El 612These commands are not currently supported by the 613.Nm 614driver. 615.Pp 616.It Dv MOUSE_GETSTATUS Ar mousestatus_t *status 617The command returns the current state of buttons and 618movement counts as described in 619.Xr mouse 4 . 620.El 621.Sh FILES 622.Bl -tag -width /dev/npsm0 -compact 623.It Pa /dev/psm0 624`non-blocking' device node 625.It Pa /dev/bpsm0 626`blocking' device node under 627.Em devfs . 628.El 629.Sh EXAMPLES 630.Dl "device psm0 at atkbdc? irq 12 flags 0x2000" 631.Pp 632Add the 633.Nm 634driver to the kernel with the optional code to stimulate the pointing device 635after the `resume' event. 636.Pp 637.Dl "device psm0 at atkbdc? flags 0x024 irq 12" 638.Pp 639Set the device resolution high (4) and the acceleration factor to 2. 640.Sh DIAGNOSTICS 641At debug level 0, little information is logged except for the following 642line during boot process: 643.Bd -literal -offset indent 644psm0: device ID X 645.Ed 646.Pp 647where 648.Fa X 649the device ID code returned by the found pointing device. 650See 651.Dv MOUSE_GETINFO 652for known IDs. 653.Pp 654At debug level 1 more information will be logged 655while the driver probes the auxiliary port (mouse port). 656Messages are logged with the LOG_KERN facility at the LOG_DEBUG level 657(see 658.Xr syslogd 8 ) . 659.Bd -literal -offset indent 660psm0: current command byte:xxxx 661kbdio: TEST_AUX_PORT status:0000 662kbdio: RESET_AUX return code:00fa 663kbdio: RESET_AUX status:00aa 664kbdio: RESET_AUX ID:0000 665[...] 666psm: status 00 02 64 667psm0 irq 12 on isa 668psm0: model AAAA, device ID X, N buttons 669psm0: config:00000www, flags:0000uuuu, packet size:M 670psm0: syncmask:xx, syncbits:yy 671.Ed 672.Pp 673The first line shows the command byte value of the keyboard 674controller just before the auxiliary port is probed. 675It usually is 4D, 45, 47 or 65, depending on how the motherboard BIOS 676initialized the keyboard controller upon power-up. 677.Pp 678The second line shows the result of the keyboard controller's 679test on the auxiliary port interface, with zero indicating 680no error; note that some controllers report no error even if 681the port does not exist in the system, however. 682.Pp 683The third through fifth lines show the reset status of the pointing device. 684The functioning device should return the sequence of FA AA <ID>. 685The ID code is described above. 686.Pp 687The seventh line shows the current hardware settings. 688.\" See 689.\" .Dv MOUSE_READSTATE 690.\" for definitions. 691These bytes are formatted as follows: 692.Pp 693.Bl -tag -width Byte_1 -compact 694.It Byte 1 695.Bl -tag -width bit_6 -compact 696.It bit 7 697Reserved. 698.It bit 6 6990 - stream mode, 1 - remote mode. 700In the stream mode, the pointing device sends the device status 701whenever its state changes. 702In the remote mode, the host computer 703must request the status to be sent. 704The 705.Nm 706driver puts the device in the stream mode. 707.It bit 5 708Set if the pointing device is currently enabled. 709Otherwise zero. 710.It bit 4 7110 - 1:1 scaling, 1 - 2:1 scaling. 7121:1 scaling is the default. 713.It bit 3 714Reserved. 715.It bit 2 716Left button status; set if pressed. 717.It bit 1 718Middle button status; set if pressed. 719.It bit 0 720Right button status; set if pressed. 721.El 722.It Byte 2 723.Bl -tag -width bit_6_0 -compact 724.It bit 7 725Reserved. 726.It bit 6..0 727Resolution code: zero through three. 728Actual resolution for 729the resolution code varies from one device to another. 730.El 731.It Byte 3 732The status report rate (reports/sec) at which the device will send 733movement report to the host computer. 734.El 735.Pp 736Note that the pointing device will not be enabled until the 737.Nm 738driver is opened by the user program. 739.Pp 740The rest of the lines show the device ID code, the number of detected 741buttons and internal variables. 742.Pp 743At debug level 2, much more detailed information is logged. 744.Sh CAVEATS 745Many pad devices behave as if the first (left) button were pressed if 746the user `taps' the surface of the pad. 747In contrast, some pad products, e.g. some verions of ALPS GlidePoint 748and Interlink VersaPad, treat the tapping action 749as fourth button events. 750.Pp 751It is reported that Interlink VersaPad rquires both 752.Em HOOKRESUME 753and 754.Em INITAFTERSUSPEND 755flags in order to recover from suspended state. 756These flags are automatically set when VersaPad is detected by the 757.Nm 758driver. 759.Pp 760Some PS/2 mouse models from MouseSystems require to be put in the 761high resolution mode to work properly. 762Use the driver flag to 763set resolution. 764.Pp 765There is not a guaranteed way to re-synchronize with the first byte 766of the packet once we are out of synchronization with the data 767stream. 768However, if you are using the \fIXFree86\fP server and experiencing 769the problem, you may be able to make the X server synchronize with the mouse 770by switching away to a virtual terminal and getting back to the X server, 771unless the X server is accessing the mouse via 772.Xr moused 8 . 773Clicking any button without moving the mouse may also work. 774.Sh BUGS 775The ioctl command 776.Dv MOUSEIOCREAD 777has been removed. 778It was never functional anyway. 779.Sh SEE ALSO 780.Xr ioctl 2 , 781.Xr syslog 3 , 782.Xr atkbdc 4 , 783.Xr mouse 4 , 784.Xr mse 4 , 785.Xr sysmouse 4 , 786.Xr moused 8 , 787.Xr syslogd 8 788.\".Sh HISTORY 789.Sh AUTHORS 790.An -nosplit 791The 792.Nm 793driver is based on the work done by quite a number of people, including 794.An Eric Forsberg , 795.An Sandi Donno , 796.An Rick Macklem , 797.An Andrew Herbert , 798.An Charles Hannum , 799.An Shoji Yuen 800and 801.An Kazutaka Yokota 802to name the few. 803.Pp 804This manual page was written by 805.An Kazutaka Yokota Aq yokota@FreeBSD.org . 806