Skip to content(if available)orjump to list(if available)

A note on the USB-to-PS/2 mouse adapter that came with Microsoft mouse devices

alexey-salmin

Oh wow, what a blast from the past. Around the year 2000 or 2001 I got an optical mouse as a present (either birthday or new year, can't remember). I really wanted it for a long time because playing StarCraft with a mechanical one was rather painful.

Needless to say it was a USB mouse and I only had ps/2. I purchased an adapter but it never worked despite spending a lot of time trying and testing it with different PCs and mice.

Then I took the adapter to an electronics repair shop. They opened it up and explained to me it was fake: it just connected the wires without any circuitry for the real USB support. They had no idea why anyone would manufacturer such a thing.

Well, now I know why. I spent quite a long time thinking I was sold a counterfeit adapter.

spuz

After reading the article I wondered if the adapter would work with other mice and if not wouldn't that cause confusion. So I guess we got an answer to those questions.

usrusr

Chances are there are other mice that support both protocols on the controller, but use a different USB-PS/2 pin mapping.

My memory suggests that Logitech mice at the time had a PS/2 connector "natively" on the cable that plugs into an adapter for USB. Surely they did the same, skip on any active controller in the adapter and do it all on the controller they already have - those adapters where everywhere, and included with every mouse for a long time, which surely would not have happened if they incurred any meaningful cost pressure.

Now did they use the same mapping? (assuming my memories are not completely wrong anyways) With one being USB-PS/2 and the other PS/2-USB, a test would be stacking both into a noop-adapter USB-USB or PS/2-PS/2 and see if it works.

usrusr

PS:

Sorry I think I was wrong, had an edit open but failed to submit: I believe that I was thinking of keyboards that did the same (in particular of Cherry keyboards), not Logi mice. The same, and for longer I think, because PS/2 held out so much longer in its keyboard variant. At first because of unreliable (or missing?) USB implementation on BIOS level, then because of lingering distrust.

Where PS/2 continued to exist surprisingly long (perhaps still?): the internal connection from laptop mainboard to touchpad. Not the DIN connector, but the protocol. And as a consequence, the cheapest external touchpads (those riding the efficiency of scale of the much higher volume internal market) had been PS/2 for a surprisingly long time.

xattt

I tried with Logitech mice (MX510, in pearly red) and it didn’t work.

trinix912

The same happened to me when ordering a DIN-to-PS2 keyboard adapter from Aliexpress. But that one doesn't really need any extra circuit IIRC so it was even weirder they made a fake one.

unwind

But making a counterfeit and going to through the trouble to pointlessly connect incompatible signals makes even less sense, doesn't it? Unless the idea is that it should "look legit" by having something on the inside, I guess. But then some 1-cent IC would have made it more believable so it still doesn't quite make sense. Perhaps (perhaps!) I'm now overthinking this. Sorry.

Lammy

I've always wondered that about these passive USB to FireWire adapters: https://www.amazon.com/s?k=firewire+to+usb+adapter

Is there something out there doing the same sort of trick as the mouse? I can't find any reference to one so as far as I can tell these things are entirely useless.

qingcharles

What in god's name?

There's a photo of the inside of one which just shows glue and wires, which backs up parent poster's conspiracy theory thinking about companies just making nonsense cables:

https://m.media-amazon.com/images/I/618Us-meOFL.jpg

There are dozens of these things. All the positive reviews look fake, too.

I can't find any reference to any legitimate product ever that had some sort of passive USB/Firewire adapter.

One review points out that Firewire uses 12V power, and a few others get power warnings from their devices potentially indicating that the pins are just being shorted somewhere.

xattt

Electronics shop assumed it was an active converter, rather than passive.

rob74

"Where were you then, Raymond Chen? I could have really used your advice 25 years ago!"

beAbU

Well, shit! This explains away the tons of frustration I had as a 10 year old battling with seemingly random optical mice not working with the PS/2 adapter.

InsomniacL

Once had a very awkward conversation with a sales person in PC World.

I had been given a old retired server from work to take home and learn with... only problem was it had no USB.

I was asking for a PS2 keyboard, he said they don't sell them but I could use any USB keyboard, I told him I don't have any USB ports and I needed a PS2 keyboard.

After awhile of him going back and forth with his manager, only to return to tell me i can use USB, It turned out he thought I was trying to buy a Play Station 2 keyboard and he'd never heard of PS/2!

MrGilbert

I wear a pretty neat shirt which shows PS/2 mouse and keyboard ports and a text saying "I'm this old" at the front. As I will turn 40 next year, it felt adequate.

WillAdams

Most annoying tech support call ever:

Customer: Our computer won't boot. Come over and fix it.

Me: Please tell me what message you see on the screen which describes why the computer will not boot.

Customer: No, just come fix it.

Me: Okay, but we're charging for a service call even if I don't touch your computer.

Customer: Just fix it.

Me: (drive over, walk up to the office where the computer is at, pause at door and look in to read the screen across the room (younger me had much better vision) announce)

You have the mouse plugged into the keyboard port, and the keyboard plugged into the mouse port. Power the computer down and swap the connections and it will then boot.

jdeibele

I did tech support for a startup a long time ago. I mostly won't do any phone support for friends and family because they have the nasty habit of doing something like this:

Me: What do you see?

Them: <click> <click> <click> Nothing.

Me: What are you doing?

Them: <click><click><click> Nothing.

So I've been doing it in person or don't do it at all. Too many hours trying to visualize what in the world might be on the other person's screen.

The reason I'm moved to comment is two things: one is that my daughter in college had me help her file her taxes by starting with FaceTime on her MacBook, then sharing the screen so that I could see exactly what she was doing. She's not technically inclined and it wasn't something that I suggested, she figured out how to do it herself.

The other thing is that my mother-in-law is 90 and also not a techie. But I've been able to help her with 1 or 2 issues remotely because she's able to take a photo of the situation with her cell phone and text it to me.

Things have progressed to the point where hopefully your customer could have been convinced to send you a picture and saved you a trip.

account42

This would make more sense with a parallel port and/or the DIN connector used by keyboards before PS/2, both of which have been extinct for much longer than PS/2, which is still being added to some main boards.

I would have included an RS232 D-Sub serial connector but those are still used if not for mice.

MrGilbert

I mean… Yes, I agree. But I'm not, like, THAT old. o.O

Also, from a visual standpoint, it’s quite appealing the way it is: https://www.qwertee.com/shop/tees/i-m-this-old-468

sorenjan

Or a gamepad port on a Soundblaster card.

quesera

Don't forget the Centronics 36-pin parallel connector!

xxs

PS/2 is like the 90s. If it didn't have screws for positive affixation it doesn't count.

TomatoCo

You'll be thrilled to hear what they're doing with higher wattage USB-C cables, then! https://www.startech.com/en-eu/cables/s2cepr2m-usbsl-cable

dehrmann

The AT connector predated that and is essentially a jumbo PS/2 connector. Mice were DB9 serial, though.

jayflux

Its funny because I'm younger than you by a couple of years and I can remember the big parallel ports on keyboards before PS/2 became popular! PS/2 still feels modern to me in comparison

gattilorenz

Big parallel ports? There was some proprietary DB-something connectors (for example, the Olivetti M24/AT&T 6300 had one), but if you're younger than 40 you likely have been using an AT connector (basically PS/2, but physically larger) for the keyboard, and a DB-9 or DB-25 for the serial mouse - and that is easy to mistake for a parallel port.

PS/2 and AT refer to the IBM computer models where the connectors were introduced, of course.

diggan

> Its funny because I'm younger than you by a couple of years

I'm 33 and also grew up with computers that only had PS/2 ports! Granted, USB existed, but the PCs I had as a youngster were old PCs.

I'm quite sure I literally used the adapter mentioned in the submission, as one of the first mouses I bought myself was a Microsoft mouse that came with a PS/2<>USB adapter!

toxican

For a few years during the Playstation 2's reign, I used a PS/2 -> USB adapter on my PS2 for my keyboard so I could text-chat while playing Tony Hawk games online. Always saw some humor in that.

m463

and OS/2 meant half operating system. :)

