having Number lock turn on
what file and where do I edit the file so that when I log on the number lock automatically goes on?
|
well never heard anything of the such ...
just press the button ? its right by your hands ...:confused: :confused: |
yeah but I forget and I'm typing some numbers and DAMNIT forgot to turn it on!
|
well i don't know what to tell ya ..
i mean to me, that still really isn't much of an issue ... when you see the numbers aren't outputting on the screen then you press the numlock button .. put a post it note or something on your monitor stating: "when computer is booting press numlock key" and then it should stay on the remainder of your session at your computer.... |
I know but I would just lik,e to have it number lock :)
|
well who knows .. maybe there is a way of doing it ..
and maybe someone knows how to do something like this ... to me i don't think there would be such a file that you could edit that could make this happen, but weirder things have happened ;) |
I know that KDE does it, but that's if your booting into the GUI. Never heard of a way from CLI.
|
what about Gnome?
|
For console, put this in /etc/rc.d/rc.local:
Code:
for tty in /dev/tty[1-6];do For X, save this C code in a file called "setnumlock.c" and compile it with "gcc -o setnumlock setnumlock.c" Code:
#include <X11/extensions/XTest.h> |
bash-2.05b# gcc -o setnumlock setnumlock.c
/tmp/ccsdFYdj.o(.text+0x16): In function `main': : undefined reference to `XOpenDisplay' /tmp/ccsdFYdj.o(.text+0x3c): In function `main': : undefined reference to `XKeysymToKeycode' /tmp/ccsdFYdj.o(.text+0x4d): In function `main': : undefined reference to `XTestFakeKeyEvent' /tmp/ccsdFYdj.o(.text+0x61): In function `main': : undefined reference to `XKeysymToKeycode' /tmp/ccsdFYdj.o(.text+0x72): In function `main': : undefined reference to `XTestFakeKeyEvent' /tmp/ccsdFYdj.o(.text+0x80): In function `main': : undefined reference to `XCloseDisplay' collect2: ld returned 1 exit status that's what I recieved lol what do I put in the .xinitrc ? |
same question:
what do I put in the .xinitrc ? :confused: |
perhaps man xset will help
chefmark = :newbie: |
any resoltuion to this?
I tried and got the same error messages, with no "program" created. I know KDE lets you set this option, but still haven't found an answer as to how to successfully get it in Gnome. Anybody? |
Okay, got it working. For those intersted, here's what I had to do...
First, go to http://www.justlinux.com/nhf/Hardwar...o_Stay_On.html and download the numlockx file. follow his intsructions to compile and install (very simple, even for the total newbie). Now, when it comes to creating/editing the .xinitrc file, that part did not get it starting automatically for me. I had to, using Gnome, open the preferences->More Preferences-> Sessions manager, and on the startup programs tab, choose "add" and enter numlockx. Set the order for it to very high, I used 75, so it starts absolutely last. If you dont do this it hangs things and gives problems. Reboot or Log out/in, and all should be well. Good luck... |
All times are GMT -5. The time now is 04:54 AM. |