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 07-01-2004, 03:27 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Num Lock always OFF?


I have this issue with fedora core 2 - when I boot up everyday - I am always annoyingly reminded that my num lock key is turned off.

My BIOS is set to boot with this on but Linux does not seem to register that info - how do I make this auto?
 
Old 07-01-2004, 03:47 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
If you have a C compiler you can make a small application called setnumlock that can turn numlock on for you. Download this ftp://ftp.silug.org/pub/ltsp/setnumlock.tar.gz and untar it then cd into it, compile and install it, change the permissions so ordinary users can use it and then get gnome to run it every time you log in
Code:
tar xzf setnumlock.tar.gz
cd setnumlock
make
su
password
make install
chmod 755 /usr/bin/setnumlock
exit
gnome-session-properties
Click the Startup Programs tab then click Add+, enter setnumlock into the box and click OK
 
Old 07-01-2004, 03:56 AM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Ok -

sorry but I am very new so forgive my ignorance but anytime I see the word compile - it freaks me out...I can hardly untar something.

Next, I am using KDE, not GNOME - so how will that work?

Can you explain what I need to do after these steps?

download the file setnumlock.tar.gz...to /home/carlwill

open konsole and type

Code:
tar xzf setnumlock.tar.gz
Then I CD to the new folder

Code:
make
su
password
make install
chmod 755 /usr/bin/setnumlock
exit
How do I compile this? I don't understad

And how do I make KDE work with this?

Thanks for this great info...
 
Old 07-01-2004, 04:03 AM   #4
KlaymenDK
Member
 
Registered: Sep 2003
Location: Denmark
Distribution: FreeBSD v6.0
Posts: 123

Rep: Reputation: 15
Yeah I got the same problem. Luckily Mandrake runs a "numlock" item during boot that allows me to specify this as "on" -- maybe you should have a look among your RPMs to see if "numlock" is included in your distro as well. I hope so.
 
Old 07-01-2004, 04:31 AM   #5
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
how do I check for RPM's?
 
Old 07-01-2004, 06:02 AM   #6
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
I think kde can set numlock on for you. I don't use kde but I think I read something about it here http://www.linuxgazette.com/node/view/395
 
Old 07-24-2004, 04:35 PM   #7
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Andrew - that worked great for KDE - anything for Gnome?
 
Old 08-22-2004, 01:57 AM   #8
isbrucker
LQ Newbie
 
Registered: Aug 2004
Location: Vancouver, BC, Canada
Distribution: Mandrake 10
Posts: 1

Rep: Reputation: 0
Talking Andrew rocks!

Andrew:

Your directions were flawless. I'm new to Linux (though I did run a UNIX box in the 90's) and was also mortified at the word "compile".

So I followed your steps, and it worked. First time. Even added it to my AUTOEXEC, I mean STARTUP, I mean... what's that MSCONFIG-esque utility called in Gnome...?

Thanks, Again

Eric Isbrucker


Now if I could only figure out how to print to the laser on the XP machine.
 
Old 08-23-2004, 09:33 AM   #9
valencequark
Member
 
Registered: Aug 2004
Location: greater dc metro area
Distribution: various, mostly fedora
Posts: 79

Rep: Reputation: 16
Quote:
Originally posted by carlwill
Ok -

sorry but I am very new so forgive my ignorance but anytime I see the word compile - it freaks me out...I can hardly untar something.

Next, I am using KDE, not GNOME - so how will that work?

Can you explain what I need to do after these steps?

download the file setnumlock.tar.gz...to /home/carlwill

open konsole and type

Code:
tar xzf setnumlock.tar.gz
Then I CD to the new folder

Code:
make
su
password
make install
chmod 755 /usr/bin/setnumlock
exit
How do I compile this? I don't understad

And how do I make KDE work with this?

Thanks for this great info...
the make command compiles it.

it seems that you may be missing a step in your code section, generally you have to configure before you compile , ie by typing ./configure

cheers,
--vq
 
Old 08-23-2004, 09:49 AM   #10
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
It's a very small piece of code, there is no configure script as there's no need for one.
 
Old 08-27-2004, 03:22 PM   #11
brainfry
LQ Newbie
 
Registered: Oct 2003
Location: Manchester UK
Distribution: Dapper 64
Posts: 25

Rep: Reputation: 15
Andrew, just read your crystal clear instructions, followed them in FC1 with Gnome and they worked perfectly.

As daft as it may sound, it's sometimes the *little things* like no num lock that bug people.

Nice one mate.

 
Old 08-31-2004, 09:14 PM   #12
xbriank
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 5
Posts: 9

Rep: Reputation: 0
this works for GUI but ...

how can I get this to work from startup
 
Old 09-01-2004, 10:54 AM   #13
polik
LQ Newbie
 
Registered: Sep 2004
Location: Italy
Distribution: RHEL
Posts: 10

Rep: Reputation: 0
numlock off

You can set the numlock off(/on) adding a line to /etc/sysconfig/keyboard, i.e. write

KBD_NUMLOCK="no"

if you want the numlock off.
It applies after the boot (grub/lilo), but before the login request.

(This implies that you know how to add a line to a file...)
 
Old 10-11-2004, 12:42 PM   #14
BeatRyder
LQ Newbie
 
Registered: Oct 2004
Distribution: Gentoo
Posts: 18

Rep: Reputation: 0
W00t that worked like a charm for me

Next question is to figure ouy how to make it work on boot
 
Old 12-10-2004, 07:00 PM   #15
zoomastr
LQ Newbie
 
Registered: Dec 2004
Location: FL
Distribution: Fedora Core 3
Posts: 6

Rep: Reputation: 0
THANKS Pollk
adding a line to /etc/sysconfig/keyboard
KBD_NUMLOCK="yes"
worked for me

On my laptop I had SETNUMLOCK in my etc/bashrc and I think it would work on an attached keyboard if I didn't want to use the keybord on the laptop.. you don't want numlock on on a laptop

zoomastr
 
  


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 07:51 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