l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2007 Apr 27 10:39

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Num lock key never locked
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Num lock key never locked

På 2007-04-27, skrev Aaron A. King:
> Not sure how ubuntu does its initscripts, but on my boxes (running Mandriva) 
> there is a script, /etc/init.d/numlock, that toggles this.  By default this 
> 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 this 
> 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:

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

              for tty in $INITTY; do
                     setleds -D +num < $tty

(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 Gnome'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>.

Attachment: signature.asc
Description: Digital signature

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.