FreeKB - Resolve keyboard produces # on a Raspberry Pi
Resolve keyboard produces # on a Raspberry Pi

Home > Search

Use this command to fix the issue where the \\ key produces # on a Raspberry Pi. To tempoarily fix this issue, enter this command in Terminal.

setxkbmap -layout us

Once the Raspberry Pi is rebooted, the keyboard layout will return to it's prior mapping.  Follow these steps to make this change permanent.

  1. In Terminal, type nano /etc/default/keyboard
  2. Type the following line: XKBLAYOUT="US"
  3. Press Ctrl O (to save)
  4. Press Ctrl X (to exit the nano editor)


Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter in the box below so that we can be sure you are a human.