I think I have some old mice soemwhere that came with a ps2 to usb adapter. (I should go pull them out, I don't recall f they were PS/2 mice with ps/2 to usb adapters or USB mice with USB to ps/2 adapters)

3np

And yet... On almost every new ATX motherboard, there are PS2 inputs. And barely any options at all even available for purchase for individuals with, say, more than one RJ45 port, regardless of price. I don't get just how stagnant that industry is.

Symbiote

A friend who works in banking said their use of PS/2 inputs are a security measure.

They can disable USB support, but still have keyboards and mice.

jayflux

I don’t think that’s the case anymore. I just popped on to newegg and scrolled through their “best seller” motherboards, none of them have PS/2 ports. They’ve started to die off on enthusiast motherboards for the past few years.

userbinator

Some more details (and interesting historical perspective) can be found here: https://superuser.com/questions/704920/how-to-determine-if-u...

Apparently around 2014 the vast majority of mouses and keyboards were dual-protocol, but in 2019 the first reports of them being USB-only started appearing. I suspect a lot of the cheapest mouse SoCs are still dual-protocol as they worked when first designed, and they just kept producing them without any changes.

Pinout and explanation of how they detect protocol here: https://retrocomputing.stackexchange.com/questions/28288/how...

squigg

I have an old Roland S760 sampler from the early 90s. One of the innovations Roland made in this (lower cost) space was to add the ability to hook up a monitor and a mouse, to make chopping samples and programming patches much easier than peering at a tiny screen like on an Akai S1000 of the time (which I also have), or even worse on the S760's tiny two-line display

The mouse connector is MSX, which are very difficult to find these days, so mine came with a DIY MSX->PS2 connector. Sadly the PS2 mouse it came with was on it's last legs, so I wanted to replace it with something more modern. All I could find at the time were MS mice that came with a USB-PS2 connector. When I plugged it in, it barely worked and I could never understand why.

I did finally manage to track down a NOS PS2 mouse and it worked perfectly again. Until this post, I never understood just WHY it didn't work, so thank you!

The S760 is a fantastic sampler. It's kinda like a JD990 but as a sampler and without the full synth engine complexity. Made famous by Daft Punk and a lot of others as the S760 digital multimode filter became one of their signature sounds.

dietrichepp

Interesting, I have a Roland S-330 from the late 1980s and my main concern getting it was the floppy drive viability. It didn’t occur to me that the mouse would be difficult.

Nexxxeh

You probably already know this stuff or have decided against it for authenticity or whatever, but just in case, you can use some of the Gotek USB flash drive floppy disk emulators:

https://github.com/keirf/FlashFloppy/wiki/Host-Platforms#rol...

And this may or may not be out of date, but may still be useful:

https://llamamusic.com/s50s550/FlashFloppy_GOTEK.html

Minor49er

You might have luck finding connectors on Buyee.jp. MSX was huge in Japan, and Roland is a Japanese corporation

dekuNukem

An active converter is needed to use modern USB on retro computers. I made one a few years ago for many different computers.

https://github.com/dekuNukem/USB4VC

There's also a more recent project called HIDman, but only for PCs.

https://github.com/rasteri/HIDman

jimmaswell

I once didn't want to wait to get a ps/2 keyboard in the mail to set up an older PC so I made a quick and dirty adapter out of an arduino.

nvllsvm

Another one is ps2x2pico. I've been using it in my retro machines and it works great. For my Logitech G305 mouse (1000hz), I have ps2x2pico configured to force a 100hz mouse polling rate so the cursor is super smooth in Windows 98 without needing to use a program like PS2Rate. For my Keychron S1 keyboard, N-key rollover works flawlessly.

https://github.com/No0ne/ps2x2pico

jwr

I have a keyboard from my first 386/33 computer. It can be connected to my current Mac through a sequence of adapters: DIN5 -> PS/2 -> USB-A -> USB-C.

I am looking forward to extending my sequence of adapters in the future.

kotaKat

Windows 11 will happily load sermouse.sys if you hook a serial mouse to a USB serial adapter and plug it in.

Even on arm64!

twoodfin

Now that’s an old-new-thing post I’d like to read!

I assume because serial mouse support ca. 1996 is baked deeply into the USB standard, so you can’t pass connect-a-thon/compliance tests without it?

wongarsu

It might also just be a situation of "it's there, doesn't hurt anyone, doesn't cause much work, removing it could hurt someone". Windows needs (or at least used to need) keyboard support earlier in the boot sequence than mouse support. It's plausible that they load the entire USB stack early on to get keyboards etc working, then sometime later some ancient code iterates all serial ports to check for serial mice. To that driver, USB-Serial bridges and "native" serial ports should look the same through the hardware abstraction layer.

The leaked Windows XP code contains a lot of ancient code, some apparently taken from MSDOS. They later removed some of that, but apparently not this part.

dmitrygr

It isn't. Serial mouse protocols are nothing like USB HID protocol.

raddan

I have something similar at my desk, an Apple Extended Keyboard II. It is connected to an ADB to USB adapter (which needs its coin cell battery replaced every 5-7 years) and then that is connected to a USB-A to USB-C adapter to connect to my MacBook. Despite being about 35 years old, it still functions beautifully and I use it every day. I really hope that I don’t have to add another adapter to my chain in the future but you never know…

vesinisa

I would think the PS/2 -> USB-A adapter in this chain is a smart one.

jwr

Yes, of course.

lproven

Um. Yes. It must be, or it would not work.

vt240

I still had my DEC LK201 hooked up on my main home linux desktop until a few years ago. Haha. I don't know why, but I liked the key layout.

inejge

Pics or it didn't happen. (Seriously, I'd love to see that unholy train.)

