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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-29-2003, 09:50 AM
|
#1
|
Member
Registered: Jul 2003
Distribution: Fedora Core 2 & 5
Posts: 110
Rep:
|
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
|
|
|
07-29-2003, 10:00 AM
|
#2
|
Member
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334
Rep:
|
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
|
|
|
07-29-2003, 10:10 AM
|
#3
|
Member
Registered: Jul 2003
Distribution: Fedora Core 2 & 5
Posts: 110
Original Poster
Rep:
|
Hi vladkrack,
Thank you very much for your help . I'll give the commands a try.
Cheers,
alf829
|
|
|
07-29-2003, 10:37 AM
|
#4
|
Member
Registered: Jul 2003
Location: Cardiff, England ;)
Distribution: Mandrake 9.1
Posts: 94
Rep:
|
You may be able to set "bootup numlock status" in your bios.
|
|
|
07-29-2003, 11:08 AM
|
#5
|
Member
Registered: Jul 2003
Distribution: Fedora Core 2 & 5
Posts: 110
Original Poster
Rep:
|
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 11:12 AM.
|
|
|
08-21-2003, 04:25 PM
|
#6
|
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:
|
ok i found out how it works.... basically doing:
setleds -L +num < /dev/tty[1]
will work for redhat users...
|
|
|
08-22-2003, 09:15 AM
|
#7
|
Member
Registered: Jul 2003
Distribution: Fedora Core 2 & 5
Posts: 110
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 05:00 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|