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.&nbsp; 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>&nbsp;</DIV>
<DIV><BR><FONT face=3DVerdana size=3D2>Tom Achtenberg</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>Help me win the Food for the Hungry =
Child=20
Sponsorship Contest!&nbsp; <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>&nbsp;</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" &lt;</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>&gt;</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>To: &lt;</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>&gt;</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.&nbsp; 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>&gt; Found this also:<BR>&gt; =
<BR>&gt;=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>&gt; <BR>&gt; 2.5 How can I set NUMLOCK to be on =
at boot=20
time?<BR>&gt; <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This =
question=20
really has two answers. One applies to consoles and the<BR>&gt; other to =
the X=20
Window System.<BR>&gt; =
<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For=20
console ttys: add the following to the end of your startup =
script<BR>&gt;=20
'/etc/rc.d/rc.local' :<BR>&gt;=20
<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
INITTTY=3D/dev/tty[1-12]<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
; for tty=20
in $INITTTY; do<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
setleds -D=20
+num &lt;$tty<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
done<BR>&gt;=20
<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (Note that this is =
straight=20
from the man page for setleds.)<BR>&gt;=20
<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For X, you need to =
edit the=20
file '/usr/X11R6/lib/X11/xkb/types/basic'.<BR>&gt; The last section of =
the file=20
is the "KEYPAD" section and looks like:<BR>&gt;=20
<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type "KEYPAD"=20
{<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; modifiers =3D=20
Shift+NumLock;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
map[None] =3D=20
Level1;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map[Shift] =3D =

Level2;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map[NumLock] =
=3D=20
Level2;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
map[Shift+NumLock] =3D=20
Level1;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
level_name[Level1] =3D=20
"Base";<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
level_name[Level2] =3D=20
"Number";<BR>&gt; <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To =
set=20
NUMLOCK on by default, simply change every occurrence of =
"Level1"<BR>&gt; to=20
"Level2" and change every occurrence of "Level2" to "Level1" (without=20
the<BR>&gt; quotes). Then restart X. Note that the behavior of the =
NUMLOCK light=20
will change<BR>&gt; as well (i.e. the light will be lit when NUMLOCK is =
OFF and=20
will be dark when<BR>&gt; NUMLOCK is ON).<BR>&gt; <BR>&gt; &gt; Tom =
Achtenberg=20
wrote:<BR>&gt; &gt; <BR>&gt; &gt; Here is an easy one I can't find in =
any of the=20
books.&nbsp; How can I have the num<BR>&gt; &gt; lock stay on when I =
boot?&nbsp;=20
The bios has it set on but right after the Linux<BR>&gt; &gt; kernel =
loads it=20
turns off.&nbsp; There must be a setting somewhere.<BR>&gt; &gt; =
<BR>&gt; &gt;=20
<BR>&gt; &gt; Tom Achtenberg<BR>&gt; &gt; <BR>&gt; &gt; 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>&gt; &gt;=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>&gt;=20
________________________________________________<BR>&gt; 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>&gt; <BR>&gt; PLUG-discuss mailing list&nbsp; =
-&nbsp;=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>&gt; </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>&gt;=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&nbsp; -&nbsp; =
</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--