mrweasel

Can't you get a DIN5 -> USB-A adaptor? Not sure if that would work, might be something designed for audio devices.

dfox

AT keyboard (DIN5) and PS/2 keyboards are in terms of electrical signals and the low-level framing protocol equivalent. As for the higher protocol level PS/2 is technically an superset of AT keyboard, but when used on PC platforms (or with Linux) the difference does not matter. And in reality most of the cheap keyboards you can buy only implement small subset of the protocol that is used by BIOS and Windows, such keyboards will not work with things like DEC Alpha workstations. (this also leads to somewhat surprising observation that under windows some keyboards work when plugged into mouse port, some do not)

johnisgood

> I am looking forward to extending my sequence of adapters in the future.

Keep us updated about how long it gets. :D

lathiat

Just reading this title and with only microsoft.com as the URL, I knew with 99% certainty this was going to be oldnewthing (Raymond Chen)

throwaway2037

Good point. I see his current domain is "devblogs.microsoft.com". A few times I have seen @dang (or a teammate?) upgrade the HN software to show more URL details on the homepage. It would be nice to do the same for this one. A good example is fortune.com. Their blogs are utter rubbish, and their URLs now appear on the front page as something like "fortune.com/blogs" instead of just "fortune.com" (reserved for actual articles from the magazine).

