Numeric keypad won't work on CentOS 7

Issues related to hardware problems
Post Reply
priestapostate
Posts: 14
Joined: 2018/04/23 03:12:01

Numeric keypad won't work on CentOS 7

Post by priestapostate » 2019/12/22 00:09:49

Unable to get my Microsoft Wireless 800's numeric keypad strokes to register on my CentOS 7 system.
Downloaded and installed both MATE and GNOME to see if the behavior was reflected across the board.

I've looked around online, but can't find any ideas on where to start to resolve this issue.

If anyone can provide a starting point on how to resolve this, I would be most appreciative!

aks
Posts: 2962
Joined: 2014/09/20 11:22:14

Re: Numeric keypad won't work on CentOS 7

Post by aks » 2019/12/23 16:25:41

In what? X, console?

Think about it this way:
What scan code are the numeric generating?
What does the driver confoigured on your system do with those scan codes?

priestapostate
Posts: 14
Joined: 2018/04/23 03:12:01

Re: Numeric keypad won't work on CentOS 7

Post by priestapostate » 2019/12/28 07:43:58

I experience the issue in both the GUI, and the terminal.

aks
Posts: 2962
Joined: 2014/09/20 11:22:14

Re: Numeric keypad won't work on CentOS 7

Post by aks » 2019/12/30 06:28:54

Have a look at: https://unix.stackexchange.com/question ... 630#116630

The kernel receives scan codes from the hardware and converts them into keycodes (these terms may be used interchangeably). How this conversion works depends on the keyboard driver. For PS/2 keyboards, you can configure it with setkeycodes. For USB keyboards, you can configure it via udev. A wireless device would probably emulate one of those (probably USB).

In the console, these keycodes are mapped to escape sequences according to the console keymap. You can change the mapping with the loadkeys command (see man loadkeys). The mapping uses two levels of indirection, from keycode+modifier combination (think the three modifiers: shift, control, alt) to keysym and from keysym to string (character or escape sequence).

For X, you can se xmodmap to remap the codes.

See also https://wiki.archlinux.org/index.php/Libinput

Also check you've not got "Mouse keys" (universal access) switched on.

Post Reply

Return to “CentOS 7 - Hardware Support”