The officially official Devuan Forum!

You are not logged in.

#1 2021-12-25 18:45:13

turbo
Member
Registered: 2019-12-30
Posts: 16  

[SOLVED] NumLock on at boot time, possible?

Hello All,

is there a way to get NumLock activated before Login?
So it is ready to use for Login Credentials?

Offline

#2 2021-12-25 18:56:42

alphalpha
Member
From: Germany
Registered: 2018-01-23
Posts: 125  

Re: [SOLVED] NumLock on at boot time, possible?

Check your bios options, sometimes there is an option to set numlock at boot.

Offline

#3 2021-12-25 19:06:42

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,326  

Re: [SOLVED] NumLock on at boot time, possible?

Try adding this to /etc/rc.local (needs the kbd package):

initty="/dev/tty[1-6]"
for tty in $initty; do
   /usr/bin/setleds -D +num < "$tty"
done

EDIT: that's for console (TTY) screens.

If you mean for a display manager login see https://wiki.archlinux.org/title/LightD … by_default (for LightDM, other display managers will have similar options for startup scripts and commands).

Last edited by Head_on_a_Stick (2021-12-25 19:11:00)


To obtain a root shell use su -. Using just su will result in "command not found" messages.

Offline

#4 2021-12-25 22:30:03

turbo
Member
Registered: 2019-12-30
Posts: 16  

Re: [SOLVED] NumLock on at boot time, possible?

Thank you for the link.
Installed numlockx and works like a charme.

Offline

#5 2022-05-01 05:34:07

SpongeBOB
Member
From: Brussels
Registered: 2022-02-07
Posts: 47  

Re: [SOLVED] NumLock on at boot time, possible?

Head_on_a_Stick wrote:

Try adding this to /etc/rc.local (needs the kbd package):

initty="/dev/tty[1-6]"
for tty in $initty; do
   /usr/bin/setleds -D +num < "$tty"
done

It work like a charm ! Thanks HOAS.


Linux noob, plz be kind big_smile

Offline

Board footer