[vox-tech] Num lock key never locked

hajhouse hajhouse at houseag.com
Fri Apr 27 10:33:47 PDT 2007


P=E5 2007-04-27, skrev Aaron A. King:
> Not sure how ubuntu does its initscripts, but on my boxes (running Mandri=
va) =

> there is a script, /etc/init.d/numlock, that toggles this.  By default th=
is =

> script is run whenever I boot into runlevels 2, 3, or 4, I think.  I don'=
t =

> like this behavior and so turned it off.  Try this:
> =

> $ man chkconfig
> $ ls /etc/init.d/
> $ sudo chkconfig --list numlock
> =

> To turn it off I did =

> =

> $ sudo chkconfig numlock off
> =

> If I'm on the right track you could turn it on in a similar way.  Hope th=
is =

> helps.

Note that numlock state is different for X versus text-mode virtual
consoles (ttys). For ttys, you can turn on numlock with a script like:

EXAMPLE
       One might use setleds in /etc/rc to define the initial and default s=
tate of NumLock, e.g. by

              INITTY=3D/dev/tty[1-8]
              for tty in $INITTY; do
                     setleds -D +num < $tty
              done

(example ripped from setleds(1) man page)

For X, you can use numlockx (see http://packages.ubuntu.com/numlockx) or as
someone (Ken?) mentioned earlier in this thread, there is a facility in Gno=
me's
control panel to set the initial numlock state.

-- =

Henry House
+1 530 753 3361 ext. 13
Please don't send me HTML mail! My mail system frequently rejects it.
The unintelligible text that may follow is a digital signature.
See <http://hajhouse.org/pgp> to find out how to use it.
My OpenPGP key: <http://hajhouse.org/hajhouse.asc>.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.lugod.org/pipermail/vox-tech/attachments/20070427/755545=
b1/attachment.pgp


More information about the vox-tech mailing list