Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-19-2004, 11:34 AM   #1
Registered: Jun 2003
Location: Washington DC
Distribution: debian sid
Posts: 78

Rep: Reputation: 15
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!

Old 06-19-2004, 11:47 AM   #2
LQ Addict
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
This works for me in SuSE9:
test -r /var/run/numlock-on -a -x /usr/X11R6/bin/numlock && /usr/X11R6/bin/numlock
in .xinitrc
Old 06-19-2004, 11:53 AM   #3
Registered: Nov 2003
Distribution: Slackware 10
Posts: 40

Rep: Reputation: 15
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):

#! /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?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
startx automatically free_andrew Slackware 17 11-10-2014 09:40 AM
how to startx automatically on login kushalkoolwal Debian 11 10-29-2005 11:16 AM
How can I make my debian turn NumLock on automatically? LittlesnowLinux Debian 8 11-26-2004 06:40 AM
how to turn numlock on automatically? Alf829 Linux - Newbie 6 08-22-2003 08:15 AM
How to enable Numlock key when booting my pc? whepin Linux - General 3 02-02-2002 06:32 AM > Forums > Linux Forums > Linux - Software

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration