You are not logged in.

#1 2014-07-26 02:12:15

optagon
Member
Registered: 2014-07-26
Posts: 5

Changing keyboard mapping post install.

Every time I boot into arch the keyboard mapping is set to US, and I can change it like the installation guide shows. But as it warns, those commands are "only useful during installation" which I take to mean they do not persist.

I had a look at this wiki entry, but I don't have a the file /etc/vconsole.conf.
Running localectl set-keymap se-lat6 gives me:
Failed to set keymap: The name org.freedesktop.PolicyKit1 was not provided by any .service files. Don't know how to interpret that, google turns up nothing.

Last edited by optagon (2014-07-26 02:19:40)

Offline

#2 2014-07-26 02:23:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Changing keyboard mapping post install.

Create /etc/vconsole.conf.
'sudo localectl set-keymap se-lat6' works here:

$ localectl
   System Locale: LANG=en_US.UTF-8
                  LC_COLLATE=C
                  LC_MESSAGES=C
       VC Keymap: pl2
      X11 Layout: pl
$ sudo localectl set-keymap se-lat6
$ localectl
   System Locale: LANG=en_US.UTF-8
                  LC_COLLATE=C
                  LC_MESSAGES=C
       VC Keymap: se-lat6
      X11 Layout: pl

Offline

#3 2014-07-26 02:34:39

optagon
Member
Registered: 2014-07-26
Posts: 5

Re: Changing keyboard mapping post install.

Ok thanks, it seems like it works. vconsole.conf was empty after reboot, but the keymap stayed!

Now I just have the issue that the keymapping is a bit off. The å key works, but I have to hit alt+gr to get ö, ä or else I get ø, æ. Which my keyboard -does- have printed on the keys along side with ö and ä. But they should not be default.

Last edited by optagon (2014-07-26 02:44:11)

Offline

#4 2014-07-26 02:53:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Changing keyboard mapping post install.

You can / should populate vconsole.conf:

$ cat /etc/vconsole.conf
FONT=ter-v16n
FONT_MAP=8859-2
KEYMAP=pl2

Offline

#5 2014-07-26 03:10:29

optagon
Member
Registered: 2014-07-26
Posts: 5

Re: Changing keyboard mapping post install.

karol wrote:

You can / should populate vconsole.conf:

$ cat /etc/vconsole.conf
FONT=ter-v16n
FONT_MAP=8859-2
KEYMAP=pl2

Oh, the file wasn't empty after all. It just looked empty when I opened it with nano and wasn't su. Should learn to use cat I guess.
Those extra settings you supplied just turned my åäö into squares. But thanks anyway.

Last edited by optagon (2014-07-26 03:14:25)

Offline

#6 2014-07-26 03:14:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Changing keyboard mapping post install.

Hey, these are my settings, leave them alone! ;-)
This is just an example, you should pick whatever suits your needs.

Offline

#7 2014-07-26 03:46:01

thiagowfx
Member
Registered: 2013-07-09
Posts: 586

Re: Changing keyboard mapping post install.

I cannot identify se-lat6...as a suggestion,

localectl list-keymaps

and

cat /etc/locale.gen

could point to you which keymap/locale you need for your system. Probably something similar to se-lat6.

Offline

#8 2014-07-26 04:02:11

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Changing keyboard mapping post install.

$ pacman -Qo /usr/share/kbd/keymaps/i386/qwerty/se-lat6.map.gz
/usr/share/kbd/keymaps/i386/qwerty/se-lat6.map.gz is owned by kbd 2.0.1-1

Offline

Board footer

Powered by FluxBB