"system option keyboard-layout" should include more keymaps

Currently this config option only allows for: us, uk, fr, de, es, fi, jp106, no, dk, dvorak

Personally I would like to see “se” (swedish) added to this list.

Once this is added this will also fix the error of “set console keymap” having no affect for keymaps in console (have to use ssh as workaround).

Using version VyOS 1.4-rolling-202306290317

There is a feature request T5336

@Apachez Which one is required?

se-fi-ir209
se-fi-lat6
se-ir209
se-lat6

sv-latin1

On my regular Ubuntu desktop the output of cat /etc/default/keyboard is:

XKBMODEL=“pc105”
XKBLAYOUT=“se”
XKBVARIANT=“”
XKBOPTIONS=“”

While “locale” outputs:

LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE=“en_US.UTF-8”
LC_NUMERIC=sv_SE.UTF-8
LC_TIME=sv_SE.UTF-8
LC_COLLATE=“en_US.UTF-8”
LC_MONETARY=sv_SE.UTF-8
LC_MESSAGES=“en_US.UTF-8”
LC_PAPER=sv_SE.UTF-8
LC_NAME=sv_SE.UTF-8
LC_ADDRESS=sv_SE.UTF-8
LC_TELEPHONE=sv_SE.UTF-8
LC_MEASUREMENT=sv_SE.UTF-8
LC_IDENTIFICATION=sv_SE.UTF-8
LC_ALL=

Doing at “sudo dpkg-reconfigure keyboard-installation” in my Ubuntu-installation the selected options are:

Keyboard model: Generic 105-key PC
Country of origin for the keyboard: Swedish
Keyboard layout: Swedish
Key to function as AltGr: The default for the keyboard layout
Compose key: No compose key
Use Control+Alt+Backspace to terminate the X server: No

Given the name of the kbd files they are a bit confusing.

It seems like it should have been named se-latin1 (Swedish Latin1) and it is in some distributions but for whatever reason is named sv-latin1 which actually means Slovakian Latin1. Backstory seems to be that sv related to “svenska” which means swedish in swedish.

This thread have some round up of this: 80508 – swedish keyboard option (se-latin1) missing

So to answer your question, I think sv-latin1 is the one we want to be used when selecting “system option keyboard-layout se”.

sv-latin1 doesn’t work

vyos@r14# sudo loadkeys sv-latin1
loadkeys: Unable to open file: sv-latin1: No such file or directory
[edit]

Could you try loadkeys and check other layouts?

You mean on a regular ubuntu desktop or in the VyOS Im currently running?

Fixed in https://vyos.dev/T5336

set system option keyboard-layout se-latin1

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.