Page 2 of 2

Re: Numlock wanted ON by default

Posted: Sat Aug 11, 2012 10:22 pm
by johnglid
Found the solution here "http://nancib.wordpress.com/2011/12/17/ ... de-starts/"... Informative article.

Re: Numlock wanted ON by default

Posted: Wed Aug 15, 2012 4:51 am
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?

Re: Numlock wanted ON by default

Posted: Fri Aug 17, 2012 4:34 pm
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?

Re: Numlock wanted ON by default

Posted: Fri Aug 17, 2012 5:39 pm
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.

Re: Numlock wanted ON by default

Posted: Sun Mar 03, 2013 9:37 am
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

Re: Numlock wanted ON by default

Posted: Fri May 24, 2013 9:55 am
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. :-)

Re: Numlock wanted ON by default

Posted: Sat Jun 01, 2013 8:02 pm
by inhiway
+1

Re: Numlock wanted ON by default

Posted: Sat Jun 01, 2013 10:18 pm
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!

Re: Numlock wanted ON by default

Posted: Sat Jun 29, 2013 8:12 am
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