Difference between revisions of "PS/2 interface"

From Deskthority wiki
Jump to navigation Jump to search
(Additional category, poxy illustration, minor expansion, tweaks)
(Removed stub template.)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{stub}}
+
[[File:PS2 keyboard and mouse ports.jpg|thumb|250px|PS/2 keyboard and mouse ports on a 2012 Dell OptiPlex 9010 SF]]
 +
[[File:PS2 combined keyboard and mouse port.jpg|thumb|250px|Combined keyboard/mouse port on a notebook computer]]
  
[[File:PS2 converter sockets.jpg|thumb|250px|Colour-coded keyboard and mouse sockets on a Belkin [[converter]]]]
+
The '''PS/2 interface''' is a serial keyboard and mouse interface developed by [[IBM]] for their PS/2 line of computers. The physical connector is a 6-pin mini-DIN, with four of the pins connected.
  
The '''PS/2 interface''' is a serial keyboard and mouse interface developed by [[IBM]] for their PS/2 line of computers. The PS/2 keyboard connector uses the same keyboard protocol as the [[AT keyboard interface]], but uses a Mini-DIN 6 connector with four pins connected. Like the [[XT keyboard interface|XT]] and AT interfaces before it, the PS/2 interface is not hot-swappable, and connecting a keyboard to a running computer can cause older operating systems to hang.
+
Computers generally came with two PS/2 ports, one for the keyboard, and the other for the mouse. The ports were separately marked, as computers required the correct device to be inserted into each socket. Connecting a keyboard into the mouse port, or vice versa, will traditionally not work; an IBM PS/2 computer will hang on boot with a cryptic number displayed on the screen if the keyboard is mistakenly connected to the mouse port. Contrast this with with [[Apple Desktop Bus]], which was a daisy chain bus that accepted devices in any order. Modern PCs however more often tend to feature only a single PS/2 port that can be used by either type of device.
  
For many years, keyboard ports have been coloured mauve, and mouse sockets, green. Besides the modern colour-coding, PS/2 mouse and keyboard connections are visually identical, and unlike the contemporary [[Apple Desktop Bus]], the two sockets are not compatible. Connecting a keyboard into the mouse port, or vice versa, will traditionally not work; an IBM PS/2 computer will hang on boot with a cryptic number displayed on the screen if the keyboard is mistakenly connected to the mouse port. Some more modern laptops however feature a single PS/2 port that can be used by either type of device.
+
To avoid confusion in identifying the ports, the first version of the PC System Design Guide in 1997 specified that mouse and keyboard ports would be coloured purple and green (specifically, mauve and green) for keyboard and mouse respectively.
  
For desktop keyboards, the PS/2 interface has a number of advantages over the [[Universal Serial Bus|USB]] interface:
+
PS/2 ports are not hot-swappable. Connecting a keyboard or mouse to a running machine can cause damage to some motherboards and/or some older operating systems to hang.
  
* PS/2 keyboards send commands directly to the host computer, unlike USB keyboards which must be polled for keypress events.
+
==Keyboard connection==
* Providing that the keyboard circuitry supports it, there is no limit to the number of keys which can be registered simultaneously over PS/2. The USB protocol is limited to 6 simultaneous keypresses, while PS/2 supports true [[Rollover, blocking and ghosting|N-key rollover]].
+
The PS/2 keyboard connection uses the same keyboard protocol as the [[AT keyboard interface]].
 +
 
 +
On the IBM RS/6000, the two pins not used by the PS/2 protocol connect to a speaker inside the type of IBM Model M [[IBM Enhanced Keyboard|Enhanced Keyboard]] that came with the system.
 +
Full-size and [[IBM Space Saving Keyboard|space-saving]] Model M keyboards for the IBM PC also have speaker grilles on the bottom of their cases, even though no speaker is fitted.
 +
 
 +
==Mouse connection==
 +
For mice, IBM introduced a new protocol very similar to the AT interface. This replaced serial mice and older mouse connections.
 +
 
 +
