On my new pi laptop (to be described in a later post) it always boots to console without numlock. I would prefer numlock to be ON always.

Raspbian GNU/Linux 10 (buster)

Working directory /home/pi/Dev/

Script setNumLockOn

for tty in $INITTY; do
    setleds -D +num < $tty

Service setNumlock.service

Description = Set numlock at boot

WorkingDirectory = /home/pi/Dev
ExecStart= bash -c "/home/pi/Dev/setNumlockOn"


Copy service to the right location:

sudo cp setNumlock.service /etc/systemd/system/

Start it:

sudo systemctl start setNumlock.service

Set to run at boot:

sudo systemctl enable setNumlock.service

Reboot and confirm that it works.