I changed my Raspberry Pi keyboard (using command the sudo nano /etc/default/keyboardp). I set:


Now, after reboot I just can't login! Can I somehow reset this CHANGE?

  • 4
    You could try to login through ssh as suggested in this related question.
    – agold
    Jan 13, 2016 at 9:29
  • 2
    You could try googling an Indonesian keyboard layout to use the correct keys. Jan 13, 2016 at 12:36
  • 1
    Indonesian? Isn't 'in' for 'India'?
    – Bex
    Jan 13, 2016 at 13:54
  • 3
    One doubt: "I just can't login!" -> means that your keyboard not working at all, or only that it gives other characters than your own keyboard layout?
    – agold
    Jan 13, 2016 at 14:15

3 Answers 3


If you know the IP address you can ssh from another machine. Then use the raspi-config utility:

Open a terminal

  1. Run raspi-config
  2. Choose Localisation Options
  3. Choose Change Keyboard Layout
  4. Choose your keyboard or one of the generics
  5. Choose your langauge. For instance, for American English choose English (US)
  6. sudo reboot

Alternatively to ssh, if you have proper partitions on your SD card you can:

  1. Insert it into your laptop
  2. Change keyboard setting with vim /Volumes/<card name>/etc/default/keyboard to XKBLAYOUT="in" to XKBLAYOUT="us" or whatever suits your need

Can you insert the SD card into another machine and mount the filesystem?

If so, edit /etc/default/keyboard and change XKBLAYOUT="in" back to your desired setting.

If needed, there's a list of valid codes on Wikipedia.


You have switched to an Indic keyboard, though it's hard to know which one. They look quite different depending on which one was selected. There are some examples here: http://wiki.laptop.org/go/Keyboard_layouts#Indic

You basically have two choices: use another machine to ssh into you pi and fix it, or reflash your pi and start over.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.