A PS/2 keyboard is a PC keyboard that uses IBM’s six-pin Mini-DIN connector, introduced with the Personal System/2 line in 1987 and standard on many Windows XP-era desktops.
The purple round plug on the back of an old desktop is the giveaway — and it hung on for roughly two decades because it worked before Windows even started. When a motherboard refuses to recognize a USB keyboard in BIOS, the PS/2 port is usually the escape hatch. This breakdown covers the connector, the protocol behind it, and what happens when you bridge the two worlds with an adapter.
What Does a PS/2 Keyboard Actually Look Like?
A PS/2 keyboard connects through a six-pin Mini-DIN plug — smaller than the older five-pin DIN used by IBM PC/AT keyboards, and color-coded purple for the keyboard port.
The matching socket sits on the motherboard as a female connector; the cable ends in a male plug. Its twin, colored green, is the PS/2 mouse port — identical connector shape, different function, a distinction that trips people up constantly. Pin 1 carries data, pin 3 ground, pin 4 +5 V, and pin 5 clock, with pins 2 and 6 reserved.
The interface runs a synchronous serial protocol: one start bit, eight data bits sent least-significant bit first, odd parity, and a stop bit, clocked at roughly 10 to 16.7 kHz. It’s bidirectional: the keyboard sends scan codes, and the host can send commands for reset, typematic rate, scan-code-set selection, and LED control.
Table: PS/2 Keyboard Specs at a Glance
| Specification | Value | Note |
|---|---|---|
| Connector type | Six-pin Mini-DIN | Female socket on PC, male plug on cable |
| Keyboard port color | Purple | Green conventionally marks the mouse port |
| Supply voltage | 5.0 ± 0.5 V DC | Maximum cited current around 275 mA |
| Pin 1 / Pin 5 | Data / Clock | Pins 2 and 6 reserved; 3 ground, 4 +5 V |
| Signal protocol | Clocked serial scan codes | Start bit, 8 data bits, odd parity, stop bit |
| Clock rate | 10.0–16.7 kHz | Synchronous, host-clocked |
| Data direction | Bidirectional | Host can send reset and LED commands |
| Typical key count | 84–101 keys | AT-family scan code protocol |
| Hot-pluggable | No | Power off before plugging or unplugging |
Why Windows XP PCs Used PS/2 Keyboards
PS/2 won on cost, simplicity, and one advantage that mattered more than both: it worked before the OS loaded, handled by the system’s keyboard controller and firmware rather than a USB host controller.
That pre-OS availability was the real prize — input for power-on self-test, BIOS configuration, boot menus, and OS installation without BIOS-level USB support or “USB legacy support,” which older boards handled inconsistently or not at all. The interface also skipped device enumeration entirely, so there was no driver negotiation to fail. PS/2 descended directly from the IBM AT keyboard interface, keeping compatibility with DOS-era and early Windows software intact. Windows XP supported USB keyboards fine when the hardware and drivers were in place, but plenty of desktops from that era still shipped the purple port as the trusted fallback.
If you’re rebuilding a period-correct XP machine and need a replacement board, this roundup of tested Windows XP keyboards covers the models that still work with legacy boards.
Can You Use an Adapter to Connect PS/2 to USB?
Sometimes — and only in one direction. An ordinary passive PS/2-to-USB adapter works only when the keyboard was built for dual-mode signaling, which many later models were.
A PS/2-only keyboard generally needs an active converter chip to talk to a USB port. Going the other way is worse: a USB keyboard cannot be made PS/2-compatible by swapping the plug, because PS/2 sends clocked serial scan codes while USB keyboards speak Human Interface Device packets. That gap is documented in this PS/2 keyboard interface reference, which lays out the signaling and pin assignments in detail.
One safety note: PS/2 is generally not hot-pluggable. Pulling or inserting a keyboard while the PC is powered can cause a malfunction or damage older hardware, so shut down first unless the manufacturer explicitly allows otherwise.
- Passive adapter + dual-mode keyboard: usually works.
- Passive adapter + PS/2-only keyboard: usually fails.
- USB keyboard into a PS/2 port: not possible without active conversion.
- PS/2 mouse port vs. keyboard port: identical shape, not interchangeable in practice.
The Bottom Line on the Purple Plug
PS/2 keyboards earned their long run by being cheap, electrically simple, and available before anything else in the machine woke up. That’s why the port lingered on motherboards well past its prime — and why Windows XP-era machines relied on it.
Three practical takeaways: don’t confuse the six-pin Mini-DIN with the older five-pin DIN AT connector, don’t assume keyboard and mouse ports swap freely, and don’t judge compatibility from the connector alone — the firmware, controller, adapter, and OS all have to agree.
Common Questions
Is A Purple Keyboard Plug Always PS/2?
Laptops and some all-in-ones skip the connector entirely. If the plug has six pins and a small plastic key block, it’s Mini-DIN and almost certainly PS/2.
Why Does My Keyboard Work In BIOS But Not In Windows?
That pattern usually points to a driver or USB legacy-support issue rather than a dead keyboard. A PS/2 board bypasses USB enumeration entirely, which is why it responds during POST. Check BIOS settings for USB legacy support, and try the PS/2 port directly if the board has one.
Can A PS/2 Keyboard Damage A Modern Motherboard?
Plugging one in while the system is powered carries the same risk it always did — PS/2 is not treated as hot-pluggable, and older controllers are the most vulnerable. Power down before connecting or removing the cable. Modern boards with PS/2 combo ports handle it better, but shutdown first is still the habit worth keeping.
Sources
- Columbia University. “PS/2 Keyboard Interface” Documents pin assignments, signaling, and protocol details.
- Wikipedia. “IBM PC keyboard” Background on connector history and the IBM PS/2 line.