Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a Lenovo Thinkpad T420 with a Brazilian ABNT keyboard layout. This is a rather unique layout where the slash is between the context menu key and the arrow keys.

enter image description here

However, the slash key does not work! How could I make it work?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

I solved it (in part) by adding the following line in /etc/default/keyboard:


Actually, I replaced the line XKBMODEL="" with XKBMODEL="thinkpadz60". Then, I restarted the notebook. (Actually, I believe one would have just to restart X by running restart lightd or by pressing Ctrl+Alt+BackSpace. I suspect that it is even possible to reload this X configuration without restarting it but I have not found how to do it yet.)

Unfortunately, the key still does not work at the text terminals. However, since I use (most of the time) the GNOME Terminal instead of the pure text ones, it is a minor nuisance because it works in the terminal emulator.

(If you do not get it working yet, or need to type slash in the text terminal, you can press AltGr+W too.)

share|improve this answer

I have the same Lenovo notebook with the BR ABNT keyboard. I was able to fix the slash key for text terminals.

  1. Go to /usr/share/kbd/keymaps/i386/qwerty.

  2. Copy the original map br-abnt2.map.gz to a temp directory.

  3. Decompress the file and rename it to br-thinkpad.map (example, you can use any name you like).

  4. Edit the file br-thinkpad.map with a text editor.

  5. Insert the following line:

    keycode  97 = slash question degree

    I inserted the line respecting the order of the other keycodes in the file.

  6. Save the file.

  7. Compress the file with gzip br-thinkpad.map.

  8. Copy the compressed file to /usr/share/kbd/keymaps/i386/qwerty.

  9. Test the file with the command loadkeys br-thinkpad.

  10. To make the change permanent edit /etc/sysconfig/keyboard, changing the value of KEYTABLE to br-thinkpad.map.gz.

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.