Linux Lite Forums
How to enable Numlock on login screen - Printable Version

+- Linux Lite Forums (https://www.linuxliteos.com/forums)
+-- Forum: Software - Support (https://www.linuxliteos.com/forums/forumdisplay.php?fid=5)
+--- Forum: Tutorials (https://www.linuxliteos.com/forums/forumdisplay.php?fid=21)
+--- Thread: How to enable Numlock on login screen (/showthread.php?tid=1686)



How to enable Numlock on login screen - anon222 - 03-28-2015

Press Ctrl+Alt+T to open Terminal
First you need to install the package numlockx. Type in:
Code:
sudo apt-get install numlockx
Then you need to change /etc/lightdm/lightdm.conf file

Two ways to do it:
1. Run this command:
Code:
sudo sh -c "printf '\ngreeter-setup-script=/usr/bin/numlockx on' >> /etc/lightdm/lightdm.conf"
It will add this line greeter-setup-script=/usr/bin/numlockx on at the end of the file.

2. Open /etc/lightdm/lightdm.conf file with superuser privileges
Code:
sudo  leafpad /etc/lightdm/lightdm.conf
then add this line to the end of the /etc/lightdm/lightdm.conf file
Code:
greeter-setup-script=/usr/bin/numlockx on

Additional info:
greeter-setup-script=/usr/bin/numlockx off
will disable Numlock on login screen
Code:
sudo  leafpad /etc/lightdm/lightdm.conf



Re: How to enable Numlock on login screen - Valtam - 03-29-2015

Thank you for including this misko Smile


Re: How to enable Numlock on login screen - flatstuff - 01-31-2016

I am new to Linux Lite and have been searching for this information, but it does not work...

when I added the information to /etc/lightdm/lightdm.conf file which I had to create, my system would not boot into LL anymore. I dropped into a root command line and removed the line and then it booted up fine.

I even tried the line "activate-numlock=true" which I have used before on another system, but it doesn't do anything. Any help would be appreciated as this is driving me crazy!!!

Terry



Re: How to enable Numlock on login screen - nomko - 02-01-2016

This does the trick as well:
https://sites.google.com/site/easytipsforlinux/numlock-on-at-login-screen-1


Re: How to enable Numlock on login screen - flatstuff - 02-01-2016

Thanks nomko, but that did not work either.  Don't think it is something with my system as its basically a fresh install. Will keep researching.

Terry


Re: How to enable Numlock on login screen - flatstuff - 02-01-2016

So I got it to work, basically the same info as the first post by misko_2083, but in a different folder/file

I used the folder

/usr/share/lightdm/lightdm.conf.d/ and added the line

"greeter-setup-script=/usr/bin/numlockx on" to the end of the file

50-greeter-wrapper.conf

So happy now to have that working...not sure why the different folder but will keep learning!

Terry