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 compliment; 147-256 through 255. 148Note that the sign bit is in the first byte. 149.It Byte 3 150Vertical movement count in two's compliment; 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 FreeBSD kernel 296is started after another OS has run, the pointing device will inherit 297settings from the previous OS. 298However, because there is no way for the 299.Nm 300driver to know the settings, the device and the driver may not 301work correctly. 302The flag should never be necessary under normal circumstances. 303.It bit 11 FORCETAP 304Some pad devices report as if the fourth button is pressed 305when the user `taps' the surface of the device (see 306.Sx CAVEATS ) . 307This flag will make the 308.Nm 309driver assume that the device behaves this way. 310Without the flag, the driver will assume this behavior 311for ALPS GlidePoint models only. 312.It bit 12 IGNOREPORTERROR 313This flag makes 314.Nm 315driver ignore certain error conditions when probing the PS/2 mouse port. 316It should never be necessary under normal circumstances. 317.It bit 13 HOOKRESUME 318The built-in PS/2 pointing device of some laptop computers is somehow 319not operable immediately after the system `resumes' from 320the power saving mode, 321though it will eventually become available. 322There are reports that 323stimulating the device by performing I/O will help 324waking up the device quickly. 325This flag will enable a piece of code in the 326.Nm 327driver to hook 328the `resume' event and exercise some harmless I/O operations on the 329device. 330.It bit 14 INITAFTERSUSPEND 331This flag adds more drastic action for the above problem. 332It will cause the 333.Nm 334driver to reset and re-initialize the pointing device 335after the `resume' event. 336It has no effect unless the 337.Em HOOKRESUME 338flag is set as well. 339.El 340.Sh IOCTLS 341There are a few 342.Xr ioctl 2 343commands for mouse drivers. 344These commands and related structures and constants are defined in 345.Ao Pa machine/mouse.h Ac . 346General description of the commands is given in 347.Xr mouse 4 . 348This section explains the features specific to the 349.Nm 350driver. 351.Pp 352.Bl -tag -width MOUSE -compact 353.It Dv MOUSE_GETLEVEL Ar int *level 354.It Dv MOUSE_SETLEVEL Ar int *level 355These commands manipulate the operation level of the 356.Nm 357driver. 358.Pp 359.It Dv MOUSE_GETHWINFO Ar mousehw_t *hw 360Returns the hardware information of the attached device in the following 361structure. 362.Bd -literal 363typedef struct mousehw { 364 int buttons; /* number of buttons */ 365 int iftype; /* I/F type */ 366 int type; /* mouse/track ball/pad... */ 367 int model; /* I/F dependent model ID */ 368 int hwid; /* I/F dependent hardware ID */ 369} mousehw_t; 370.Ed 371.Pp 372The 373.Dv buttons 374field holds the number of buttons on the device. 375The 376.Nm 377driver currently can detect the 3 button mouse from Logitech and report 378accordingly. 379The 3 button mouse from the other manufacturer may or may not be 380reported correctly. 381However, it will not affect the operation of 382the driver. 383.Pp 384The 385.Dv iftype 386is always 387.Dv MOUSE_IF_PS2 . 388.Pp 389The 390.Dv type 391tells the device type: 392.Dv MOUSE_MOUSE , 393.Dv MOUSE_TRACKBALL , 394.Dv MOUSE_STICK , 395.Dv MOUSE_PAD , 396or 397.Dv MOUSE_UNKNOWN . 398The user should not heavily rely on this field, as the 399driver may not always, in fact it is very rarely able to, identify 400the device type. 401.Pp 402The 403.Dv model 404is always 405.Dv MOUSE_MODEL_GENERIC 406at the operation level 0. 407It may be 408.Dv MOUSE_MODEL_GENERIC 409or one of 410.Dv MOUSE_MODEL_XXX 411constants at higher operation levels. 412Again the 413.Nm 414driver may or may not set an appropriate value in this field. 415.Pp 416The 417.Dv hwid 418is the ID value returned by the device. 419Known IDs include: 420.Pp 421.Bl -tag -width 0__ -compact 422.It Em 0 423Mouse (Microsoft, Logitech and many other manufacturers) 424.It Em 2 425Microsoft Ballpoint mouse 426.It Em 3 427Microsoft IntelliMouse 428.El 429.Pp 430.It Dv MOUSE_GETMODE Ar mousemode_t *mode 431The command gets the current operation parameters of the mouse 432driver. 433.Bd -literal 434typedef struct mousemode { 435 int protocol; /* MOUSE_PROTO_XXX */ 436 int rate; /* report rate (per sec), -1 if unknown */ 437 int resolution; /* MOUSE_RES_XXX, -1 if unknown */ 438 int accelfactor; /* acceleration factor */ 439 int level; /* driver operation level */ 440 int packetsize; /* the length of the data packet */ 441 unsigned char syncmask[2]; /* sync. bits */ 442} mousemode_t; 443.Ed 444.Pp 445The 446.Dv protocol 447is 448.Dv MOUSE_PROTO_PS2 449at the operation level zero and two. 450.Dv MOUSE_PROTO_SYSMOUSE 451at the operation level one. 452.Pp 453The 454.Dv rate 455is the status report rate (reports/sec) at which the device will send 456movement report to the host computer. 457Typical supported values are 10, 20, 40, 60, 80, 100 and 200. 458Some mice may accept other arbitrary values too. 459.Pp 460The 461.Dv resolution 462of the pointing device must be one of 463.Dv MOUSE_RES_XXX 464constants or a positive value. 465The greater the value 466is, the finer resolution the mouse will select. 467Actual resolution selected by the 468.Dv MOUSE_RES_XXX 469constant varies according to the model of mouse. 470Typical resolutions are: 471.Pp 472.Bl -tag -width MOUSE_RES_MEDIUMHIGH__ -compact 473.It Dv MOUSE_RES_LOW 47425 ppi 475.It Dv MOUSE_RES_MEDIUMLOW 47650 ppi 477.It Dv MOUSE_RES_MEDIUMHIGH 478100 ppi 479.It Dv MOUSE_RES_HIGH 480200 ppi 481.El 482.Pp 483The 484.Dv accelfactor 485field holds a value to control acceleration feature 486.Pq see Sx Acceleration . 487It must be zero or greater. If it is zero, acceleration is disabled. 488.Pp 489The 490.Dv packetsize 491field specifies the length of the data packet. 492It depends on the 493operation level and the model of the pointing device. 494.Pp 495.Bl -tag -width level_0__ -compact 496.It Em level 0 4973 bytes 498.It Em level 1 4998 bytes 500.It Em level 2 501Depends on the model of the device 502.El 503.Pp 504The array 505.Dv syncmask 506holds a bit mask and pattern to detect the first byte of the 507data packet. 508.Dv syncmask[0] 509is the bit mask to be ANDed with a byte. 510If the result is equal to 511.Dv syncmask[1] , 512the byte is likely to be the first byte of the data packet. 513Note that this detection method is not 100% reliable, 514thus, should be taken only as an advisory measure. 515.Pp 516.It Dv MOUSE_SETMODE Ar mousemode_t *mode 517The command changes the current operation parameters of the mouse driver 518as specified in 519.Ar mode . 520Only 521.Dv rate , 522.Dv resolution , 523.Dv level 524and 525.Dv accelfactor 526may be modifiable. 527Setting values in the other field does not generate 528error and has no effect. 529.Pp 530If you do not want to change the current setting of a field, put -1 531there. 532You may also put zero in 533.Dv resolution 534and 535.Dv rate , 536and the default value for the fields will be selected. 537.\" .Pp 538.\" .It Dv MOUSE_GETVARS Ar mousevar_t *vars 539.\" .It Dv MOUSE_SETVARS Ar mousevar_t *vars 540.\" These commands are not supported by the 541.\" .Nm 542.\" driver. 543.Pp 544.It Dv MOUSE_READDATA Ar mousedata_t *data 545.\" The command reads the raw data from the device. 546.\" .Bd -literal 547.\" typedef struct mousedata { 548.\" int len; /* # of data in the buffer */ 549.\" int buf[16]; /* data buffer */ 550.\" } mousedata_t; 551.\" .Ed 552.\" .Pp 553.\" Upon returning to the user program, the driver will place the number 554.\" of valid data bytes in the buffer in the 555.\" .Dv len 556.\" field. 557.\" .Pp 558.It Dv MOUSE_READSTATE Ar mousedata_t *state 559.\" The command reads the hardware settings from the device. 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. It is usually 3 bytes. 564.\" The buffer is formatted as follows: 565.\" .Pp 566.\" .Bl -tag -width Byte_1 -compact 567.\" .It Byte 1 568.\" .Bl -tag -width bit_6 -compact 569.\" .It bit 7 570.\" Reserved. 571.\" .It bit 6 572.\" 0 - stream mode, 1 - remote mode. 573.\" In the stream mode, the pointing device sends the device status 574.\" whenever its state changes. In the remote mode, the host computer 575.\" must request the status to be sent. 576.\" The 577.\" .Nm 578.\" driver puts the device in the stream mode. 579.\" .It bit 5 580.\" Set if the pointing device is currently enabled. Otherwise zero. 581.\" .It bit 4 582.\" 0 - 1:1 scaling, 1 - 2:1 scaling. 583.\" 1:1 scaling is the default. 584.\" .It bit 3 585.\" Reserved. 586.\" .It bit 2 587.\" Left button status; set if pressed. 588.\" .It bit 1 589.\" Middle button status; set if pressed. 590.\" .It bit 0 591.\" Right button status; set if pressed. 592.\" .El 593.\" .It Byte 2 594.\" .Bl -tag -width bit_6_0 -compact 595.\" .It bit 7 596.\" Reserved. 597.\" .It bit 6..0 598.\" Resolution code: zero through three. Actual resolution for 599.\" the resolution code varies from one device to another. 600.\" .El 601.\" .It Byte 3 602.\" The status report rate (reports/sec) at which the device will send 603.\" movement report to the host computer. 604.\" .El 605These commands are not currently supported by the 606.Nm 607driver. 608.Pp 609.It Dv MOUSE_GETSTATUS Ar mousestatus_t *status 610The command returns the current state of buttons and 611movement counts as described in 612.Xr mouse 4 . 613.El 614.Sh FILES 615.Bl -tag -width /dev/npsm0 -compact 616.It Pa /dev/psm0 617`non-blocking' device node 618.It Pa /dev/bpsm0 619`blocking' device node under 620.Em devfs . 621.El 622.Sh EXAMPLE 623.Dl "device psm0 at atkbdc? irq 12 flags 0x2000" 624.Pp 625Add the 626.Nm 627driver to the kernel with the optional code to stimulate the pointing device 628after the `resume' event. 629.Pp 630.Dl "device psm0 at atkbdc? flags 0x024 irq 12" 631.Pp 632Set the device resolution high (4) and the acceleration factor to 2. 633.Sh DIAGNOSTICS 634.Pp 635At debug level 0, little information is logged except for the following 636line during boot process: 637.Bd -literal -offset indent 638psm0: device ID X 639.Ed 640.Pp 641where 642.Fa X 643the device ID code returned by the found pointing device. 644See 645.Dv MOUSE_GETINFO 646for known IDs. 647.Pp 648At debug level 1 more information will be logged 649while the driver probes the auxiliary port (mouse port). 650Messages are logged with the LOG_KERN facility at the LOG_DEBUG level 651.Pq see Xr syslogd 8 . 652.Bd -literal -offset indent 653psm0: current command byte:xxxx 654kbdio: TEST_AUX_PORT status:0000 655kbdio: RESET_AUX return code:00fa 656kbdio: RESET_AUX status:00aa 657kbdio: RESET_AUX ID:0000 658[...] 659psm: status 00 02 64 660psm0 irq 12 on isa 661psm0: model AAAA, device ID X, N buttons 662psm0: config:00000www, flags:0000uuuu, packet size:M 663psm0: syncmask:xx, syncbits:yy 664.Ed 665.Pp 666The first line shows the command byte value of the keyboard 667controller just before the auxiliary port is probed. 668It usually is 4D, 45, 47 or 65, depending on how the motherboard BIOS 669initialized the keyboard controller upon power-up. 670.Pp 671The second line shows the result of the keyboard controller's 672test on the auxiliary port interface, with zero indicating 673no error; note that some controllers report no error even if 674the port does not exist in the system, however. 675.Pp 676The third through fifth lines show the reset status of the pointing device. 677The functioning device should return the sequence of FA AA <ID>. 678The ID code is described above. 679.Pp 680The seventh line shows the current hardware settings. 681.\" See 682.\" .Dv MOUSE_READSTATE 683.\" for definitions. 684These bytes are formatted as follows: 685.Pp 686.Bl -tag -width Byte_1 -compact 687.It Byte 1 688.Bl -tag -width bit_6 -compact 689.It bit 7 690Reserved. 691.It bit 6 6920 - stream mode, 1 - remote mode. 693In the stream mode, the pointing device sends the device status 694whenever its state changes. 695In the remote mode, the host computer 696must request the status to be sent. 697The 698.Nm 699driver puts the device in the stream mode. 700.It bit 5 701Set if the pointing device is currently enabled. 702Otherwise zero. 703.It bit 4 7040 - 1:1 scaling, 1 - 2:1 scaling. 7051:1 scaling is the default. 706.It bit 3 707Reserved. 708.It bit 2 709Left button status; set if pressed. 710.It bit 1 711Middle button status; set if pressed. 712.It bit 0 713Right button status; set if pressed. 714.El 715.It Byte 2 716.Bl -tag -width bit_6_0 -compact 717.It bit 7 718Reserved. 719.It bit 6..0 720Resolution code: zero through three. 721Actual resolution for 722the resolution code varies from one device to another. 723.El 724.It Byte 3 725The status report rate (reports/sec) at which the device will send 726movement report to the host computer. 727.El 728.Pp 729Note that the pointing device will not be enabled until the 730.Nm 731driver is opened by the user program. 732.Pp 733The rest of the lines show the device ID code, the number of detected 734buttons and internal variables. 735.Pp 736At debug level 2, much more detailed information is logged. 737.Sh CAVEATS 738Many pad devices behave as if the first (left) button were pressed if 739the user `taps' the surface of the pad. 740In contrast, some pad products, e.g. some verions of ALPS GlidePoint 741and Interlink VersaPad, treat the tapping action 742as fourth button events. 743.Pp 744It is reported that Interlink VersaPad rquires both 745.Em HOOKRESUME 746and 747.Em INITAFTERSUSPEND 748flags in order to recover from suspended state. 749These flags are automatically set when VersaPad is detected by the 750.Nm 751driver. 752.Pp 753Some PS/2 mouse models from MouseSystems require to be put in the 754high resolution mode to work properly. 755Use the driver flag to 756set resolution. 757.Pp 758There is not a guaranteed way to re-synchronize with the first byte 759of the packet once we are out of synchronization with the data 760stream. 761However, if you are using the \fIXFree86\fP server and experiencing 762the problem, you may be able to make the X server synchronize with the mouse 763by switching away to a virtual terminal and getting back to the X server, 764unless the X server is accessing the mouse via 765.Xr moused 8 . 766Clicking any button without moving the mouse may also work. 767.Sh BUGS 768The ioctl command 769.Dv MOUSEIOCREAD 770has been removed. 771It was never functional anyway. 772.Sh SEE ALSO 773.Xr ioctl 2 , 774.Xr syslog 3 , 775.Xr atkbdc 4 , 776.Xr mouse 4 , 777.Xr mse 4 , 778.Xr sysmouse 4 , 779.Xr moused 8 , 780.Xr syslogd 8 781.\".Sh HISTORY 782.Sh AUTHORS 783The 784.Nm 785driver is based on the work done by quite a number of people, including 786.An Eric Forsberg , 787.An Sandi Donno , 788.An Rick Macklem , 789.An Andrew Herbert , 790.An Charles Hannum , 791.An Shoji Yuen 792and 793.An Kazutaka Yokota 794to name the few. 795.Pp 796This manual page was written by 797.An Kazutaka Yokota Aq yokota@FreeBSD.org . 798