abrookewood

I do enjoy his quirky little comments. Nothing ground breaking, but pretty much guaranteed to make me go :Huh! Never knew that"

zebo123

Definitely one of the top blogs on that website. I wish win32 function articles would link references in blog posts, his explanations and examples helped me out a lot. Larry Osterman was another good blogger when he was still active.

ndiddy

Keyboards from the late 90s and early 2000s often did something similar. The controller supported both PS/2 and USB and the keyboard would come with a PS/2 plug and a passive adapter. That's why if you're trying to use a PS/2 keyboard designed prior to the introduction of USB (like a Model M) on a modern computer, you need to make sure to get an active PS/2 to USB adapter that actually translates the protocol.

Phrodo_00

Yeah, I discovered this the hard way when I tried to plug a somewhat modern keyboard to a pc through ps/2 (for the theoretical interrupt-driven speed) and didn't work.

A lot of mechanical gaming keyboards still support ps/2 though for the aforementioned interrupts.

ginko

I guess this has been long solved, but I remember around 2010 or so it was generally still recommended to use keyboards with PS/2 because of lower latency and support for N-key rollover.

berkes

I would expect that PS/2 to USB could be handled on the computer.

I have little experience, but from debugging some early 3D printers on Linux, I've learned that the U in USB really stands for universal: that it'll just pass on serial stuff to/from the OS, drivers or software on the computer to handle.

