USB keyboard - lag

The intent of this forum is to discuss my DOS TSR programs (available at http://bretjohnson.us), how they work and don't work, new/missing features, status of updates, and anything else related to them that may need to be discussed.

USB keyboard - lag

Postby Serg2140 » Fri Jul 28, 2023 12:44 am

Hey Bret! I want to tell you that I was impressed with your work, because I did not know that you could get so many different usb devices to work under MS-DOS. I was impressed, really.

Maybe you can help me solve one problem. I have a ThinkPad 600 laptop. It has one USB port (UHCI) to which I plugged in a USB keyboard. Installed pure MS-DOS 6.22 (w/o Windows). After launching USBUHCI.COM and USBKEYB.COM, the keyboard works but has a lag. The keyboard is the most common, wired, without multimedia. There are no parameters in the BIOS of the laptop and in the configuration program for setting up USB. If you connect to a USB flash drive, it works at normal (for USB 1.1) speed.
Tell me, please, maybe there are some parameters for the USBKEYB.COM program that allow you to eliminate the lag?
Serg2140
 
Posts: 4
Joined: Fri Jul 28, 2023 12:38 am

Re: USB keyboard - lag

Postby Bret » Sun Jul 30, 2023 9:03 am

When you say "lag", are you referring to the time between when you press the key and the first character appearing on the screen, or the time between the first character and the rest of the characters if you hold the key down for a long time?
Bret
 
Posts: 478
Joined: Fri Oct 10, 2008 3:43 am
Location: Rio Rancho, NM

Re: USB keyboard - lag

Postby Serg2140 » Sun Jul 30, 2023 6:55 pm

When I press a key, the character on the screen appears with a delay. If I press the key and hold it, then the characters appear on the screen (with a delay), and then the laptop speaker is activated and it starts to squeak. (I'm assuming a buffer overflow).
Serg2140
 
Posts: 4
Joined: Fri Jul 28, 2023 12:38 am

Re: USB keyboard - lag

Postby Bret » Mon Jul 31, 2023 3:34 pm

There is nothing in the settings that will directly control the lag -- I've not seen that problem before. But there are a couple of things you can try.

The first would be to experiment with the different typing methods in USBKEYB (the /M:# option, where # is a number between 1 and 3). USBKEYB normally is able to configure this automatically, but for some reason the detection method may not work correctly.

The other thing would be to replace your keyboard BIOS with a new one. The easiest way to do do this is to install the Microsoft KEYB program. Note that it MUST be the one from MS and not any of the others (like FreeDOS). None of the others actually replace the entire keyboard BIOS the way MS does. I can send you a copy of that if you don't already have one.
Bret
 
Posts: 478
Joined: Fri Oct 10, 2008 3:43 am
Location: Rio Rancho, NM

Re: USB keyboard - lag

Postby Serg2140 » Mon Jul 31, 2023 9:53 pm

Thanks for your advice, Bret!

The advice to replace the BIOS of the keyboard turned out to be unsuccessful. I tried to run the KEYB.COM program, but it did not give any effect, the behavior of the keyboard when pressing a key did not change.

Next, I started trying various USBKEYB typing methods (the /M: option). The number 1 had no effect, the number 2 caused the laptop to freeze. The number 3 was lucky for me - the keyboard worked quickly and clearly!

Thank you Bret, you are the best!

There was only one problem left. Now the Ctrl-Alt-Del combination to restart the laptop does not work. When I press this combination (on any of the keyboards), the laptop freezes. The /Reboot:Y\N key has no effect. Maybe there is some solution to this problem?
Serg2140
 
Posts: 4
Joined: Fri Jul 28, 2023 12:38 am

Re: USB keyboard - lag

Postby Bret » Wed Aug 02, 2023 5:26 am

Have you tried the combination of both the KEYB program and Method 3? I don't know if that will fix the problem or not, but maybe worth a try (if you haven't tried it yet). Other than that I'm not sure what else can be done.
Bret
 
Posts: 478
Joined: Fri Oct 10, 2008 3:43 am
Location: Rio Rancho, NM

Re: USB keyboard - lag

Postby Serg2140 » Tue Aug 08, 2023 8:29 pm

Bret, you are a genius!
After launching KEYB.COM, the Ctrl-Alt-Del combination works, the laptop can be restarted! Now my USB keyboard works perfectly!

Thank you very much for your help and respect for the driver!
Serg2140
 
Posts: 4
Joined: Fri Jul 28, 2023 12:38 am

Re: USB keyboard - lag

Postby Nisse » Thu Mar 21, 2024 12:35 pm

Serg2140 wrote:When I press a key, the character on the screen appears with a delay. If I press the key and hold it, then the characters appear on the screen (with a delay), and then the laptop speaker is activated and it starts to squeak. (I'm assuming a buffer overflow).

That happens to me to after a few beers :P ;)
Nisse
 
Posts: 39
Joined: Fri May 28, 2021 9:25 am


Return to Programs

Who is online

Users browsing this forum: No registered users and 3 guests

cron