Technical article 104836

Why does my console keyboard lock on SCO OpenServer Release 5?

OpenServer 5.0.0

Written · Last revised

Problem

After installing SCO OpenServer Release 5 on a Pentium machine, my console locks intermittently. It happens sporadically when using the numlock or capslock key. Slowing the clock rate on the machine seems to help.

Cause

There is a timing loop in the kernel's keyboard driver that is not long enough for some of the faster Pentium machines.

Solution

A Support Level Supplement SLS OSS424a is now available which
addresses this problem.  This supplement consists of a new
console keyboard driver which can be installed as a boot-time
loadable driver (BTLD) or as a custom-installable driver.

If you do not have access to OSS424a and urgently need this patch, you can manually patch the keyboard driver using /etc/_fst. Lengthening the timing loop has corrected this problem in many cases.

To change the value of the keyboard timing loop, take these steps:

1. Shutdown to single user mode
2. Change to the directory /etc/conf/pack.d/cn

3. Make a backup of the Driver.o file:

cp Driver.o Driver.orig

4. Start the hex editor on the Driver.o file:

_fst -w Driver.o
5. At the * prompt type:
      rd42dat+0x1e?w 0xe830
                         ^^
NOTE: The "30" above is the hex value which controls the
length of the timing loop.  Legal values are 00 to 30.
6.  _fst should return the following:
rd42dat+0x1e:   0xe80d= 0xe830
7.  At the * prompt type $q to exit _fst
8.  Change to /etc/conf/cf.d
9.  Link a new kernel by typing:
./link_unix

If there are errors during the link process, restore the original Driver.o and start the process again.

10. Shut the system down and restart.

11. If 30 doesn't work, you may try other values.  Legal
values for the parameter are 0x00 to 0x30.  The default
is 0d.  You must relink and reboot between each value.

See also

TA104910, "My console keyboard is locking up during the installation of SCO OpenServer 5.".

TA105014, "What is contained in Support Level Supplement (SLS) OSS424a?"

NOTE:     The suggestions contained in this article should _not_
          be attempted when running SCO UNIX System V/386 Release 3.2
          Operating System Version 4.2.  See TA104198,  "Console Keyboard
          SLS UOD369B for SCO UNIX Version 4, SCO ODT 2.0, 3.0."

From the Xinuos technical article database, record 104836. Reproduced with permission. The original is at www.sco.com/ta/104836, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.