Reset your keyboard in X

2009 January 27
tags: , ,
by darkness

I was using VMware and my keyboard went to Horkytown. My recipe for resetting the keyboard (at least on Fedora 10):

  1. egrep -i 'rules|layout|model' /var/log/Xorg.0.log to find out your rules, layout, and model for your keyboard.
  2. setxkbmap -rules xorg -layout us -model pc105 substituting the values from step 1 where appropriate.

If you have to SSH in and do this, like I did, prepend DISPLAY=:0 to setkbmap of course.

1 Comment leave one →
2009 June 11
bitmage permalink

Thanks! Just saved me from the same issue!

Leave A Comment

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS