Which PS‑2 Connector Is Green?
You’ve probably seen a green port on an old desktop, a purple one, and maybe even a black or blue. The green one is the mouse connector. That’s the short answer. But the story behind the colors, why the green was chosen, and how to tell the ports apart in practice is a little more interesting than just slapping a label on a cable Less friction, more output..
What Is a PS‑2 Connector?
The PS‑2 interface was Apple’s original keyboard and mouse connector, later adopted by IBM and the rest of the PC world. It’s a 6‑pin mini‑D‑sub socket that plugs straight into the motherboard. The name “PS‑2” comes from “Personal System 2,” the series of IBM PCs that first shipped with it. Even after USB became the standard, many motherboards kept the PS‑2 ports because they’re cheap, reliable, and still useful for certain peripherals.
A PS‑2 connector looks like a small, flat, round socket. Even so, the pins are arranged in a 3‑by‑2 grid, plus a central pin for grounding. Which means the keying (the little notch that prevents you from swapping a keyboard for a mouse) sits on the left side of the socket. That notch is what tells you whether the port is for a keyboard or a mouse That's the part that actually makes a difference. Surprisingly effective..
Why It Matters / Why People Care
If you’re still using an old desktop, a gaming rig that needs a mechanical keyboard, or a custom build that relies on legacy hardware, knowing which PS‑2 port is which is essential. A keyboard plugged into the mouse port won’t work, and vice versa. It can also be a troubleshooting clue: if the mouse isn’t responding, check that it’s in the green port, not the purple one That alone is useful..
Short version: it depends. Long version — keep reading.
Even in modern setups, some people keep PS‑2 ports for high‑precision gaming mice that offer a polling rate of 10 kHz, higher than most USB‑based mice. So the color coding isn’t just a quirk—it’s a practical design choice that persists to this day.
How It Works (or How to Do It)
The Color Scheme
| Port Color | Device Type | Keying | Pinout |
|---|---|---|---|
| Green | Mouse | Right‑handed | 1‑6: Data, 2‑5: Clock, 3: Ground |
| Purple | Keyboard | Left‑handed | 1‑6: Data, 2‑5: Clock, 3: Ground |
| Black/Blue | Some older or OEM variations | Same as above |
- Green is the standard for mice.
- Purple is the standard for keyboards.
- Some motherboards use black or blue for either port, but the keying will still match the device type.
The keying notch is the real differentiator. The green (mouse) port has the notch on the right side from the perspective of the socket, while the purple (keyboard) port’s notch is on the left. That way, you can’t accidentally plug a keyboard into a mouse port or vice versa.
Worth pausing on this one The details matter here..
Pin Functions
The pins themselves are the same for both devices. The difference is purely mechanical:
- Pin 1 – Data
- Pin 2 – Clock
- Pin 3 – Ground
- Pin 4 – +5 V (for keyboards only)
- Pin 5 – +5 V (for keyboards only)
- Pin 6 – Reserved
Mice use only pins 1–3; keyboards need the +5 V pins for power. That’s why the keyboard port is slightly larger to accommodate those extra pins Simple, but easy to overlook..
How to Identify the Port
- Look at the keying notch. If it’s on the right side, it’s a mouse port (green). If it’s on the left, it’s a keyboard port (purple).
- Check the color. Most motherboards paint the sockets: green for mouse, purple for keyboard.
- Feel the shape. The keyboard port is a little wider because of the extra +5 V pins.
- Read the manual. If you’re still unsure, the motherboard manual will list the port colors and functions.
Common Mistakes / What Most People Get Wrong
- Assuming color is universal – Some OEM boards use black or blue instead of green/purple. Relying solely on color can lead to a dead mouse.
- Forgetting the keying – Even if the port is green, a keyboard cable will not fit because of the notch.
- Plugging a keyboard into the mouse port – That’s a classic error. The +5 V pins won’t line up, and the keyboard just won’t work.
- Ignoring the pinout – DIY enthusiasts who try to repurpose a PS‑2 port for a different device often overlook the need for the correct power pins.
- Overlooking the mouse’s higher polling rate – Some people think any mouse will work in either port, but a high‑end gaming mouse may only achieve its best performance on the green port.
Practical Tips / What Actually Works
- Label your cables. A simple label on the cable end tells you whether it’s a keyboard or mouse, preventing mix‑ups.
- Use a small piece of colored tape. If your motherboard’s colors are ambiguous, tape the port to match the cable (green for mouse, purple for keyboard).
- Keep a spare mouse. If you’re building a rig for gaming, have a quick‑swap mouse that plugs into the green port.
- Check the BIOS. Some BIOS settings allow you to disable one of the PS‑2 ports. If you’re using a USB keyboard, you can safely disable the keyboard port to avoid confusion.
- Upgrade wisely. If you’re using a mechanical keyboard that requires the +5 V pins, keep the keyboard in the purple port. A standard USB keyboard can be plugged into either port via an adapter, but it’s cleaner to keep the native PS‑2 slot free.
FAQ
Q: Can I plug a USB mouse into a PS‑2 green port?
A: Not directly. You’d need a USB‑to‑PS‑2 adapter, which is uncommon and not guaranteed to work Small thing, real impact..
Q: Why is the green port sometimes black?
A: Some manufacturers use black or blue paint for aesthetic reasons, but the keying and pinout remain the same. Always check the notch.
Q: Does the green port support a 5‑V mouse?
A: No, mice use only data, clock, and ground. The +5 V pins are only for keyboards.
Q: Can I use a gaming mouse that plugs into the green port on a laptop?
A: Most laptops only have USB, so you’d need an external USB‑to‑PS‑2 adapter. It’s usually a better idea to use a USB mouse Worth keeping that in mind. Still holds up..
Q: What if my motherboard only has one PS‑2 port?
A: It will be a dual‑function port. The keying will tell you whether it’s set up for a keyboard or mouse, but you can’t use both simultaneously.
Closing
So, the green PS‑2 connector is the mouse port. It’s a simple, color‑coded design that has survived for decades because it works. Consider this: knowing the difference between green and purple (or black/blue) keeps your peripherals happy and your build running smoothly. And if you’re still stuck, just remember the keying notch—right side for mouse, left side for keyboard—and you’ll never plug the wrong cable into the wrong port again Easy to understand, harder to ignore..
Final Thoughts
The PS‑2 interface may seem quaint next to the ubiquity of USB, but its legacy lives on in many modern motherboards and accessories. Here's the thing — the green connector’s purpose is unmistakable: it’s the dedicated mouse port, distinguished by its keying notch and the absence of the +5 V supply pins that keyboards rely on. By respecting this simple convention—labeling cables, using color‑coded tape, and checking the port’s notch—you eliminate the most common wiring mishaps that can turn a fresh build into a frustrating puzzle.
Remember that the green port is not a catch‑all for any PS‑2 device; it’s specifically engineered for mice. If you ever need to connect a keyboard to that slot, you’ll either have to re‑wire the motherboard (a risky endeavor) or, more safely, use a USB keyboard and keep the PS‑2 slot free for a mouse or a legacy peripheral that truly requires it.
In the end, the PS‑2 green port is a testament to thoughtful design: a small, color‑coded, keyed connector that keeps your peripherals organized and your system running smoothly. Whether you’re a seasoned builder or a curious hobbyist, understanding the distinction between green and purple (or black/blue) ports is a quick win that saves time, effort, and potential headaches.
This is where a lot of people lose the thread.
So next time you’re assembling a rig or troubleshooting a misbehaving mouse, take a moment to check the color and the notch. It’s a tiny detail that can make a big difference—keeping your hardware happy and your workflow uninterrupted But it adds up..