20

Is there a necessity for the mouse to know a different protocol or a different pinout to be able to be connected to a PS/2 port?

Many vendors provide a USB-to-PS/2 adapter, but some don't.

From what I know, PS2 and USB interfaces even have a different number of pins. How would such an adapter work?

Will the device have the same performance as before?

Is it necessary for the USB device to 'know' it is connected to a PS/2 port? I suppose it is necessary since USB-to-PS/2 adapters are just that: adapters, not converters. They do not do anything to the signal, so probably the keyboard or mouse should know and adapt their signal accordingly.

And another question: Is there any latency added when connecting a USB keyboard or mouse to a PS/2 port using an adapter? I suppose the adapter itself does not add latency since it only connects some pins to some others, but inside the mouse or keyboard something has to change. The mouse has to switch to PS/2 data serialization instead of USB. In theory, PS/2 should be faster, but I am thinking that if that particular device is made to work natively on USB, it could have sort of an internal signal converter which may generate some latency.

yoyo_fun
  • 1,883

3 Answers3

12

These adapters are purely mechanical. There is no converter or whatever inside. So, yes, the mouse/keyboard needs to do PS/2 by itself.

Whether the controller IC inside the input device will perform worse with PS/2 will depend on how the protocol switch is made.

It is unlikely that PS/2 will perform noticably different than USB. From just looking at the connection specs, USB is vastly superior, both in speed and latency. Only USB host controller inefficiencies could lead to a worse overall experience.

PS/2 and USB share some properties that make an adapter feasible:

  • 5 V
  • Low current
  • 2 “data” wires (though one is clock on PS/2).
  • (two pins on PS/2 are unused)
user219095
  • 65,551
5

I can definitively answer the first part of the question,

"IS there a necessity for the mouse to know a different protocol or a different pinout to be able to be connected to a PS/2 port ?"

The answer is yes, a USB HID device (mice and keyboards) must understand the alternative PS/2 protocol in order to function in PS/2 port using USB-PS/2 adapter.

Not every USB mice or keyboard support the PS/2 mode. Presence of the green adapter in the OEM package warrants this compatibility, but the opposite is not true - some HID devices do support PS/2 mode even if the adapter is not included with the product, some don't, all depending on IC in use. For example, the Microsoft Notebook Optical Mouse P/N: X08-86056 does not work in PS/2 port.

Ale..chenski
  • 13,235
1

Is there a necessity for the mouse to know a different protocol or a different pinout to be able to be connected to a PS/2 port?

Yes, it is necessary for the USB mouse to support the PS/2 protocol to be connected to P/2. I can imagine there's someone somewhere that made an adapter somewhere that proves this false but that's a rare exception that would cost more than just buying another mouse and therefore be a personal design challenge than any viable mass produced product.

Many vendors provide a USB-to-PS/2 adapter, but some don't.

From what I know, PS2 and USB interfaces even have a different number of pins. How would such an adapter work?

Of the six pins on a PS/2 port only 4 are used. For reference see this: https://en.wikipedia.org/wiki/PS/2_port

An exception (pointed out in the linked article) would be some laptop PS/2 ports that use the normally unconnected pins to allow for a splitter that can split the single PS/2 port into two PS/2 ports.

An educated guess is that the mouse knows which kind of port it is connected to by switching polarity on the power pins, put the +5V on one pin and the data pins "talk" USB, put +5V on the other pin and the data pins "talk" PS/2. There must be a dozen different ways to make it work, and I suspect most of them had been tried by different mouse manufacturers over time. Knowing how any given mouse does this detection would require some investigation.

Will the device have the same performance as before?

Yes and no. Those that like to tweak their hardware for maximum gaming performance will prefer PS/2 over USB for reasons that can get complicated quickly so I won't go into details on that. For most any user the performance difference would be unnoticeable. PS/2 allows for better performance but that doesn't mean a mouse will work better with PS/2 than USB since there could be some other weak link in that chain than the port used to connect to the computer.

Is it necessary for the USB device to 'know' it is connected to a PS/2 port? I suppose it is necessary since USB-to-PS/2 adapters are just that: adapters, not converters. They do not do anything to the signal, so probably the keyboard or mouse should know and adapt their signal accordingly.

And another question: Is there any latency added when connecting a USB keyboard or mouse to a PS/2 port using an adapter? I suppose the adapter itself does not add latency since it only connects some pins to some others, but inside the mouse or keyboard something has to change. The mouse has to switch to PS/2 data serialization instead of USB. In theory, PS/2 should be faster, but I am thinking that if that particular device is made to work natively on USB, it could have sort of an internal signal converter which may generate some latency.

Without knowing specifics there's no telling which would give more latency. If someone is seeking the maximum performance from their mouse then that would be more on the selection of the mouse than on the decision to use the PS/2 adapter or not.

MacGuffin
  • 1,655
  • 8
  • 14