Linux Lite Forums

Full Version: How to enable Numlock on login screen
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Thank you for including this misko Smile
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
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
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