Numlock wanted ON by default

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
johnglid

Re: Numlock wanted ON by default

Post by johnglid »

Found the solution here "http://nancib.wordpress.com/2011/12/17/ ... de-starts/"... Informative article.
marsh20
Level 4
Level 4
Posts: 222
Joined: Thu Dec 15, 2011 5:44 am
Location: UK

Re: Numlock wanted ON by default

Post by marsh20 »

Hi all,

Sorry to resurrect this thread.

I am running LM 13 Mate and have tried the suggested fix from Nomko early in this thread and does not seem to have had any effect.

Any other suggestions?
Think about the "undo" before you "do".
marsh20
Level 4
Level 4
Posts: 222
Joined: Thu Dec 15, 2011 5:44 am
Location: UK

Re: Numlock wanted ON by default

Post by marsh20 »

Hi All,

I think I screwed up my etc/mdm/init/default its now totally blank any advise how to get the default back?
Think about the "undo" before you "do".
claudecat

Re: Numlock wanted ON by default

Post by claudecat »

For me the setting in System Settings under Input Devices to turn on numlock did not work. What did work was to install numlockx (sudo apt-get install numlockx) and then in System Settings under Startup and Shutdown/Autostart click Add Program and type in numlockx. This has worked in several distros in which the KDE setting does not.
kaspin

Re: Numlock wanted ON by default

Post by kaspin »

Thanks for that claudecat. It worked fine on my French keyboard in LDME (Cinnamon) :D , whereas 3 or 4 other suggestions from elsewhere didn't :( . Have recently changed, after several years with Ubuntu (didn't like 12.04) and find the contributors to the LMDE fora (o.k. forums) much less pompous.... Thanks again, Kaspin
blueknight529

Re: Numlock wanted ON by default

Post by blueknight529 »

sudo apt-get install numlockx

- Now edit /etc/mdm/Init/Default and insert the bellow code.

sudo gedit /etc/mdm/Init/Default (or use vi, nano, leafpad, etc as the editor instead of gedit)
and insert these lines at the end of the file, just before "exit 0":

if [ -x '/usr/bin/numlockx' ];
then
/usr/bin/numlockx on
fi

- Save & Exit editor program


It is done. :-)
inhiway

Re: Numlock wanted ON by default

Post by inhiway »

+1
TheOne

Re: Numlock wanted ON by default

Post by TheOne »

blueknight529 wrote:sudo apt-get install numlockx

- Now edit /etc/mdm/Init/Default and insert the bellow code.

sudo gedit /etc/mdm/Init/Default (or use vi, nano, leafpad, etc as the editor instead of gedit)
and insert these lines at the end of the file, just before "exit 0":

if [ -x '/usr/bin/numlockx' ];
then
/usr/bin/numlockx on
fi

- Save & Exit editor program


It is done. :-)

Thank you so much!
stilloving

Re: Numlock wanted ON by default

Post by stilloving »

This method enable numlock during login and after login, so you have the numlock always ON in your LINUX MINT and LMDE

1) FIRST, install numlockx : sudo apt-get install numlockx

2) SECOND, go to menu and type startup application and opent it.

3) Click on +add

4) On "Name" put NUMLOCK ON

5) On "Command" put /usr/bin/numlockx on

6) Click on "+add" and "close" .


7) Go to /etc/mdm/Init/ and edit Default

8) Add before exit 0 these lines:

if [ -x /usr/bin/numlockx ]; then
exec /usr/bin/numlockx on
fi


Just restart your computer and next time you turn on it you have Numlock On always.


Stilloving from Argentina, Buenos Aires
Locked

Return to “Beginner Questions”