VOGONS


USB keyboard / mouse in DOS?

Topic actions

First post, by wallaby

User metadata
Rank Newbie
Rank
Newbie

So I'm trying to make a modern 486. It's going great so far, but I have this old yellow junky AT keyboard and barely working serial ball mouse.

I know I can go for a PS2 to AT adapter and there are still pretty decent serial mice, but is there a USB option?

Do you need motherboard support for USB, or can you get by with just a driver? There appears to be some Panasonic driver that works in DOS but I'm not sure what hardware it is compatible with.

What I'm thinking of trying is that Panasonic driver with a retro PCI-USB card. High speed devices and mass storage aren't really what I need, but I would love a nice USB keyboard/ mouse or even the wireless USB dongle ones. It would really bring the computer into the 21st century!

I'm not running Windows 95 or anything. Just straight DOS.

Reply 3 of 27, by keenmaster486

User metadata
Rank l33t
Rank
l33t

The mouse setup you have there is almost guaranteed not to work since PS/2 signaling is different from that used for serial, and the USB-PS/2 adapter almost certainly only uses PS/2 signaling.

World's foremost 486 enjoyer.

Reply 4 of 27, by beastlike

User metadata
Rank Member
Rank
Member

Could very well be - sorry for any misinformation. I think I originally took that pic as a joke 🤣 but I actually ended up using the keyboard adapter setup all the time for AT machines

Reply 5 of 27, by ibm5155

User metadata
Rank Member
Rank
Member

I heard there's some kind of problem with that kind of keyboard setup because the usb keyboard requires more energy than the at pin can deal (I belive it's right since I never saw this kind of setup working online) (And I could actually test it since I have an at to ps2 and a p2 to usb adapter)

Reply 6 of 27, by beastlike

User metadata
Rank Member
Rank
Member
ibm5155 wrote:

I heard there's some kind of problem with that kind of keyboard setup because the usb keyboard requires more energy than the at pin can deal (I belive it's right since I never saw this kind of setup working online) (And I could actually test it since I have an at to ps2 and a p2 to usb adapter)

Yikes - I'm using this setup right now for a windows install on a machine with the 5 pin keyboard - I've used it on others as well.

It's an AST usb keyboard - idunno how much power it's drawing

Reply 7 of 27, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

There appears to be some Panasonic driver that works in DOS but I'm not sure what hardware it is compatible with.

That is strictly for hard drives. You will never get a USB mouse working in DOS, even if you get a PCI-USB card.

Reply 8 of 27, by keenmaster486

User metadata
Rank l33t
Rank
l33t

Not quite, Jorpho. If your card is UHCI compliant, here are some pretty nifty drivers that work with anything from flash drives to joysticks to keyboards and mice. They even support hotswapping.

Filename
usbdos.zip
File size
512.66 KiB
Downloads
1932 downloads
File license
Fair use/fair dealing exception

World's foremost 486 enjoyer.

Reply 9 of 27, by James-F

User metadata
Rank Oldbie
Rank
Oldbie

Thank you very much keenmaster486.
It works loading USB drives without restarting, and the hotswapping function actually works in DOS!
I had a boot configuration with MSCDEX driver that loads the USB stick as a harddrive and once the USB is removed I had to restart the PC each time to load the USB... no more.

The drivers you provided are much better solution.

EDIT:
I confirm that a USB mouse works with this driver on my Socket 7 Pentium MMX.


my important / useful posts are here

Reply 10 of 27, by keenmaster486

User metadata
Rank l33t
Rank
l33t

Oh wow, that's great! I'm so glad they worked for you.

I was never able to get those drivers perfectly stable on my system; I think it may have been that my controller was going out since it was a pretty flaky eMachines system. iirc it was a Via controller; is yours an Intel?

Also I wonder if the USB joystick driver actually works.

World's foremost 486 enjoyer.

Reply 11 of 27, by James-F

User metadata
Rank Oldbie
Rank
Oldbie

Both Intel and VIA should work, I have two headers of Intel USB 1.0 UHCI on the old Intel 430TX motherboard.

First load USBUHCIL.
You can check what device is connected at any step with USBDEVIC.

