2

I have recently noticed something rather annoying, when in console (in one of the TTYs), if I press the caps lock key, the little light which normally lights up to show me that it is, does not, nor does the little light that tells me if my num lock is. Now this is rather annoying because sometimes I am typing something like a password which contains capital letters, and I can't actually see if the caps lock is on or not...

So I was wondering if there is a way to get them to show? And why they are not showing anyway (as they do when in the normal desktop environment)? As the light which shows my disk activity, is working fine, and it is just next to those other lights on my keyboard.


OS Information:

Description:    Ubuntu 15.04
Release:    15.04

1 Answers1

1

This might comes with some strings attached on how it work (with GNOME 3 running in a another TTY, the indicator lights got confused), but setleds seemed to work for me (in a TTY console, not in a terminal):

$ setleds
Current default flags:  NumLock off   CapsLock off   ScrollLock off
Current flags:          NumLock off   CapsLock off   ScrollLock off
Current leds:           NumLock off   CapsLock off   ScrollLock off

Which no arguments is shows the current status of the keys.
You can also change the status of the caps lock etc with

setleds -D -caps
setleds -D +caps

For more info readman setleds

Wilf
  • 30,732