Re: Ну ладно, тогда скажите, как из скрипта включить NumLock?
Почитай man setleds.
EXAMPLE
One might use setleds in /etc/rc to define the initial and
default state of NumLock, e.g. by
INITTY=/dev/tty[1-8]
for tty in $INITTY; do
setleds -D +num < $tty
done