Path: utzoo!news-server.csri.toronto.edu!rutgers!usc!orion.oac.uci.edu!ucivax!megatek!hobbes!hollen From: hollen@megatek.UUCP (Dion Hollenbeck) Newsgroups: comp.os.msdos.programmer Subject: Re: Disabling an Internal DOS Command Message-ID: Date: 8 Mar 91 15:24:26 GMT References: <1991Mar4.151301.12925@cbnewsk.att.com> Sender: hollen@megatek.UUCP Distribution: usa Organization: Megatek Corporation, San Diego, California Lines: 26 In-reply-to: levericw@cheetah.ece.clarkson.edu's message of 4 Mar 91 19:30:04 GMT In article levericw@cheetah.ece.clarkson.edu (Walden Leverich) writes: > > Question #2: > > Is there any way to set the state of the NumLock key. I already know > > how to detect the state of the key, but what I really need to do is > > set it to be either on or off. Any help would be appreciated. > > You can read the status from BIOS, you may also be able to SET the > status by playing with the settings in BIOS. (Obviously a RAM copy of > BIOS.) > This is indeed true, but the trouble here is that although you can change the status of the bit representing the NUNLOCK key, you cannot affect the state of the LED by doing this. Maybe someone could post how to set the LED's. I believe this is by writing a command to the keyboard controller, but I am not sure. I am fairly sure that this is not a BIOS service, but a write to an IO port with command and new value. -- ----- Dion Hollenbeck (619) 455-5590 x2814 Megatek Corporation, 9645 Scranton Road, San Diego, CA 92121 uunet!megatek!hollen or hollen@megatek.uucp