==Combined mouse/keyboard ports==
 +
Many contemporary desktop PC motherboards, and some older laptops have only a single PS/2 port.
 +
 
 +
There are unfortunately different types of combined ports:
 +
* Primarily a keyboard port, but where the two pins otherwise unused by the PS/2 interface are used for mouse signals. A mouse can be connected only through a Y-splitter cable or a dedicated mouse port on a connected keyboard.
 +
* A port that can connect either a mouse or keyboard directly (through auto-detection), or both using a Y-splitter cable.
 +
* A port that can connect either a mouse or keyboard directly through auto-detection, but which do not support Y-splitter cables.
 +
 
 +
Y-cables should have coloured and/or labelled sockets to show which device connects to which socket. Use of it should be safe with either type of combo port except that the mouse might just not be detected at all.
 +
 
 +
Y-cables without any label or colour should be used only with computers that you are sure support both mouse and keyboard simultaneously and through auto-detection.
 +
 
 +
Keyboards with PS/2 mouse out are quite rare, typically bundled only with desktop PCs they were intended for.
 +
 
 +
== Non IBM platforms ==
 +
The PS/2 port is typically associated with the IBM PS/2 and PC clones, but it has been adopted on some other platforms.
 +
 
 +
===Macintosh clones===
 +
[[File:PS-2 and ADB connectors.jpg|250px|thumb|right|PS/2 and ADB ports on the rear of a Motorola StarMax 4000/200]]
 +
Many [[Macintosh]] clones from the late 1990s also featured PS/2 mouse and keyboard ports.
 +
One advantage of this arrangement was that you could connect a two-button PC mouse to the computer and use a program such as TheMouse2B to map the second button to control+click, thereby achieving contextual menus from the right button as with a Windows computer. Shortly after the demise of the Macintosh clone industry, Apple introduced the iMac, which featured [[USB]] ports for the mouse and keyboard; this was followed three years later with [[OS X|Mac OS X]], with native support for multiple mouse buttons and right-click contextual menu activation.
 +
 
 +
===Silicon Graphics===
 +
[[Silicon Graphics]] used PS/2 mice and keyboards for their Unix workstations, starting with the Indigo² (and Challenge M). Other workstation models with the port include Indy, O2 and Octane.
 +
 
 +
===Digital Equipment===
 +
[[DEC]] used PS/2 mice and keyboards on their AlphaStation line of Unix workstations.
 +
 
 +
==Adaptors==
 +
{{main|Adaptor}}
 +
 
 +
There are passive adaptors between PS/2 and [[AT keyboard interface]]s.
 +
 
 +
Passive adaptors between PS/2 and USB ports work only with keyboards and mice that support both protocols but have only one cable.
 +
Passive adaptors are often spotted by being small and coloured green or mauve. Both green and the mauve adaptors are wired identically.
 +
 
 +
The same applies to adaptors between PS/2 mouse and 9-pin [[serial interface|serial mouse interface]]: the mouse or trackball must support both protocols.
 +
 
 +
==Converters==
 +
{{main|Converter}}
 +
 
 +
Protocol converters between PS/2 and USB tend to be on a wire. Many have a boxy shape or are split into two, supporting both a PS/2 mouse and keyboard to one USB port.
  
 
[[Category:Keyboard terms]]
 
[[Category:Keyboard terms]]
 +
[[Category:Pointing device terms]]
 
[[Category:Keyboard protocols and interfaces]]
 
[[Category:Keyboard protocols and interfaces]]
 +
[[Category:Pointing device protocols and interfaces]]

Latest revision as of 11:57, 3 February 2023

PS/2 keyboard and mouse ports on a 2012 Dell OptiPlex 9010 SF
Combined keyboard/mouse port on a notebook computer

The PS/2 interface is a serial keyboard and mouse interface developed by IBM for their PS/2 line of computers. The physical connector is a 6-pin mini-DIN, with four of the pins connected.

