LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   automatically enable numlock on startx (http://www.linuxquestions.org/questions/linux-software-2/automatically-enable-numlock-on-startx-195353/)

dbkluck 06-19-2004 11:34 AM

automatically enable numlock on startx
 
hey folks. a decidedly non-urgent question about something that's been annoying me for a while: is there anyway to make x automatically enable the numlock when it boots up? there's a setting for it in the bios, and that works for the machine startup and in the terminal, but for some reason it shuts off when i startx. i imagine this is a simple line in my xorg.conf; does anyone know what it is off the top of your head? (i use gnome, if that has anything to do with it.) thanks!

david

mikshaw 06-19-2004 11:47 AM

This works for me in SuSE9:
Code:

test -r /var/run/numlock-on -a -x /usr/X11R6/bin/numlock && /usr/X11R6/bin/numlock
in .xinitrc

pH* 06-19-2004 11:53 AM

I think this thread might be of some help to anyone having this same issue.

specifically though, for runlevel 3 "startx"-ers, it appears this might be a quick fix:

For the following, you need a program called numlockx

For starting X from the console i.e. via startx, stick the following in `$HOME/.xinitrc` (note the path to the numlockx program may be different for your distro):

Code:

#! /bin/sh

/usr/X11R6/bin/numlockx on

have yet to try it myself, and it seems like I've read about simpler methods, but the info is never around when you need it, huh?


All times are GMT -5. The time now is 02:24 PM.