Ubuntu Forums

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Absolute Beginner Talk
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Absolute Beginner Talk
The perfect place to post for your Ubuntu support if you are new to Linux.

 
Thread Tools Display Modes
Old June 12th, 2008   #1
Toegang
5 Cups of Ubuntu
 
Join Date: Nov 2007
Beans: 23
[SOLVED] Num Lock by default

Hi,

Still new . . .
When Xubuntu starts the num lock is off by default.
How do I get it ON by deafault?

Please let me know.

Toegang
Toegang is offline   Reply With Quote
Old June 12th, 2008   #2
avtolle
Iced Blended Vanilla Crème Ubuntu
 
Join Date: May 2006
Location: Wichita, Kansas
Beans: 2,967
Ubuntu 10.10 Maverick Meerkat
Re: Num Lock by default

There is a small app in the repositories, which I think is also available under Xubuntu, named numlock or something close to that. Install it, and after your system fully loads, your num lock key will be on by default.
avtolle is offline   Reply With Quote
Old June 12th, 2008   #3
Titan8990
Chocolate Ubuntu Mocha Blend
 
Join Date: Mar 2008
Beans: 1,755
Re: Num Lock by default

Most of the time that is an option that is found in the BIOS. In my BIOS i have to hit CTRL+F1 to see the option for it.
Titan8990 is offline   Reply With Quote
Old June 12th, 2008   #4
hyper_ch
Day Old Decaf
 
Join Date: Jun 2006
Location: Switzerland
My beans are hidden!
Kubuntu Jaunty Jackalope (testing)
Re: Num Lock by default

Code:
sudo apt-get install numlockx
hyper_ch is offline   Reply With Quote
Old June 16th, 2008   #5
Toegang
5 Cups of Ubuntu
 
Join Date: Nov 2007
Beans: 23
Re: Num Lock by default

@Titan:
My BIOS already says to activate num-lock . . .

@avtolle & hyper_ch:
Thanks, just thought it didn't work. The NumLock indicator on the keyboard didn't light up, so I persumed there was something missing in the trick. But later on I descovered the num keypad is working perfectly, it's just the indicator that put the world upside down. (burning = no numlock)

Any idea how to put that one right??
Toegang is offline   Reply With Quote
Old June 16th, 2008   #6
hyper_ch
Day Old Decaf
 
Join Date: Jun 2006
Location: Switzerland
My beans are hidden!
Kubuntu Jaunty Jackalope (testing)
Re: Num Lock by default

for me it's activated even if it does not light up.
hyper_ch is offline   Reply With Quote
Old June 21st, 2008   #7
jdarias
A Carafe of Ubuntu
 
Join Date: Nov 2006
Beans: 93
Re: Num Lock by default

You just received incomplete instructions. Keep numlockx installed.

You have to edit this file:

Code:
sudo mousepad /etc/gdm/Init/Default
Then you search for a line like this:
Code:
exit 0
In my case, it's at the end of the file.

Now you add this code on top of that line:
Code:
if [ -x /usr/bin/numlockx ]; then
  /usr/bin/numlockx on
fi
Must end looking like this:
Code:
if [ -x /usr/bin/numlockx ]; then
  /usr/bin/numlockx on
fi

exit 0

Last edited by jdarias; June 21st, 2008 at 10:14 AM.. Reason: Just some polishing
jdarias is offline   Reply With Quote
Old February 26th, 2009   #8
Redsandro
Ubuntu Extra Shot
 
Join Date: Feb 2007
Location: The Netherlands
My beans are hidden!
Ubuntu Development Release
Re: [SOLVED] Num Lock by default

It's most stupid that an operating system that decides to overrule the BIOS setting doesn't come with an option to turn it on.

I always thought I just hadn't find the option yet, and it became increasingly annoying.

So thanks for this solution, I accidentally stumbled upon it.
__________________
Windows 7 for Media Production, Ubuntu 12.04/Cinnamon for other work.
Xubuntu 12.04 as Media Center, CentOS 5.6 as server.
Linux Mint on my casual laptop, Maemo 5 on my Nokia N900.
Redsandro is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:13 AM.


vBulletin ©2000 - 2012, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry