LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 06-19-2004, 12:34 PM   #1
dbkluck
Member
 
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!

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

Rep: Reputation: 45
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
 
Old 06-19-2004, 12:53 PM   #3
pH*
Member
 
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):

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?
 
  


Reply


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 10:40 AM
how to startx automatically on login kushalkoolwal Debian 11 10-29-2005 12:16 PM
How can I make my debian turn NumLock on automatically? LittlesnowLinux Debian 8 11-26-2004 07:40 AM
how to turn numlock on automatically? Alf829 Linux - Newbie 6 08-22-2003 09:15 AM
How to enable Numlock key when booting my pc? whepin Linux - General 3 02-02-2002 07:32 AM


All times are GMT -5. The time now is 10:15 AM.

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