Num Lock
Tom Achtenberg
plug-discuss@lists.plug.phoenix.az.us
Sat, 2 Feb 2002 21:16:24 -0700
This is a multi-part message in MIME format.
------=_NextPart_000_003D_01C1AC2E.DEAF2D60
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
This did it for me too. Would prefer that the light was on for num lock =
on but I can live with that unless someone knows how to change that.
Tom Achtenberg
Help me win the Food for the Hungry Child Sponsorship Contest! =20
Visit http://www.ybnormal.org for details=20
Registered Linux User #242974 (See http://counter.li.org)
Visit my home page at http://achtenberg.com
----- Original Message -----=20
From: "Lisa Winkler" <lmw@po.cwru.edu>
To: <plug-discuss@lists.plug.phoenix.az.us>
Sent: Friday, February 01, 2002 8:32 PM
Subject: Re: Num Lock
Thanks for the tip. I have been wondering this myself but never got =
sufficiently motivated to do a web search or post a question.
On Thu, 31 Jan 2002, Kevin Brown wrote:
> Found this also:
>=20
> http://www.mandrakeuser.org/docs/resource/res_aolm-faq.html#2.5
>=20
> 2.5 How can I set NUMLOCK to be on at boot time?
>=20
> This question really has two answers. One applies to consoles =
and the
> other to the X Window System.
>=20
> For console ttys: add the following to the end of your startup =
script
> '/etc/rc.d/rc.local' :
>=20
> INITTTY=3D/dev/tty[1-12]
> for tty in $INITTTY; do
> setleds -D +num <$tty
> done
>=20
> (Note that this is straight from the man page for setleds.)
>=20
> For X, you need to edit the file =
'/usr/X11R6/lib/X11/xkb/types/basic'.
> The last section of the file is the "KEYPAD" section and looks like:
>=20
> type "KEYPAD" {
> modifiers =3D Shift+NumLock;
> map[None] =3D Level1;
> map[Shift] =3D Level2;
> map[NumLock] =3D Level2;
> map[Shift+NumLock] =3D Level1;
> level_name[Level1] =3D "Base";
> level_name[Level2] =3D "Number";
>=20
> To set NUMLOCK on by default, simply change every occurrence of =
"Level1"
> to "Level2" and change every occurrence of "Level2" to "Level1" =
(without the
> quotes). Then restart X. Note that the behavior of the NUMLOCK light =
will change
> as well (i.e. the light will be lit when NUMLOCK is OFF and will be =
dark when
> NUMLOCK is ON).
>=20
> > Tom Achtenberg wrote:
> >=20
> > Here is an easy one I can't find in any of the books. How can I =
have the num
> > lock stay on when I boot? The bios has it set on but right after =
the Linux
> > kernel loads it turns off. There must be a setting somewhere.
> >=20
> >=20
> > Tom Achtenberg
> >=20
> > Registered Linux User #242974 (See http://counter.li.org
> > Visit my home page at http://achtenberg.com
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail =
doesn't post to the list quickly and you use Netscape to write mail.
>=20
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>=20
________________________________________________
See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't =
post to the list quickly and you use Netscape to write mail.
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
------=_NextPart_000_003D_01C1AC2E.DEAF2D60
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2712.300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DVerdana size=3D2>This did it for me too. Would =
prefer that=20
the light was on for num lock on but I can live with that unless someone =
knows=20
how to change that.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><BR><FONT face=3DVerdana size=3D2>Tom Achtenberg</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>Help me win the Food for the Hungry =
Child=20
Sponsorship Contest! <BR>Visit </FONT><A=20
href=3D"http://www.ybnormal.org"><FONT face=3DVerdana=20
size=3D2>http://www.ybnormal.org</FONT></A><FONT face=3DVerdana =
size=3D2> for details=20
</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>Registered Linux User #242974 (See =
</FONT><A=20
href=3D"http://counter.li.org"><FONT face=3DVerdana=20
size=3D2>http://counter.li.org</FONT></A><FONT face=3DVerdana =
size=3D2>)<BR>Visit my=20
home page at </FONT><A href=3D"http://achtenberg.com"><FONT =
face=3DVerdana=20
size=3D2>http://achtenberg.com</FONT></A><BR></DIV>
<DIV><FONT face=3DVerdana size=3D2>----- Original Message ----- </FONT>
<DIV><FONT face=3DVerdana size=3D2>From: "Lisa Winkler" <</FONT><A=20
href=3D"mailto:lmw@po.cwru.edu"><FONT face=3DVerdana=20
size=3D2>lmw@po.cwru.edu</FONT></A><FONT face=3DVerdana =
size=3D2>></FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>To: <</FONT><A=20
href=3D"mailto:plug-discuss@lists.plug.phoenix.az.us"><FONT =
face=3DVerdana=20
size=3D2>plug-discuss@lists.plug.phoenix.az.us</FONT></A><FONT =
face=3DVerdana=20
size=3D2>></FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>Sent: Friday, February 01, 2002 8:32=20
PM</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>Subject: Re: Num =
Lock</FONT></DIV></DIV>
<DIV><FONT face=3DVerdana><BR><FONT size=3D2></FONT></FONT></DIV><FONT =
face=3DVerdana=20
size=3D2>Thanks for the tip. I have been wondering this myself but =
never got=20
sufficiently motivated to do a web search or post a question.<BR><BR>On =
Thu, 31=20
Jan 2002, Kevin Brown wrote:<BR><BR>> Found this also:<BR>> =
<BR>>=20
</FONT><A=20
href=3D"http://www.mandrakeuser.org/docs/resource/res_aolm-faq.html#2.5">=
<FONT=20
face=3DVerdana=20
size=3D2>http://www.mandrakeuser.org/docs/resource/res_aolm-faq.html#2.5<=
/FONT></A><BR><FONT=20
face=3DVerdana size=3D2>> <BR>> 2.5 How can I set NUMLOCK to be on =
at boot=20
time?<BR>> <BR>> This =
question=20
really has two answers. One applies to consoles and the<BR>> other to =
the X=20
Window System.<BR>> =
<BR>> For=20
console ttys: add the following to the end of your startup =
script<BR>>=20
'/etc/rc.d/rc.local' :<BR>>=20
<BR>> =20
INITTTY=3D/dev/tty[1-12]<BR>>  =
; for tty=20
in $INITTTY; do<BR>> =
setleds -D=20
+num <$tty<BR>> =
done<BR>>=20
<BR>> (Note that this is =
straight=20
from the man page for setleds.)<BR>>=20
<BR>> For X, you need to =
edit the=20
file '/usr/X11R6/lib/X11/xkb/types/basic'.<BR>> The last section of =
the file=20
is the "KEYPAD" section and looks like:<BR>>=20
<BR>> type "KEYPAD"=20
{<BR>> modifiers =3D=20
Shift+NumLock;<BR>> =
map[None] =3D=20
Level1;<BR>> map[Shift] =3D =
Level2;<BR>> map[NumLock] =
=3D=20
Level2;<BR>> =
map[Shift+NumLock] =3D=20
Level1;<BR>> =
level_name[Level1] =3D=20
"Base";<BR>> =
level_name[Level2] =3D=20
"Number";<BR>> <BR>> To =
set=20
NUMLOCK on by default, simply change every occurrence of =
"Level1"<BR>> to=20
"Level2" and change every occurrence of "Level2" to "Level1" (without=20
the<BR>> quotes). Then restart X. Note that the behavior of the =
NUMLOCK light=20
will change<BR>> as well (i.e. the light will be lit when NUMLOCK is =
OFF and=20
will be dark when<BR>> NUMLOCK is ON).<BR>> <BR>> > Tom =
Achtenberg=20
wrote:<BR>> > <BR>> > Here is an easy one I can't find in =
any of the=20
books. How can I have the num<BR>> > lock stay on when I =
boot? =20
The bios has it set on but right after the Linux<BR>> > kernel =
loads it=20
turns off. There must be a setting somewhere.<BR>> > =
<BR>> >=20
<BR>> > Tom Achtenberg<BR>> > <BR>> > Registered Linux =
User=20
#242974 (See </FONT><A href=3D"http://counter.li.org"><FONT =
face=3DVerdana=20
size=3D2>http://counter.li.org</FONT></A><BR><FONT face=3DVerdana =
size=3D2>> >=20
Visit my home page at </FONT><A href=3D"http://achtenberg.com"><FONT =
face=3DVerdana=20
size=3D2>http://achtenberg.com</FONT></A><BR><FONT face=3DVerdana =
size=3D2>>=20
________________________________________________<BR>> See </FONT><A=20
href=3D"http://PLUG.phoenix.az.us/navigator-mail.shtml"><FONT =
face=3DVerdana=20
size=3D2>http://PLUG.phoenix.az.us/navigator-mail.shtml</FONT></A><FONT=20
face=3DVerdana size=3D2> if your mail doesn't post to the list quickly =
and you use=20
Netscape to write mail.<BR>> <BR>> PLUG-discuss mailing list =
- =20
</FONT><A href=3D"mailto:PLUG-discuss@lists.plug.phoenix.az.us"><FONT =
face=3DVerdana=20
size=3D2>PLUG-discuss@lists.plug.phoenix.az.us</FONT></A><BR><FONT =
face=3DVerdana=20
size=3D2>> </FONT><A=20
href=3D"http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss"><F=
ONT=20
face=3DVerdana=20
size=3D2>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss</F=
ONT></A><BR><FONT=20
face=3DVerdana size=3D2>>=20
<BR><BR>________________________________________________<BR>See =
</FONT><A=20
href=3D"http://PLUG.phoenix.az.us/navigator-mail.shtml"><FONT =
face=3DVerdana=20
size=3D2>http://PLUG.phoenix.az.us/navigator-mail.shtml</FONT></A><FONT=20
face=3DVerdana size=3D2> if your mail doesn't post to the list quickly =
and you use=20
Netscape to write mail.<BR><BR>PLUG-discuss mailing list - =
</FONT><A=20
href=3D"mailto:PLUG-discuss@lists.plug.phoenix.az.us"><FONT =
face=3DVerdana=20
size=3D2>PLUG-discuss@lists.plug.phoenix.az.us</FONT></A><BR><A=20
href=3D"http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss"><F=
ONT=20
face=3DVerdana=20
size=3D2>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss</F=
ONT></A><BR></BODY></HTML>
------=_NextPart_000_003D_01C1AC2E.DEAF2D60--