You are not logged in.

#1 2016-09-26 00:08:08

ownbit
Member
Registered: 2016-09-25
Posts: 10

[SOLVED]I change keymap with loadkeys or localectl but nothing happens

Hello, I'm new to Arch.

I did a fresh install, configured network and got a Graphical Environment, just to realize I configured the wrong language in the setup. I was supposed to have de-latin1.map.gz set up my as my keymap , but the locale in  /etc/locale.conf must be LANG=en_US.UTF-8 because I speak English (in other words, I set de_DE.UTF-8 as my locale, bringing unwanted texts in German, even though my keyboard is indeed German).

So I modified it accordingly and set the locale to LANG=en_US.UTF-8 and now the system is in English, but the keyboard is behaving as if it was a English Qwerty keyboard - but it is a German Qwertz keyboard.

So I tried to change the keymap using localectl set-keymap de-latin1 and the command executes properly, but no change in the keyboard layout is observed.

I also tried the temporary loadkeys de-latin1 and the same happens, the command executes but the keyboard keeps behaving as an American keyboard.

Last edited by ownbit (2016-09-26 23:01:00)

Offline

#2 2016-09-26 00:16:28

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [SOLVED]I change keymap with loadkeys or localectl but nothing happens

Some misunderstandings here. For X you don't use loadkeys, but setxkbmap.

setxkbmap de

should change the layout instantly.

And localctl will not set the keyboard for running session. Instead is simply writes your config files. (/etc/X11/xorg.conf.d/10-keyboard.conf)
Well, your command won't because you use it wrong.

localectl set-x11-keymap de pc105

should be the correct command to set keyboard layout for your X session and will be used next time your X starts.

Last edited by Rasi (2016-09-26 00:21:34)


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#3 2016-09-26 22:59:26

ownbit
Member
Registered: 2016-09-25
Posts: 10

Re: [SOLVED]I change keymap with loadkeys or localectl but nothing happens

That totally solved my problem, but still I'll take a look at documentation for both the commands.

Offline

Board footer

Powered by FluxBB