Keyboard Numpad mulfunction when numlock is on

Ubuntu Version:
24.04.3 LTS

Desktop Environment:
Ubuntu 24.04.3 LTS Desktop

Hi everybody,
I am just a beginner (even less) in Linux/Ubuntu. I have a mini PC with Ubuntu 24.04.3 LTS installed. I use it as a Samba server and Jellyfin Media server without any problem (all installed with walkthrough).
Problem I am experiencing now, appeared after a silly accident. I dropped a book on my keyboard and several windows opened and closed. I guess this drop activated or deactivated some function/s related with number pad.
What is happening now is;
On any area on screen (Numlock On) like browser, terminal, text editor etc. when I press “5” it does not register. If I press it second time it registers. If I press third time again no register. If I press 1,2,3,4,6,7,8,9 first time, they also do not register as numbers but act as “direction, end, PgDn, Pg Up, Home” keys and as you can guess now on second press they register as numbers.

This is most probably a setting problem but I could not find it on Ubuntu settings or under many topics I checked here or other forum pages. I also tried with 3 keyboards.
Any help would be very much appreciated.

1 Like

Is it OK on the top row of numbers and just the num pad, or is it both?

This happens only with the numpad keys.

Did you reboot after enabling/disabling NumLock?

Perhaps gnome-tweaks can help you?
To install via the terminal
sudo apt install gnome-tweaks

Open gnome-tweaks GUI > Keyboard > Additional Layout Options > Compatibility Options > Numeric keypad always enters digits
There are plenty of other options in tweaks settings.

Secondly, did the dropped book inadvertently enable some Accessibility options?
Settings > Accessibility > Typing

Finally, explore (very carefully) gsettings by installing dconf-editor
sudo apt install dconf-editor
/org/gnome/desktop/peripherals/keyboard/remember-numlock-state
/org/gnome/desktop/peripherals/keyboard/numlock-state

Thanks for your advice, gnome-tweaks worked with a tiny cost of losing secondary functions of keys which I don’t use them anyway.
On the other hand as this weird problem is solved with a software, main reason still remains a mystery. And what I learnt is books and keyboards don’t get along well I guess :smile:
Thank you very much again for your time and effort.

Have a nice day

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.