LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-29-2003, 08:50 AM   #1
Alf829
Member
 
Registered: Jul 2003
Distribution: Fedora Core 2 & 5
Posts: 110

Rep: Reputation: 15
how to turn numlock on automatically?


Hi,

Sorry about this silly newbie question, but is there any way of turning on the numlock automatically everytime red hat 9 loads up?

Currently, it's always off when I log in and if I don't remember to press the numlock key, things get a bit messy sometimes.

Regards,
alf829
 
Old 07-29-2003, 09:00 AM   #2
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
Hi,

Add to /etc/rc.d/rc.local:
INITTY=/dev/tty[1-8]
for tty in $INITTY; do
setleds -D +num < $tty
done

to activate it in X create a file .Xmodmap in your home dir like:
keycode 64 = Meta_L
keycode 0x6D = Multi_key
keycode 79 = 7
keycode 80 = 8
keycode 81 = 9
keycode 83 = 4
keycode 84 = 5
keycode 85 = 6
keycode 87 = 1
keycode 88 = 2
keycode 89 = 3
keycode 90 = 0
keycode 91 = comma
keycode 86 = plus
keycode 77 =

you can check the real keycodes with the command xev
 
Old 07-29-2003, 09:10 AM   #3
Alf829
Member
 
Registered: Jul 2003
Distribution: Fedora Core 2 & 5
Posts: 110

Original Poster
Rep: Reputation: 15
Hi vladkrack,

Thank you very much for your help . I'll give the commands a try.

Cheers,
alf829
 
Old 07-29-2003, 09:37 AM   #4
asktoby
Member
 
Registered: Jul 2003
Location: Cardiff, England ;)
Distribution: Mandrake 9.1
Posts: 94

Rep: Reputation: 15
You may be able to set "bootup numlock status" in your bios.
 
Old 07-29-2003, 10:08 AM   #5
Alf829
Member
 
Registered: Jul 2003
Distribution: Fedora Core 2 & 5
Posts: 110

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by asktoby

You may be able to set "bootup numlock status" in your bios.
That's already on, but during startup, linux turns the numlock off again.

Last edited by Alf829; 07-29-2003 at 10:12 AM.
 
Old 08-21-2003, 03:25 PM   #6
ganninu
Member
 
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340

Rep: Reputation: 30
ok i found out how it works.... basically doing:

setleds -L +num < /dev/tty[1]

will work for redhat users...
 
Old 08-22-2003, 08:15 AM   #7
Alf829
Member
 
Registered: Jul 2003
Distribution: Fedora Core 2 & 5
Posts: 110

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by ganninu
ok i found out how it works.... basically doing:

setleds -L +num < /dev/tty[1]

will work for redhat users...
Cool! Nice work ganninu

Thanks a million for the info.

I knew there was a less messy way of getting it to work

I'm sure a lot of people running RH are going to appreciate this.

Cheers,
Alf829
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
numlock turn on auto with start whited Linux - General 2 03-05-2005 11:53 AM
How can I make my debian turn NumLock on automatically? LittlesnowLinux Debian 8 11-26-2004 06:40 AM
making numlock turn on at kdm startup nafan Mandriva 2 08-23-2004 12:12 PM
automatically enable numlock on startx dbkluck Linux - Software 2 06-19-2004 11:53 AM
turn on numlock (wmaker) eduac Linux - Software 1 12-01-2003 01:23 PM


All times are GMT -5. The time now is 03:40 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration