You are not logged in.

#1 2017-11-11 10:27:47

gerald82
Member
From: The known universe
Registered: 2011-03-25
Posts: 83

[SOLVED] linux-lts keymap in vconsole.conf

Hi guys,

I have Arch set up as a Postgre and SonarQube server and so far everything works well.
Now I decided to use the linux-lts instead of the linux kernel. Changing this was also no problem.

The keymap is specified in vconsole.conf:

KEYMAP=de-latin1-nodeadkeys

However, I noticed that when I boot into the linux-lts image, they keymap is not loaded. When I log in and run loadkeys I can work with the exact same keymap.
localctl set-keymap de-latin1-nodeadkeys has no effect.

When I boot into the linux-lts fallback image it does load the keymap automatically.
It also used to load the keymap when booting linux instead of linux-lts.
Did anybody notice the same behavior? Any idea how to fix this?
Thanks in advance!

Last edited by gerald82 (2017-11-11 18:56:54)

Offline

#2 2017-11-11 14:38:33

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: [SOLVED] linux-lts keymap in vconsole.conf

Maybe these commands can help you:

$ mkinitcpio -H keyboard
==> Help for hook 'keyboard':
This hook loads the necessary modules for keyboard devices. As a side-effect
modules for some non-keyboard input devices might also be added, but this should
not be relied on. Detection will take place at runtime. To minimize the modules
in the image, add the autodetect hook prior to this hook.
$ mkinitcpio -H sd-vconsole
==> Help for hook 'sd-vconsole':
This hook adds the keymap(s) and font specified in vconsole.conf to the image and
loads them during early userspace.
$ grep -v '^#' /etc/mkinitcpio.conf
MODULES=(i915)                                                             
                                               
BINARIES=()

FILES=()

HOOKS=(base systemd autodetect modconf block filesystems keyboard sd-vconsole fsck)

Last edited by berbae (2017-11-11 14:42:06)

Offline

#3 2017-11-11 18:56:11

gerald82
Member
From: The known universe
Registered: 2011-03-25
Posts: 83

Re: [SOLVED] linux-lts keymap in vconsole.conf

Thank you berbae.

The sd-vconsole hook was not enabled.
What puzzles me a bit is that it worked with the fallback image.

Anyway, for  follow up readers who encounter this problem: I added the sd-vconsole hook in /etc/mkinitcpio.conf.
Then mkinitcptio gave me an error, I had to add a systemd hook as well (see this post).

Now it works.

Offline

#4 2017-11-11 19:01:29

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: [SOLVED] linux-lts keymap in vconsole.conf

If you do not want to use the systemd hook the keymap hook should provide the same functionality when the systemd hook is not used see Mkinitcpio#Runtime_hooks

Offline

Board footer

Powered by FluxBB