44

I want to set my keyboard settings to Swedish, but on the Raspbian configuration tool my keyboard is not on the list.

Update: Changing XKBLAYOUT to "se" doesn't work. And internationalization in raspi-config doesn't either. My keyboard is a Logitech Wireless Touch Keyboard K400r, if that might help.

syb0rg
  • 8,178
  • 4
  • 38
  • 51
justanotherhobbyist
  • 635
  • 3
  • 10
  • 19

13 Answers13

60

Take a look at the Raspberry Pi wiki on re-mapping the keyboard with Debian Squeeze:

Re-mapping the keyboard with Debian Squeeze

If different letters appear on-screen from that which you typed, you need to reconfigure you keyboard settings. In Debian, from a command line type:

sudo dpkg-reconfigure keyboard-configuration

Follow the prompts. To apply the changes type:

sudo setupcon

Or:
From the command line type:

sudo nano /etc/default/keyboard

Then find where it says

XKBLAYOUT=”gb”

and change the gb to the two letter code for your country.

Here is the list of current country codes from Wikipedia if you don't know your country code (use the codes in the column labeled alpha-2).


Another way you can try switching the keyboard layout:

$ setxkbmap de
$ setxkbmap fr
$ setxkbmap us
H4R0
  • 3
  • 3
syb0rg
  • 8,178
  • 4
  • 38
  • 51
11

Here is one thing to try out:

Edit /etc/default/keyboard with your favorite editor (vim, nano,). Remember to use sudo:

sudo nano /etc/default/keyboard

Make the file look like this:

# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="se"
XKBVARIANT=""
XKBOPTIONS="terminate:ctrl_alt_bksp"

BACKSPACE="guess"

Save the file, then reboot.

Sitron_NO
  • 186
  • 5
2

sudo vim /etc/default/keyboard

XKBLAYOUT="se"
XKBOPTIONS="ctrl:swapcaps"
Loko
  • 629
  • 3
  • 10
  • 23
2

My solution was to run "dpkg-reconfigure console-data" as root and select "select keymap from full list" from the appearing dialog window. No reboot needed.

Peter Mortensen
  • 2,004
  • 2
  • 15
  • 18
noname
  • 31
  • 1
2
# KEYBOARD CONFIGURATION FILE
# Consult the keyboard(5) manual page. 

XKBMODEL="pc105"
XKBLAYOUT="us,gr"
XKBVARIANT=","
XKBOPTIONS="grp:alt_shift_toggle,terminate:ctrl_alt_bksp,grp_led:scroll"

BACKSPACE="guess"
Ghanima
  • 15,958
  • 17
  • 65
  • 125
user53091
  • 21
  • 1
1

It seems to have something to do with that speciffic keyboard (Logitech K400). I ran into the same problem when trying to use the Danish layout.

Everything seemed to be configured correctly, but the actual layout was still US. When I switched to another keyboard, the layout was Danish, without any further modifications...

Peter Mortensen
  • 2,004
  • 2
  • 15
  • 18
1

I have an emulation of Raspbian in a Sony Vaio VGN-FW-11E in Spanish language.

I could solve the problem by runing in command prompt sudo raspi-config and then going to Advanced Setup and then "Update" (this tool to the latest version). This connects your computer to a raspberry pi server and download the latest version of the config tool, which assures that you have the most updated options and languages.

Then I could choose the language of my keyboard which is Spanish and everything went fine!

Ghanima
  • 15,958
  • 17
  • 65
  • 125
1

I suppose the problem disapears when you use a wired keyboard.

If it is the case, it seems linked to this bug: https://bugs.freedesktop.org/show_bug.cgi?id=39460

Christophe
  • 11
  • 1
1

None of the answers worked for me:

  1. editing /etc/default/keyboard
  2. using raspi-config
  3. using dpkg-reconfigure keyboard-configuration

The reason was that LXDE has its own config and it has overwritten config set by above ways. To change it once and for all I had to use keyboard and mouse configuration from "start menu" -> preferences.

techraf
  • 4,353
  • 10
  • 32
  • 43
Trismegistos
  • 163
  • 1
  • 9
1

Gents, the best way if you want several keyboard layout available is to right click on your top panel icon (the hour for example) then go to : 'Add/Remove Panel Items' then go to : 'Panel Aplets' tab then 'Add' then select : 'Keyoard layout handler' then it will appear as an icon in your panel (it can be a flag or keyboard or country code). Right click on the keyboard icon go to 'kyboard layout settings' and then un-check the box 'system settings' and then add as many keyboard layout you want! Enjoy.

RFV-370
  • 11
  • 1
0

sudo raspi-config internationalisation options keyboard layout generic US 105 or 102 keys depending on your keyboard then choose US then choose what sort (eg. EU setup with a EURO sign on the 5 key)

Flo
  • 11
0

This issue is related to the logitech unifying receiver. See my answer given here

-5

Go to Menu, Preferences, Mouse and Keyboard Settings, Keyboard, Keyboard Layout.

Steve Robillard
  • 34,988
  • 18
  • 106
  • 110
Alex
  • 1