5.19K views
0 Comments

Will the keyboard work with a simple passive USB to PS/2 adapter? I’d like to use this with a PS/2 KVM switch with several pre-USB computers.

admin Answered question May 15, 2022

5 Answers

Here is a helpful Deskthority post from NathanA on the subject of ps/2 compatibility:

PS/2 support for xwhatsit controller:

I read in the AT90USB162 datasheet “USB pad multiplexed with PS/2 peripheral for single cable capability” – it would be cool if it had ps/2 support! Would that be possible to do with one of those passive USB-PS2 adapters that used to come with some computer mice, even if the controller has a USB-C connector?

How easy would it be to adjust the current controller to make a dozen or so ones with this chip instead of the ATMEGA32U2 chip? Per pandrew: this chip has “16k of flash memory. Qmk firmware currently uses around 22k. That’s not to say it’s impossible. It’s probably possible to strip away many QMK features and get it working, but it won’t be great.”

I think the tradeoff in some additional functionality would be worth it to the folks who strongly prefer PS/2 connectivity.

I actually looked into this a while back, because I was interested in making it possible to use my F77 with older PCs. My question was whether it was possible to “bit-bang” the PS/2 protocol on the USB pins of the ATmega##uX MCUs to do exactly this (use a passive USB-to-PS/2 adapter).

The short version is that, you and pandrew are correct: it is not possible to do this with the AVR variants that have built-in USB. It is possible to do with AT90USB162. HOWEVER: the big problem is that QMK has zero support for acting as a PS/2 keyboard. It can support adapting a PS/2 mouse to USB for (apparently) certain USB keyboards that have a PS/2 mouse port on them, but cannot directly present a PS/2 device on the PS/2 bus.

The solution is likely to use a different open source keyboard firmware project called ‘ps2avr’ (https://sourceforge.net/projects/ps2avr/) which is made to do exactly this: make non-USB AVR variants talk PS/2 protocol to a host. This means that you would get none of the QMK features though, and the keyboard would ONLY support PS/2, not both PS/2 and USB simultaneously…though in theory you should be able to have a ps2avr firmware for PS/2 support and a separate (stripped down) QMK firmware for USB support, and then flash from ps2avr to QMK if you need to use it as a USB keyboard (and vice-versa when you want to go back to PS/2). Also, either pandrew or someone else would also have to take the time to port the pandrew capsense stuff from QMK to ps2avr, and I don’t know what the relative difficulty level of that project would be.

I believe the AT90USB162 is basically pin-compatible with ATmega32u2, so it shouldn’t require too many changes to the existing PCB design to change the MCU. But yes, it is unfortunate that it has half the memory of the 32u2. I believe there are non-USB versions of ATmega that have the same 32K of memory (e.g. ATmega32A) that would also be compatible with ps2avr firmware, but those are not pin-compatible with the 32u2, so the PCB would likely require some adjustments to the design to accommodate one of those.

For my own uses, I ended up buying an active USB to PS/2 adapter. Yes they exist, but there aren’t many of them, they are expensive, they are hard to find, and they aren’t always compatible with 100% of USB keyboards or 100% of PS/2 hosts.

The one I bought was this one, but when I bought it, it was “only” $75, and it looks like the price has gone up since then.  I can confirm that it works with my F77 running QMK…but ONLY as long as I have a QMK firmware flashed to my keyboard that was built WITHOUT the MouseKeys feature included. Something about the QMK MouseKeys feature really confuses this adapter (probably something to do with the particulars of how QMK is presenting both a keyboard and a mouse simultaneously over the USB bus).

admin Answered question May 15, 2022

Here’s another product to convert the new Model F to use PS/2 with full PS/2 emulation of USB keyboards:

Aten CS82U

https://www.ebay.com/sch/i.html?_nkw=aten+cs82u&_sacat=0&_from=R40&_sop=15

That way you will have ps/2 support for the new Model F Keyboard.

Anonymous Posted new comment February 22, 2022

Hi! Here as a former Aten CS**U user (had the 4 port switch).

This product has laughably bad PS/2 support and regularly hangs keypresses when using USB -> PS/2 in DOS, Win98, and WinXP. When using the device for just PS/2 -> PS/2, it reduced my Dell Quiet Key to 0-key rollover in some cases, AKA, canceled key inputs. I have also updated the firmware to the latest and the condition of the outputs remains the same.

I opened a ticket with their support department about these issues a week ago and have yet to have any response whatsoever, not even an email confirmation of the ticket. I have also read of others who have been told that “the device is functioning as designed”.

So while you might be able to do the bare minimum text entry on PS/2 machines, you will experience multiple issues when doing anything even slightly out of the ordinary. Commander Keen, for example, was unplayable through this device.

Sorry no.  I do have several brand new original native PS/2 Model M keyboards available https://www.modelfkeyboards.com/product-category/all-keyboard-choices/

admin Posted new comment August 7, 2019

Sorry to drudge up this old thread, haha!
By “sorry no” do you only mean that a passive adapter will not be enough, or do you mean the signal cannot be converted even with an active adapter?
Cheers!

A passive adapter will not work. I think it can be converted actively but have not confirmed this.

Anonymous 0 Comments

I’m surprised this isn’t a feature of xwhatsit firmware. PS/2 is relatively straightforward and could be bitbanged with a few GPIOs, perhaps even those that may be muxed to D+ and D-.
However, due to the layered nature of the keyboard, there may be some translation needed for the modifier keys maybe?

Anonymous Answered question May 11, 2018
admin4.52K 0 Comments

Something like this may work if you want an active PS/2 to USB adapter, not sure:
https://www.ebay.com/itm/NTI-USB-PS2-R-PS-2-to-USB-Adapter/201780666338

admin Edited answer May 2, 2018
Shopping cart0
There are no products in the cart!
Continue shopping
0