When replacing a notebook keyboard, on certain models it is common for the question mark (?) and slash (/) keys to malfunction. This occurs because small adjustments are needed in the notebook to ensure full compatibility between hardware and software, especially when the keyboards are not developed by their original manufacturers or were not installed on the same notebook model for which they were manufactured.
The solutions below are recommended to resolve problems commonly found in Dell and Lenovo notebook models; apply them according to your operating system.
Windows System
Run the registry file included in the attachment "fixteclado Dell e Lenovo.zip".
Debian Linux System
Run the command $kev to discover the keycode of the key; it will show something like this when pressing the key that does not work. In the example below, the pressed key has the code 105:
KeyRelease event, serial 38, synthetic NO, window 0x4a00001,
root 0x166, subw 0x0, time 2468904, (82,70), root:(1174,128),
state 0x4, keycode 105 (keysym 0x2f, Control_R), same_screen YES,
XKeysymToKeycode returns keycode: 97
XLookupString gives 1 bytes: (1f) “”
XFilterEvent returns: FalseTo set in the system that keycode 105 corresponds to the "/" and "?" keys, run:
$xmodmap -e “keycode 105 = slash question slash question degree questiondown degree”To save this command in the keyboard mapping, run:
$echo “keycode 105 = slash question slash question degree questiondown degree” >>~/.XmodmapTo execute the keyboard mapping every time the operating system starts, run:
$echo “xmodmap ~/.Xmodmap” >>~/.bashrcSources: