Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have trouble with the numeric keypad (NumLock keys) being unusable while typing.

While I don't think it's GUI specific, this happens both in Gnome and KDE. Sometimes it works in TTY, other times it fails. If I press the NumLock key nothing happens, and the response is the same.

I cannot use any of the keys except Ins, which repeats text after Backspace is used.


xev output, on NumLock press/release

KeyPress event, serial 33, synthetic NO, window 0x2800001,
    root 0x101, subw 0x0, time 389867, (311,217), root:(319,313),
    state 0x0, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x2800001,
    root 0x101, subw 0x0, time 389867, (311,217), root:(319,313),
    state 0x10, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
share|improve this question
What does xev say when you run it and then press numlock? – Ulrich Schwarz Mar 13 '12 at 5:30
@UlrichSchwarz I have edited the question. – Joe Barr Mar 14 '12 at 23:49
That looks good, so it appears the keystroke is getting up to the X server, which then doesn't do anything with it. I'm stumped, I'm afraid. – Ulrich Schwarz Mar 15 '12 at 6:36
@UlrichSchwarz Thanks for trying. – Joe Barr Apr 2 '12 at 0:34

This command worked for me on Linux Mint 17 (Ubuntu 14.04) using XFCE with a CMStorm keyboard.

setxkbmap -option keypad:pointerkeys

For some reason, activating numlock will make the keys move my mouse and deactivating numlock will set the keys to the correct characters. I suppose this is good because now I don't have to enable numlock and I can save a very small amount of electricity.

Source: https://forum.kde.org/viewtopic.php?f=216&t=106658

share|improve this answer

Is this a PS/2 keyboard being accessed from a USB adapter? The inexpensive ones always give trouble on keyboard that draw over 100ma from the system, such as the famous IBM Model M keyboard. For those you need a heavy-duty "active" adaptor, such as discussed at Geekhack, Deskthority and other keyboarding forums.

share|improve this answer

You may have accidentally enabled mouse keys (not sure if that's the right name for it). If it happens again, see if the keypad is moving the mouse (e.g. hold down the '4' and see if the mouse starts moving to the left), and try using shift-NumLock to turn that mode off.

share|improve this answer
mouse moves to left, but shift-numlock didn't work disable the mode - any other suggestions? – virtualxtc Jun 26 '14 at 0:55

There are some keyboard layouts that just don’t have the numlock key in use. For example the German neo layout which is part of de. Maybe you are using this or a similar layout.

share|improve this answer

Thanks to drewbenn and Ulrich Schwarz for helping me narrow down this problem.

Shift-numlock didn't work disable the mode for me, so I went hunting around the GUI for some sort of manual setting that I might be able to unenable.

In the "mouse KDE Control Module" (KMenu -> Computer tab -> System Settings -> Input Devices -> Mouse) there is a tab called "Mouse Navigation".

Unchecking the box next to "Move pointer with keyboard" solved the problem!!!

share|improve this answer

On Mint Cinnamon the part which changes from the KDE is that you have to go to (Gmenu -> System settings -> Accessibility -> Pointing and clicking )

There turn off the "Control the pointer using the keypad" option.

share|improve this answer

Try this program


On my system works,fine,on X and tty

share|improve this answer

I accidentally disabled the numeric keypad.
To allow the numbers to work again, I did the following:

  1. Go to mouse settings
  2. Mouse/ Touchpad ===> choose Mouse
  3. The "Show position of pointer when control is pressed" checkbox should be in the [off] position
share|improve this answer

Nothing suggested above works. I accessed universal access, turned off mouse keys, and the numb pad works again.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.