From: eichin@tweedledumber.cyGNUs.com (Mark Eichin) Subject: Re: How to turn NUM LOCK off at boot? How to slow character repeat? Date: 9 Aug 1993 15:14:04
or, there's been a simple program posted to the KERNEL channel in
response to this discussion there... you don't need to build a kernel
to "fix" NUM_LOCK, just build and run this:
/* trivial numlock posted by hsw1@papa.attmail.com (Stephen Harris) */
#include <sys/ioctl.h>
#include <linux/kd.h>
void main()
{
char i=0;
ioctl(0,KDGETLED,&i);
i&=~LED_NUM;
ioctl(0,KDSETLED,i);
}
/* end of program */
Then in rc.local (or rc.S depending on init) just put lines like:
numoff < /dev/tty0
numoff < /dev/tty1
(for each of your virtual consoles; on a default system, just do 0
through 3.)
One problem with this is that when X starts up it turns numlock on,
which is kind of odd, I haven't looked in to it. (Yes, tinyX is quite
reasonable on the laptop, I've used xmosaic under it...)
_Mark_ <eichin@athena.mit.edu>
MIT Student Information Processing Board
Cygnus Support <eichin@cygnus.com>