MOUSE(4)
π MOUSE(4) β Kernel Interfaces Manual π
okay bestie, sit down, we're doing the Xorg mouse input driver page today and it's giving essential. This is MOUSE(4), from the Kernel Interfaces Manual section, and it's long so buckle up β there's more coming after this part, don't you dare close the tab. π¦
πΈ NAME πΈ
mouse β the Xorg mouse input driver. that's it, that's the whole name, slay. π
β¨ SYNOPSIS β¨
here's the vibe, literally copy-paste this shape into your config:
Section "InputDevice"
Identifier "idevname"
Driver "mouse"
Option "Protocol" "protoname"
Option "Device" "devpath"
...
EndSection
likeβ¦ you give it an Identifier (idevname, cute name of ur choice), you tell it Driver "mouse" obviously, then you set Option "Protocol" to protoname and Option "Device" to devpath, and there's more ... where that came from. periodt. π
π DESCRIPTION π
so mouse is an Xorg input driver for mice. shocking, i know. it supports most available mouse types and interfaces β tho the level of support for different kinds of mice lowkey depends on your OS. so like, don't come for it if ur platform is being weird. π
the mouse driver functions as a pointer input device, i.e. it's the thing making ur little arrow go. and here's the iconic part: multiple mice are supported by multiple instances of this driver. yes bestie, you can have more than one. main character energy for every rodent in the house. ππ
π₯ SUPPORTED HARDWARE π₯
π USB mouse
USB (Universal Serial Bus) ports are on basically every modern computer, no cap. several devices can be plugged into this bus β mice AND keyboards, they're all sharing the vibe. β¨
heads up: support for USB mice is platform specific. so what works on one OS might not work on urs, check ur platform, bestie.
π PS/2 mouse
the PS/2 mouse is an intelligent device β it may have more than three buttons and a wheel or a roller. iconic behavior honestly. π
the PS/2 mouse is usually compatible with the original PS/2 mouse from IBM immediately after power up. but the PS/2 mouse with additional features needs a specialized initialization procedure to enable those features. and if it doesn't get that proper initialization? it behaves as though it were an ordinary two or three button mouse. so ur fancy extra buttons justβ¦ don't exist. it's giving downgraded. π
π Serial mouse
there have been numerous serial mouse models from a number of manufacturers. despite the wide range of variations, there have been relatively few protocols (that's the data format, bestie) with which the serial mouse talks to the host computer. so many mice, so few languages. π
the modern serial mouse conforms to the PnP COM device specification so the host computer can automatically detect the mouse and load an appropriate driver. and good news β this driver supports that spec and can detect popular PnP serial mouse models on most platforms. we love an auto-detect moment. π«Ά
π Bus mouse
the bus mouse connects to a dedicated interface card in an expansion slot. some older video cards β notably those from ATI β and integrated I/O cards may also have a bus mouse connector. vintage chic, honestly. πΈ
π¦ so likeβ¦ which one do i have?? π¦
the interface type of the mouse can be determined by looking at the connector of the mouse. detective work, let's go: π
- USB mice have a thin rectangular connector.
- PS/2 mice are equipped with a small, round DIN 6-pin connector.
- Serial mice have a D-Sub female 9- or 25-pin connector.
- Bus mice have either a D-Sub male 9-pin connector or a round DIN 9-pin connector.
some mice come with adapters with which the connector can be converted to another. and if you're gonna use such an adapter, remember this: the connector at the very end of the mouse/adapter pair is what matters. the tip of the chain is the moment. the finale. β
okay that's part one bestie, there's MORE coming, don't go anywhere π
π CONFIGURATION DETAILS π
okay so depending on the X server version you're running, input device options may be set in either a xorg.conf file, an xorg.conf.d snippet, or in the configuration files read by the Hardware Abstraction Layer (HAL) daemon, hald(1).
Please refer to xorg.conf(5) for general configuration details and for options that can be used with all input drivers. This section only covers configuration details specific to this driver.
The driver can auto-detect the mouse type on some platforms. On some platforms this is limited to plug and play serial mice, and on some the auto-detection works for any mouse that the OS's kernel driver supports. On others, it is always necessary to specify the mouse protocol in the config file. The README document provided with this driver contains some detailed information about this.
The following driver Options are supported:
Option "Protocol" "string"β Specify the mouse protocol. Valid protocol types include:
Auto, Microsoft, MouseSystems, MMSeries, Logitech, MouseMan,
MMHitTab, GlidePoint, IntelliMouse, ThinkingMouse,
ValuMouseScroll, AceCad, PS/2, ImPS/2, ExplorerPS/2,
ThinkingMousePS/2, MouseManPlusPS/2, GlidePointPS/2,
NetMousePS/2, NetScrollPS/2, BusMouse, SysMouse, WSMouse,
USB, VUID, Xqueue.
Not all protocols are supported on all platforms. The "Auto" protocol specifies that protocol auto-detection should be attempted. The default protocol setting is platform-specific.
Option "Device" "string"β Specifies the device through which the mouse can be accessed. A common setting is"/dev/mouse", which is often a symbolic link to the real device. This option is mandatory, and there is no default setting. The driver may however attempt to probe some default devices if this option is missing. Property:"Device Node"(read-only).Option "Buttons" "integer"β Specifies the number of mouse buttons. In cases where the number of buttons cannot be auto-detected, the default value is3. The maximum number is24.Option "Emulate3Buttons" "boolean"β Enable/disable the emulation of the third (middle) mouse button for mice which only have two physical buttons. The third button is emulated by pressing both buttons simultaneously. Default: on, until a press of a physical button 3 is detected. Property:"Mouse Middle Button Emulation"Option "Emulate3Timeout" "integer"β Sets the timeout (in milliseconds) that the driver waits before deciding if two buttons were pressed"simultaneously"when 3 button emulation is enabled. Default:50. Property:"Mouse Middle Button Timeout"Option "ChordMiddle" "boolean"β Enable/disable handling of mice that send left+right events when the middle button is used. Default: off.Option "EmulateWheel" "boolean"β Enable/disable"wheel"emulation. Wheel emulation means emulating button press/release events when the mouse is moved while a specific real button is pressed. Wheel button events (typically buttons 4 and 5) are usually used for scrolling. Wheel emulation is useful for getting wheel-like behaviour with trackballs. It can also be useful for mice with 4 or more buttons but no wheel. See the description of theEmulateWheelButton,EmulateWheelInertia,XAxisMapping, andYAxisMappingoptions below. Default: off.Option "EmulateWheelButton" "integer"β Specifies which button must be held down to enable wheel emulation mode. While this button is down, X and/or Y pointer movement will generate button press/release events as specified for theXAxisMappingandYAxisMappingsettings. If set to0, no button is required and any motion of the device is converted into wheel events. Default:4.Option "EmulateWheelInertia" "integer"β Specifies how far (in pixels) the pointer must move to generate button press/release events in wheel emulation mode. Default:10.Option "EmulateWheelTimeout" "integer"β Specifies the time in milliseconds theEmulateWheelButtonmust be pressed before wheel emulation is started. If theEmulateWheelButtonis released before this timeout, the original button press/release event is sent. Default:200.Option "XAxisMapping" "N1 N2"β Specifies which buttons are mapped to motion in the X direction in wheel emulation mode. Button numberN1is mapped to the negative X axis motion and button numberN2is mapped to the positive X axis motion. Default: no mapping.Option "YAxisMapping" "N1 N2"β Specifies which buttons are mapped to motion in the Y direction in wheel emulation mode. Button numberN1is mapped to the negative Y axis motion and button numberN2is mapped to the positive Y axis motion. Default: no mapping.Option "ZAxisMapping" "X",Option "ZAxisMapping" "Y",Option "ZAxisMapping" "N1 N2",Option "ZAxisMapping" "N1 N2 N3 N4"β Set the mapping for the Z axis (wheel) motion to buttons or another axis (X or Y). Button numberN1is mapped to the negative Z axis motion and button numberN2is mapped to the positive Z axis motion. For mice with two wheels, four button numbers can be specified, with the negative and positive motion of the second wheel mapped respectively to buttons numberN3andN4. Note that the protocols for mice with one and two wheels can be different and the driver may not be able to autodetect it. Default:"4 5".Option "ButtonMapping" "N1 N2 [...]"β Specifies how physical mouse buttons are mapped to logical buttons. Physical button 1 is mapped to logical buttonN1, physical button 2 toN2, and so forth. This enables the use of physical buttons that are obscured byZAxisMapping. Default:"1 2 3 8 9 10 ...".Option "FlipXY" "boolean"β Enable/disable swapping the X and Y axes. This transformation is applied after theInvX,InvYandAngleOffsettransformations. Default: off.Option "InvX" "boolean"β Invert the X axis. Default: off.Option "InvY" "boolean"β Invert the Y axis. Default: off.Option "AngleOffset" "integer"β Specify a clockwise angular offset (in degrees) to apply to the pointer motion. This transformation is applied before theFlipXY,InvXandInvYtransformations. Default:0.Option "SampleRate" "integer"β Sets the number of motion/button events the mouse sends per second. Setting this is only supported for some mice, including some Logitech mice and some PS/2 mice on some platforms. Default: whatever the mouse is already set to.Option "Resolution" "integer"β Sets the resolution of the device in counts per inch. Setting this is only supported for some mice, including some PS/2 mice on some platforms. Default: whatever the mouse is already set to.Option "Sensitivity" "float"β Mouse movements are multiplied by this float before being processed. Use this mechanism to slow down high resolution mice. Because values bigger than1.0will result in not all pixels on the screen being accessible, you should better use mouse acceleration (seeman xset) for speeding up low resolution mice. Default:1.0Option "DragLockButtons" "L1 B2 L3 B4"β Sets"drag lock buttons"that simulate holding a button down, so that low dexterity people do not have to hold a button down at the same time they move a mouse cursor. Button numbers occur in pairs, with the lock button number occurring first, followed by the button number that is the target of the lock button.Option "DragLockButtons" "M1"β Sets a"master drag lock button"that acts as a"Meta Key"indicating that the next button pressed is to be"drag locked".Option "ClearDTR" "boolean"β Enable/disable clearing the DTR line on the serial port used by the mouse. Some dual-protocol mice require the DTR line to be cleared to operate in the non-default protocol. This option is for serial mice only and is handled by the X server. Default: off.Option "ClearRTS" "boolean"β Enable/disable clearing the RTS line on the serial port used by the mouse. Some dual-protocol mice require the RTS line to be cleared to operate in the non-default protocol. This option is for serial mice only and is handled by the X server. Default: off.Option "BaudRate" "integer"β Set the baud rate to use for communicating with a serial mouse. This option should rarely be required because the default is correct for almost all situations. Valid values include:300,1200,2400,4800,9600,19200. Default:1200.
There are some other options that may be used to control various parameters for serial port communication, but they are not documented here because the driver sets them correctly for each mouse protocol type.
π SEE ALSO π
Xorg(1),xorg.conf(5),Xserver(1),X(7),README.mouse.hal(7),hald(8),fdi(5).
X Version 11 Β· xf86-input-mouse 1.9.3 Β· MOUSE(4) β that's the footer, bestie. No date on this one, just that version energy. π
π¦ where this page comes from
- debian bookworm: xserver-xorg-input-mouse 1:1.9.3-1+b1
- debian trixie: xserver-xorg-input-mouse 1:1.9.3-1+b1
- ubuntu jammy: xserver-xorg-input-mouse 1:1.9.3-1build2
- ubuntu noble: xserver-xorg-input-mouse 1:1.9.3-1build2
- ubuntu questing: xserver-xorg-input-mouse 1:1.9.3-1build2
- ubuntu resolute: xserver-xorg-input-mouse 1:1.9.3-1build3
- ubuntu stonking: xserver-xorg-input-mouse 1:1.9.3-1build3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms