Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 12-23-2004, 03:16 PM   #16
LQ Newbie
Registered: Feb 2004
Location: Pablo
Distribution: Ubuntu, I have tried Debian Sarge 3.1r0a and Fedora Core 2.
Posts: 26

Rep: Reputation: 15

Adding the line to /etc/sysconfig/keyboard did nothing for me.

Found this in a "Tips/Tricks" thread:
If you would like Num Lock to be switched on at boot-up add this to your rc.local:
for tty in /dev/tty[1-6]; do
 /usr/bin/setleds -D +num < $tty
Thanks Jon!

Last edited by PhoenixofMT; 12-23-2004 at 05:21 PM.
Old 01-12-2005, 04:36 PM   #17
Registered: Jan 2005
Location: UK
Distribution: PCLinuxOS
Posts: 37

Rep: Reputation: 15
I tried both of these, i.e. the entry in the keyboard file and the one in the rc.local, but I still don't get the numlock on.

I am using FC3.

Any idea why they are not working please?

Old 02-02-2005, 08:59 AM   #18
LQ Newbie
Registered: Feb 2005
Distribution: Fedora Core 3
Posts: 2

Rep: Reputation: 0

about setting the numlock on startup, i remember mandrake linux runs a service program at every boot..
i dont know what program it is, but i found one that should do the same.

here is the link:

a readme file contains instructions on how to add it to system startup
Old 02-03-2005, 08:18 AM   #19
Registered: Jan 2005
Location: Sofia, Bulgaria
Distribution: Fedora Core 4 Rawhide
Posts: 431

Rep: Reputation: 30
Red face wow

compile = make (don't be freaked)

and why the hell you need numlock always on? you accountant?

Last edited by johnnydangerous; 02-03-2005 at 08:22 AM.
Old 02-04-2005, 04:10 PM   #20
LQ Newbie
Registered: Dec 2004
Location: FL
Distribution: Fedora Core 3
Posts: 6

Rep: Reputation: 0
Thumbs up NUMLOC

Here is what FINALLY worked for me I use Fedora core 3

open Emacs and type the following:

#include <X11/extensions/XTest.h>
#include <X11//keysym.h>

int main(){
Display* disp = XOpenDisplay(NULL);
if (disp == NULL) return 1;
XTestFakeKeyEvent(disp, XKeysymToKeycode(disp, XK_Num_Lock),
True, CurrentTime);
XTestFakeKeyEvent(disp, XKeysymToKeycode(disp, XK_Num_Lock),
False, CurrentTime);
return 0;

save as: setnumlock.c

Since this is just a source file, you will need to compile it by pasting the following into a command shell in the same directory as this file you saved as setnumlock.c:

type: gcc -I/usr/X11R6/include -L/usr/X11R6/lib -o setnumlock setnumlock.c -lX11 -lXtst

type: cp setnumlock /bin/

Edit your /home/(your-login)/.bashrc file in emacs and put in the "setnumlock" command without quotes of course..

You should now be able to just log out and back in and NUMLOCK should be on..

I hope...

Old 03-07-2005, 01:51 PM   #21
Registered: Sep 2002
Location: Haarlem , the Netherlands
Distribution: VectorLinux SOHO 5.1
Posts: 470

Rep: Reputation: 35
Re: wow

Originally posted by johnnydangerous
and why the hell you need numlock always on? you accountant? [/B]
Typing IP-adresses also goes a lot faster and easier by the numpad.
Mathematic calculations also go a lot smoother.
In fact : That row of numbers on top of the keyboard is the one I could do without ; Clumsy , archa´c , retarded....


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
Caps Lock and Num Lock leds dont work! npc Linux - Hardware 2 11-08-2005 11:40 AM
Num Lock AnimeLover1985 Slackware 5 03-25-2005 01:11 PM
Num, Scroll, Caps/Lock all Lock up Slackware Zamochit Linux - Newbie 0 10-18-2004 08:47 PM
num lock chrismiceli Linux - General 18 12-16-2002 09:26 PM
Num Lock mtb Linux - Newbie 8 11-27-2002 01:39 AM

All times are GMT -5. The time now is 06:31 PM.

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