Ubuntu 16.04 - Turn NumLock on and disable NumLock key permanently

As the title suggests, I'm looking for a way to turn NumLock on and disable the NumLock key permanently. There is a solution here: , but I've not been able to find the "keyboard layout options" menu in Ubuntu 16.04 (there's only "Keyboard" and "Text Entry" in System Settings). The other thing I've tried is add the following commands to Startup Applications:

numlockx on && xmodmap -e "keycode 77 = """

This does not work either, and causes errors on startup. Is there a nice clean way to get this done?

Thanks.

2

3 Answers

After a bit of searching, I seem to have found a solution - Install "Gnome tweak tools" and under Typing-->Miscellaneous Compatibility Options, set "Numeric keypad keys always enter digits".

2

Use

xmodmap -e 'keycode 77 = NoSymbol Num_Lock'

in Startup Applications, this worked for me best, no need for numlockx on as it should be on by default.

I've made to turn on numlock automatically after system booting up with adding this line: greeter-setup-script=/usr/bin/numlockx on to the file /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.confSee more here: Enable Numlock on Login

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like