Computers generally came with two PS/2 ports, one for the keyboard, and the other for the mouse. The ports were separately marked, as computers required the correct device to be inserted into each socket. Connecting a keyboard into the mouse port, or vice versa, will traditionally not work; an IBM PS/2 computer will hang on boot with a cryptic number displayed on the screen if the keyboard is mistakenly connected to the mouse port. Contrast this with with Apple Desktop Bus, which was a daisy chain bus that accepted devices in any order. Modern PCs however more often tend to feature only a single PS/2 port that can be used by either type of device.

To avoid confusion in identifying the ports, the first version of the PC System Design Guide in 1997 specified that mouse and keyboard ports would be coloured purple and green (specifically, mauve and green) for keyboard and mouse respectively.

PS/2 ports are not hot-swappable. Connecting a keyboard or mouse to a running machine can cause damage to some motherboards and/or some older operating systems to hang.

Keyboard connection

The PS/2 keyboard connection uses the same keyboard protocol as the AT keyboard interface.

On the IBM RS/6000, the two pins not used by the PS/2 protocol connect to a speaker inside the type of IBM Model M Enhanced Keyboard that came with the system. Full-size and space-saving Model M keyboards for the IBM PC also have speaker grilles on the bottom of their cases, even though no speaker is fitted.

Mouse connection

For mice, IBM introduced a new protocol very similar to the AT interface. This replaced serial mice and older mouse connections.

Combined mouse/keyboard ports

Many contemporary desktop PC motherboards, and some older laptops have only a single PS/2 port.

There are unfortunately different types of combined ports:

  • Primarily a keyboard port, but where the two pins otherwise unused by the PS/2 interface are used for mouse signals. A mouse can be connected only through a Y-splitter cable or a dedicated mouse port on a connected keyboard.
  • A port that can connect either a mouse or keyboard directly (through auto-detection), or both using a Y-splitter cable.
  • A port that can connect either a mouse or keyboard directly through auto-detection, but which do not support Y-splitter cables.

Y-cables should have coloured and/or labelled sockets to show which device connects to which socket. Use of it should be safe with either type of combo port except that the mouse might just not be detected at all.

Y-cables without any label or colour should be used only with computers that you are sure support both mouse and keyboard simultaneously and through auto-detection.

Keyboards with PS/2 mouse out are quite rare, typically bundled only with desktop PCs they were intended for.

Non IBM platforms

The PS/2 port is typically associated with the IBM PS/2 and PC clones, but it has been adopted on some other platforms.

Macintosh clones

PS/2 and ADB ports on the rear of a Motorola StarMax 4000/200

Many Macintosh clones from the late 1990s also featured PS/2 mouse and keyboard ports. One advantage of this arrangement was that you could connect a two-button PC mouse to the computer and use a program such as TheMouse2B to map the second button to control+click, thereby achieving contextual menus from the right button as with a Windows computer. Shortly after the demise of the Macintosh clone industry, Apple introduced the iMac, which featured USB ports for the mouse and keyboard; this was followed three years later with Mac OS X, with native support for multiple mouse buttons and right-click contextual menu activation.

Silicon Graphics

Silicon Graphics used PS/2 mice and keyboards for their Unix workstations, starting with the Indigo² (and Challenge M). Other workstation models with the port include Indy, O2 and Octane.

Digital Equipment

DEC used PS/2 mice and keyboards on their AlphaStation line of Unix workstations.

Adaptors

There are passive adaptors between PS/2 and AT keyboard interfaces.

Passive adaptors between PS/2 and USB ports work only with keyboards and mice that support both protocols but have only one cable. Passive adaptors are often spotted by being small and coloured green or mauve. Both green and the mauve adaptors are wired identically.

The same applies to adaptors between PS/2 mouse and 9-pin serial mouse interface: the mouse or trackball must support both protocols.

Converters

Protocol converters between PS/2 and USB tend to be on a wire. Many have a boxy shape or are split into two, supporting both a PS/2 mouse and keyboard to one USB port.