James Cassell's Blog

Saturday, September 06, 2008

Broken Ctrl and Shift Keys

I have been having a very intermittent problem in Linux where my Ctrl and Shift keys would stop working. This prevented me from typing a question mark, as well as preventing me from entering my passwords when they were required. (All but my most insecure passwords require the use of the shift key.) Additionally, this breaks many, many keyboard shortcuts. I had noticed that this problem seemed to show itself whenever I used a program that captured the mouse and keyboard, such as a remote desktop application, or a virtual machine application.

Today, after having failed many times in the past, Google helped me find a solution that didn't require rebooting my machine (which was my only-known solution previously.) In a forum somewhere, someone said that fidgeting about with setxkbmap could sometimes help. It turns out that he was correct. If this happens to you, you can type, "setxkbmap dvorak; setxkbmap us" (without the quotes) into the command line. It worked very well for me, but your mileage may vary.

(Now, if only someone were to make a post like this whenever they solved an obscure computer problem. It would make Google's job much easier.)

Labels: , , ,


Post a Comment

<< Home