Karliss

In addition to electronic singalling being completely different, the serial interface used by many 3d printers is not the same as low level serial interface sent over the wire. There is a low level usb protocol for stuff like data packets ,checksums , metadata negotiation, multiple endpoints in single device, basic transfer types(bulk, isochronous, control, interrupt). All common device types and standard drivers including USB to serial, HID, removable storage is built on top of this layer instead of raw serial sent over the wire. That's why you can have stuff like USB hubs which can forward data to and from multiple devices. And also why you can plug in a USB device, and the OS recognize and lookup driver without user manually configuring what device is plugged into which port.

pezezin

Having done some embedded development, I am pretty sure that those 3D printers had a serial-over-USB converter like the famous FTDI family of chips. Those chips just simulate a plain old RS232 connection over USB.

dfox

There are some motherboards that can switch either PS/2 or RS232 signalling onto USB-A connectors, but this is completely non-standard hack mostly seen on some enterprise stuff few years back that seems to have mostly died away.

actionfromafar

Not really no, the timing requirements of the USB protocol are very tight and handled by dedicated circuits. The exception is microcontrollers where you can sometimes achieve the timing in software.

leohonexus

This is similar to how a (cheap) DisplayPort-to-HDMI adapter worked, the adapter itself is completely passive.

Many devices with DisplayPort output support multimode, which allows the device to switch from outputting DP packets to outputting TMDS-based HDMI or DVI signals. You'll sometimes see a ++DP logo on these ports.

This is also why you don't see a cheap HDMI(source)-to-DisplayPort(sink) adapter, the smarts just aren't built into the source device.

eigen

> the adapter itself is completely passive

I think it was not completely passive, but simple level conversion; DisplayPort is AC-coupled signal, HDMI is DC-coupled.

mikegoelzer

> I think it was not completely passive, but simple level conversion; DisplayPort is AC-coupled signal, HDMI is DC-coupled.

Wait, I don't think that's accurate. I've worked with HDMI/DVI and both are AC-coupled, that is, you put a 10 or 20 nF cap in series on the TMDS lines if you're driving directly from an FPGA's digital IO pins.

dfox

There is a difference between DP+ and DP++. DP+ uses external level shifter, DP++ uses passive adapter and the card switches different transmitter into the path internally.

kayson

Signal level and coupling are separate things.

eigen

> Signal level and coupling are separate things.

sure, but the part is called a level shifter. MAX9406 DisplayPort to DVI™/HDMI Level Shifter

https://www.analog.com/en/products/max9406.html

MarkusWandel

Cheap-ish, luckily. I was quite relieved to find a reasonable ($50ish) active HDMI-DP converter. I have an old Dell monitor that only does HDMI 1.3 so to drive its full resolution you need to use its Displayport (or dual link DVI) input. And modern devices generally don't have either. The gadget solves the problem and gets me my 2560x1440 resolution.

xxs

if it uses 'power' (aside wire resistance) is not passive, e.g. I'd consider resistors, capacitors, coils - passive, even I'd agree about diodes, even though they'd add latency. DP->HDMI requires some electronics (a level shifter) as bare min.

usr1106

Sligthly (un)related: The other day the builtin keyboard on my rather new Thinkpad X1C 12th stopped working. I connected a USB keyboard and tried to figure out whether there was an error in Linux kernel ring buffer or anything else explaining the problem.

To my surprise the internal keyboard is not even USB, but i8042. Not a hardware guy, but I had silently assumed everything is USB these days. I guess i8042 is the PS/2 protocol TFA is talking about?

(No error found, but after a reboot it has been working again.)

dogben

