View Full Version : [ubuntu] Keyboard gone Crazy?

June 9th, 2008, 01:30 AM
My keyboard mysteriously stopped working correctly. I can login just fine, but once logged in, only some keys work and mostly do not correspond to their correct mapping.

I do not know what could have caused the problem (the last thing I remember doing was to change the repositories to the US ones because the Canadian repo were not working, after that I updated).

-Keyboard: Apple Aluminum Keyboard (wired) - works fine outside of Ubuntu, and works fine before logging in
-Keyboard Type: US layout
-Latest Ubuntu build

Thanks for any help!
P.S. Keep in mind I cannot type commands, or type my password to access places

June 9th, 2008, 02:02 AM
alright, this shouldn't be too hard.
Load up a livecd and mount your / or /home partition. Wherever your user account lives. Probably going to be automounted somewhere like /media/disk1.

Do this

Change default language for the console:
Edit /home/USERNAME/.bash_profile
Add the line

export LANG=en

this will allow you to login and it's probably something in xorg.conf setting your keyboard to a differnt country. I'm not really sure where that setting lives, but this will let you login to a console and figure it out.

when you can login and get a working keyboard map

sudo dpkg-reconfigure console-setup

June 9th, 2008, 03:41 AM
Actually, I was just about to reinstall Ubuntu and found that this behaviour is 100% repeatable with an Apple aluminum keyboard. Did some more searching and found out it is a bug:

The trick is to press F6 twice.