ramesh
Member

Posts: 67
|
 |
« on: July 06, 2007, 10:06:20 pm » |
|
Hi all
How to activate numlock on startup ?
I ssued the command 'slapt-get --install numlockx' as root. This installed numlockx but does'nt work
reissue of the same command gives the follwowing output -- numlockx is already the newest version. What went wrong ?
|
|
|
|
|
Logged
|
|
|
|
|
|nic|
|
 |
« Reply #1 on: July 06, 2007, 11:54:48 pm » |
|
Hi ramesh I believe you can add this line to your /etc/X11/xinitrc file: numlockx on I haven’t tested this, but if you try it, let me know how it works. greetz
|
|
|
|
|
Logged
|
registered user #393337
2x AMD Athlon(tm) 64 X2 Dual Core Processor 5000+ / 4 gb ram / GeForce GT220 / 500 gb HD / VL7 Std
Samsung NP110 / VL7 Std
|
|
|
JohnB316
Administrator
Vectorian
    
Posts: 1346
Registered Linux User #386728
|
 |
« Reply #2 on: July 07, 2007, 06:06:42 pm » |
|
To add to the thread, this question has been answered before. If you are using KDE, you don't need to install numlockx. There is a setting in the Control Center for the Keyboard that will automatically turn on the Num Lock key at startup.
HTH, John
|
|
|
|
|
Logged
|
VL 6.0 SOHO latest alpha on one box, VL 5.9 Lite on the other.
|
|
|
ramesh
Member

Posts: 67
|
 |
« Reply #3 on: July 07, 2007, 07:24:38 pm » |
|
issuing the code numlockx on did not help Any other way out ?
|
|
|
|
|
Logged
|
|
|
|
|
uelsk8s
|
 |
« Reply #4 on: July 07, 2007, 09:33:34 pm » |
|
you will need to install the numlockx package
open a terminal then su to root then type "slapt-get --update" when that completes type "slapt-get --install numlockx"
|
|
|
|
|
Logged
|
|
|
|
The Headacher
Louder than you
Global Moderator
Vectorian
    
Posts: 1536
I like the bass to go BOOM!
|
 |
« Reply #5 on: July 08, 2007, 02:29:16 am » |
|
Ramesh, in future posts please state what version you are using, I don't want to have to keep asking (HINT: you can also put this info in your signature).
1) did "numlockx on" turn on the numlock?
2) if so, have you added this command to the end of /etc/X11/xinitrc ?
|
|
|
|
|
Logged
|
|
|
|
ramesh
Member

Posts: 67
|
 |
« Reply #6 on: July 10, 2007, 03:47:01 am » |
|
To
Headacher
I tried both suggestions but nothing worked. Any other way ?
|
|
|
|
|
Logged
|
|
|
|
|
tomh38
|
 |
« Reply #7 on: July 10, 2007, 05:47:56 am » |
|
ramesh,
If you are using Xfce, you can add numlockx to your "Autostarted Applications." Go to the main menu, then "Settings," then "Autostarted Applications." A dialog box will appear. Click "Add" and type in "numlockx" where it says "Command:". You'll also need to give it a name. If you do this, numlockx will start when you log in (this assumes you have numlockx installed).
This may not be the best solution, but it should work.
Tom
|
|
|
|
|
Logged
|
"I'm doing a (free) operating system (just a hobby, won't be big and professional like gnu) for 386(486) AT clones." - Linus Torvalds, April 1991
|
|
|
The Headacher
Louder than you
Global Moderator
Vectorian
    
Posts: 1536
I like the bass to go BOOM!
|
 |
« Reply #8 on: July 10, 2007, 05:49:58 am » |
|
He can add it all he wants, but if just "numlockx on" from a terminal doesn't work there's no reason why it will work when called from a script.
|
|
|
|
|
Logged
|
|
|
|
ramesh
Member

Posts: 67
|
 |
« Reply #9 on: July 10, 2007, 07:50:11 am » |
|
Dear Tom, your suggestion really worked ! Thank you
Ramesh
|
|
|
|
|
Logged
|
|
|
|
The Headacher
Louder than you
Global Moderator
Vectorian
    
Posts: 1536
I like the bass to go BOOM!
|
 |
« Reply #10 on: July 10, 2007, 01:01:08 pm » |
|
Well I'll be... I don't understand why that works if "numlockx on" doesn't work, but I just want to say: "Sorry, I was wrong".
|
|
|
|
|
Logged
|
|
|
|
|
tomh38
|
 |
« Reply #11 on: July 11, 2007, 08:35:07 am » |
|
Hey The Headacher, I re-read the thread, then I put that line in my xinitrc file, and naturally, it worked. So I don't understand what's going on either.  Tom
|
|
|
|
|
Logged
|
"I'm doing a (free) operating system (just a hobby, won't be big and professional like gnu) for 386(486) AT clones." - Linus Torvalds, April 1991
|
|
|
|