2

My Macbook Pro's keyboard is malfunctioning and both its shift keys are pressing erratically. Other than that, it is fine.

In Macos 10.11, I solved that problem by using karabiner.

In Linux, Xmodmap didn't worK. Is there some command on setxkbmap that would work?

2
  • I edited the file /etc/default/keyboard adding the line XKBOPTIONS="caps:swapescape" to swap my caps lock and my escape key for using Vim. I think you can disable keys as well by using this file. These changes are system wide for all users. I'd add an answer if I had time to look into it fully for you. Also, I'm on Debian. askubuntu.com/questions/342066/… I also needed to install console-common and console-data for it to work (in Debian). Commented Jul 17, 2017 at 15:57
  • I think changes will take effect in /etc/default/keyboard by rebooting without having to run sudo dpkg-reconfigure keyboard-configuration. Commented Jul 17, 2017 at 16:47

1 Answer 1

0

There is a handy program called KeyRemap4MacBook that will let you do this.

1
  • Hello! So, I used it (which, by the way, has been renamed to karabiner), but I am using linux right now, and still haven't figured out a way to disable shift keys in ubuntu Commented Jul 16, 2017 at 12:29

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.