For Mouse: Load USBMOUSE (connect mouse only after loading the drivers), (you bios has to support PS/2).
Check if mouse is found with USBMOUSE /S.
Now load CTMOUSE 1.91 (not 2.0) to load the PS/2 mouse drivers.
Basically USBMOUSE emulates a Bios PS/2 mouse using software but the Bios has to support PS/2 first.

For USB Stick: USBDISK /Disks:1 , wait a few seconds and inset the USB Stick.
Change to the new USB drive letter.


my important / useful posts are here

Reply 12 of 27, by James-F

User metadata
Rank Oldbie
Rank
Oldbie

Yep, USB Joystick works.
It actually emulates it on port 201H (can be changed), but EMM386 has to be loaded for the emulation to work.
I am not a fan of Gamepads in DOS, but it definitely works.
I'm sure many people find these USB drivers useful indeed. 😀

Real DOS on my Socket 7 with a iBuffalo USB Gamepad:

Keen.jpg
Filename
Keen.jpg
File size
486.26 KiB
Views
18212 views
File license
Fair use/fair dealing exception
USB Controller.jpg
Filename
USB Controller.jpg
File size
343.55 KiB
Views
18217 views
File license
Fair use/fair dealing exception


my important / useful posts are here

Reply 14 of 27, by xjas

User metadata
Rank l33t
Rank
l33t
beastlike wrote:
Either with a motherboard that supports it and CuteMouse for the mouse support in DOS, or for older machines, this is what I do […]
Show full quote

Either with a motherboard that supports it and CuteMouse for the mouse support in DOS, or for older machines, this is what I do 11ce39acc1.png

On keyboards that support both PS/2 and USB protocols (i.e. anything you can use those passive adapters on) it's totally possible to just cut off the USB port and solder on a PS/2 or AT DIN connector. I've done USB->AT that way and it worked fine.

twitch.tv/oldskooljay - playing the obscure, forgotten & weird - most Tuesdays & Thursdays @ 6:30 PM PDT. Bonus streams elsewhen!

Reply 15 of 27, by Jorpho

User metadata
Rank l33t++
Rank
l33t++
keenmaster486 wrote:

Not quite, Jorpho. If your card is UHCI compliant, here are some pretty nifty drivers that work with anything from flash drives to joysticks to keyboards and mice. They even support hotswapping.

Well, well. My stars! I can't recall hearing about that before and apparently it's been around for six years.

Reply 16 of 27, by James-F

User metadata
Rank Oldbie
Rank
Oldbie
wallaby wrote:

Excellent!
I bought a VIA USB PCI card on eBay but couldn't find anything that uses the Intel chipset. Are there any makes or models that use that or is it Intel motherboards only?

I have one of these VIA USB PCI cards from ebay too but the PC will not boot because it has some IRQ conflict with the VGA card (or existing USB implementation) on any of the PCI slot.
The USB on-board already takes some IRQ and I can't even disable it in the bios (absolutely nothing related to the USB in the AWARD bios at all) because it is one of the earliest USB implementations.

I don't see why the ebay VIA USB card should not work on a 486 with these drivers, but the system at least has to boot first.

Jorpho wrote:

Well, well. My stars! I can't recall hearing about that before and apparently it's been around for six years.

I was aware of these drivers before but did not read the manual hence they did not work when I tried them so I dismissed them immediately.
Instead I used USBASPI.SYS and DI1000DD.SYS at boot which is a much worse solution.


my important / useful posts are here

Reply 17 of 27, by Jorpho

User metadata
Rank l33t++
Rank
l33t++
James-F wrote:

I have one of these VIA USB PCI cards from ebay too but the PC will not boot because it has some IRQ conflict with the VGA card (or existing USB implementation) on any of the PCI slot.
The USB on-board already takes some IRQ and I can't even disable it in the bios (absolutely nothing related to the USB in the AWARD bios at all) because it is one of the earliest USB implementations.

There are reports that NEC-based cards work better than VIA cards.
Which USB 2.0 cards for old motherboards

Reply 18 of 27, by wallaby

User metadata
Rank Newbie
Rank
Newbie

Okay, just in case, I bought a NEC too. I'll try them out this week.

The USB joystick is interesting. There are quite a few great USB flight sticks that could find a home with the huge DOS library of flight sims.