How can I disable Caps Lock on text-mode (tty) terminals?
I have disabled caps lock in Ubuntu via the System Settings -> Keyboard panel (see How to programmatically swap the caps lock and esc keys? on how to find this option), however when I switch to a text-mode tty terminals (through Ctrl + Alt + F1) caps lock is no longer disabled.
I use these text-based terminals a fair amount - is there a way to completely disable Caps Lock, even on these terminals?
Solution 1:
I had success using the instructions posted on this blog in a virtual console:
echo -e "$(dumpkeys | grep ^keymaps)\nkeycode 58 = Escape" | sudo loadkeys
I'm not sure how to apply this automatically after every reboot, though.
While researching your question, I also ran across this alternative solution: