VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: activate numlock on startup  (Read 4765 times)

ramesh

  • Member
  • *
  • Posts: 67
activate numlock on startup
« on: July 06, 2007, 11: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|

  • Packager
  • Vectorite
  • ****
  • Posts: 164
    • My Blog
Re: activate numlock on startup
« Reply #1 on: July 07, 2007, 12:54:48 am »

Hi ramesh

I believe you can add this line to your /etc/X11/xinitrc file:

Code: [Select]
numlockx on
I haven’t tested this, but if you try it, let me know how it works.


greetz
Logged
registered user #393337

JohnB316

  • Administrator
  • Vectorian
  • *****
  • Posts: 1346
  • Registered Linux User #386728
Re: activate numlock on startup
« Reply #2 on: July 07, 2007, 07: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
Re: activate numlock on startup
« Reply #3 on: July 07, 2007, 08:24:38 pm »

issuing the code   numlockx on did not help  Any other way out ?
Logged

uelsk8s

  • Administrator
  • Vectorian
  • *****
  • Posts: 2504
Re: activate numlock on startup
« Reply #4 on: July 07, 2007, 10: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: 1553
  • I like the bass to go BOOM!
    • Multimedia on VL (work in progress)
Re: activate numlock on startup
« Reply #5 on: July 08, 2007, 03: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
Most music on my soundcloud page was arranged in programs running on VL.

ramesh

  • Member
  • *
  • Posts: 67
Re: activate numlock on startup
« Reply #6 on: July 10, 2007, 04:47:01 am »

To

Headacher

 I tried both suggestions but nothing worked.   Any other way ?
Logged

tomh38

  • Vectorian
  • ****
  • Posts: 913
Re: activate numlock on startup
« Reply #7 on: July 10, 2007, 06: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: 1553
  • I like the bass to go BOOM!
    • Multimedia on VL (work in progress)
Re: activate numlock on startup
« Reply #8 on: July 10, 2007, 06: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
Most music on my soundcloud page was arranged in programs running on VL.

ramesh

  • Member
  • *
  • Posts: 67
Re: activate numlock on startup
« Reply #9 on: July 10, 2007, 08:50:11 am »

Dear Tom,
your suggestion really worked !  Thank you


Ramesh
Logged

The Headacher

  • Louder than you
  • Global Moderator
  • Vectorian
  • *****
  • Posts: 1553
  • I like the bass to go BOOM!
    • Multimedia on VL (work in progress)
Re: activate numlock on startup
« Reply #10 on: July 10, 2007, 02: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
Most music on my soundcloud page was arranged in programs running on VL.

tomh38

  • Vectorian
  • ****
  • Posts: 913
Re: activate numlock on startup
« Reply #11 on: July 11, 2007, 09: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