Turn on or off NumLock leds
From Linux Shell Scripting Tutorial - A Beginner's handbook
Revision as of 22:50, 29 March 2016 by Admin (Text replacement - "</source>" to "</syntaxhighlight>")
To turn on NumLock, use the setleds command as follows:
setleds -D +num
To turn off NumLock, enter:
setleds -D -num
- -D : Change both the VT flags and their default settings.
- +num : Clear NumLock.
- -num : Set NumLock.
Note: At present, the NumLock setting influences the interpretation of keypad keys. Pressing the NumLock key complements the NumLock setting.