Turn on or off NumLock leds
From Linux Shell Scripting Tutorial - A Beginner's handbook
To turn on NumLock, use the setleds command as follows:
setleds -D +num
To turn off NumLock, enter:
setleds -D -num
Where,
- -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.
See also