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? |
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 |
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 Code:
make And how do I make KDE work with this? Thanks for this great info... |
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. :)
|
how do I check for RPM's?
|
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
|
Andrew - that worked great for KDE - anything for Gnome?
|
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 :newbie: Now if I could only figure out how to print to the laser on the XP machine. :( |
Quote:
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 |
It's a very small piece of code, there is no configure script as there's no need for one.
|
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. :newbie: |
this works for GUI but ...
how can I get this to work from startup
|
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...) |
W00t that worked like a charm for me :D
Next question is to figure ouy how to make it work on boot |
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 :newbie: |
Adding the line to /etc/sysconfig/keyboard did nothing for me.
Found this in a "Tips/Tricks" thread: Quote:
|
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? :scratch: |
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 |
wow
compile = make (don't be freaked)
and why the hell you need numlock always on? you accountant? |
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... :newbie: zoomastr |
Re: wow
Quote:
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.... |
All times are GMT -5. The time now is 06:58 AM. |