PS/2 keyboard/mouse are interrupt driven which saves power on laptops. While USB ones are polling based which require controllers running all the time.

usr1106

Good point. On a video recording system we had problems with dropped frames from the USB camera. When an external USB keyboard was connected the problems became rarer. Obviously the keyboard kept some component to enter deeper energy states, and when everything staid up all the time frames were no longer lost as commonly.

Surprising to me as a layperson in this field is that camera with 30 fps would allow entering a deeper state than a keyboards with a data rate orders of magnitude smaller.

kragen

fbrozovic

To add to this: the keyboard matrix scan controller on laptops is usually located inside the Super I/O chip and connected to the CPU/southbridge via LPC or eSPI. Since LPC/eSPI peripherals are mapped to I/O ports, implementing an 8042 controller means that the keyboard can work even without setting up a much more complicated USB host stack.

p_l

On laptops it's usually not SuperIO, but EC (Embedded Controller), the same chip that handles battery, power, etc. and is usually connected over LPC to "present" the keyboard as PS/2 compatible input (some new ones are pure USB though, like my current laptop)

Some devices have SPI interfaces for HID though

yrro

That's a great site. Finally I think I understand WTF Lenovo mean by "IPMI over Keyboard Controller Style (KCS) Access"

throwaway2037

Wow, thank you to share this website. It is so cool. I never saw it before. New Wiki rabbit hole to explore!

xxs

I don't recall seeing a USB keyboard in a laptop (admittedly I don't do that for a living at any rate). Even backlights tend to be separate pwm lines. It also make sense as USB would require a controller on the keyboard side.

userbinator

In laptops, the EC is what usually connects to the keyboard and trackpad/pointing stick, and it communicates with the chipset via LPC (a variant of the old ISA bus). Many of them have a built-in 8042-compatible IP block for this. It looks exactly like a PS/2 keyboard and mouse to software, but the physical layer may no longer be present (some old laptops that support external PS/2 keyboard+mouse may have an actual PS/2 interface.)

If the keyboard stopped working (completely), I'd suspect a bug or random glitch in the EC firmware.

trinix912

Until 5 or so years ago many laptop trackpads were simply PS2 mice (even with drivers installed).

numpad0

Looks like it's again time for ThinkPad Linux user PSA:

  echo 255 > /sys/devices/platform/i8042/serio1/serio2/sensitivity

account42

May laptop's mouspad is connected over i2c. I wonder what the reason for that is besides saving a few bucks on cables.

dehrmann

I suspected something list this, so these always scared me.

Actually, magic always scares me. I was putting together an LTE internet gateway from a Mikrotik device flashed with OpenWRT and was confused about how the SIM card slot on the main board interacts with a mini PCIe LTE modem. I looked at the mini PCIe pinouts and discovered the modem is actually USB (mini PCIe has pins for this) and mini PCIe has pins that are wired to the SIM card. I later ran into an issue where the card wouldn't work, but if I tape over the USB3 pins, it would drop to USB2 (still enough bandwidth for LTE) and work.

usr1106

Didn't those adapters exist in both directions? Green in one and violet in the other? I have the feeling if I started to dig in my treasures I should still find some. One way to avoid e-waste is not to throw anything away...

PeterStuer

The purple/violet was usually the color to refer to the keyboard, whereas green was code for 'mouse'.

As I recall you had the usb to ps/2 adapters for attatching legacy peripherals, but those usually came with two female ps/2 leads, a green one and a purple one, connecting to the one male usb-A.

actionfromafar

One could hack the Linux kernel to connect an extra keyboard in the mouse connector. :)

seba_dos1

It's just color coding for mice (green) and keyboard (purple). The connector's the same.

jaynetics

These and some other colors were specified in the PC-99 standard in 1999:

https://en.m.wikipedia.org/wiki/PC_System_Design_Guide#Color...

Symbiote

I knew that, and know most of the colours, but it's only now that I realise plugs on VGA cables are blue to match, plugs on DVI cables are white to match, and even my cheap USB-to-serial adapter has a teal RS232 plug.