You are not logged in.

#1 2021-11-06 09:41:32

n0ob404
Member
Registered: 2021-11-06
Posts: 2

[SOLVED] loadkeys: setting 'KEYMAP' results in syntax error

I'm trying to setup a persistent configuration for my console keyboard but running into this issue.

# localectl list-keymaps | grep '^us'
us
us-acentos
us1
# localectl set-keymap us
# cat /etc/vconsole.conf 
KEYMAP=us
# loadkeys --verbose /etc/vconsole.conf
Loading /etc/vconsole.conf
syntax error, unexpected ERROR

I've defined a custom map, which doesn't use "KEYMAP" that I can load just fine:

# cat /usr/local/share/kbd/keymaps/personal.map 
keycode 1 = Caps_Lock
keycode 58 = Escape
# loadkeys --verbose /usr/local/share/kbd/keymaps/personal.map
Loading /usr/local/share/kbd/keymaps/personal.map
keycode 1, table 0 = 519
keycode 58, table 0 = 27

Changed 2 keys
Changed 0 strings
(No change in compose definitions)

Thanks in advanced for any help smile

Last edited by n0ob404 (2021-11-06 12:49:48)

Offline

#2 2021-11-06 12:49:27

n0ob404
Member
Registered: 2021-11-06
Posts: 2

Re: [SOLVED] loadkeys: setting 'KEYMAP' results in syntax error

Update: I am silly. /etc/vconsole.conf is read by "systemd", not "loadkeys".....

Offline

Board footer

Powered by FluxBB