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