LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-23-2004, 02:16 PM   #16
PhoenixofMT
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
Lightbulb


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

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

Last edited by PhoenixofMT; 12-23-2004 at 04:21 PM.
 
Old 01-12-2005, 03:36 PM   #17
Nighthawk4
Member
 
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, 07:59 AM   #18
blue_death
LQ Newbie
 
Registered: Feb 2005
Distribution: Fedora Core 3
Posts: 2

Rep: Reputation: 0
numlock

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:
http://sourceforge.net/project/showf...lease_id=61904

a readme file contains instructions on how to add it to system startup
 
Old 02-03-2005, 07:18 AM   #19
johnnydangerous
Member
 
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 07:22 AM.
 
Old 02-04-2005, 03:10 PM   #20
zoomastr
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);
XCloseDisplay(disp);
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...

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

Rep: Reputation: 35
Re: wow

Quote:
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....
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 09:15 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration