I think I've discovered a possible bug in Debian 9 Stretch.
When the system boots, or the user locks the screen, the number lock is always "off" - even when the keyboard LED indicates that it is "on".
- I have tried enabling numlock at boot (in bios)
- I have tried installing
numlockx
and editing the file/etc/default/numlockx
- Restore num lock state on startup is enabled in the keyboard settings
- I have a script which is run from a udev rule whenever my keyboard is connected. This script executes;
numlockx on
,xset b off
Note that I am using the XFCE desktop environment
Having the number lock state default back to "off" when locking the screen is a particular annoyance for me as I enter my password using the numberpad. (It's not just numbers but I can enter the sequence faster using one hand on the alpha part of the keyboard and another on the numberpad.)
I also have a startup script which enables numberlock and disables the "bell". (numlockx on
, xset b off
) This works when the user is logged in however does not work "system wide", or before the user is logged in, and does not work at the logon screen. Is there a way to enable numlock and disable the bell system wide?
Note: Disabled restore numlock state on startup in system settings and it now appears to be working.
Edit: No it isn't - the lock screen bug is still present.