2

How do I set the Dvorak keyboard layout in cmdline.txt? What would I put for the kbd=us flag? Dvorak is a variant of the US layout.

2
  • Those are passed to the kernel, but ones it does not recognize are passed to init, in this case systemd. A lot of things fall into the latter category. Since kbd (I presume kdb is a typo) isn't documented for the kernel, it's probably a systemd thing, although I cannot find any docs for that.
    – goldilocks
    Commented Dec 28, 2016 at 15:35
  • BTW: Why don't you just use raspi-config for this? The US Dvorak keyboard is in there and should set whatever is necessary,
    – goldilocks
    Commented Dec 28, 2016 at 17:18

2 Answers 2

1

Setting the keyboard from cmdline.txt probably isn't ideal, and you would be better off using raspi-config, particularly if you use a GUI, because I believe the keyboard used there maybe configured independently of the text console, and you probably want them both the same.

That said, the parameters in cmdline.txt are passed to kernel, and anything that's not recognized by the kernel is passed to the init system (init being the only userspace program actually started by the kernel). On current versions of Raspbian, "init" == "systemd". There is a bit of grey when looking at the options because some things may follow a generic interface to init; the vconsole keyboard I think falls into this category and (again) there are better ways to configure that.

But forging ahead anyway, see man kernel-command-line.1 If you go from there to man systemd-vconsole-setup.service and then man vconsole.conf, you'll find settings from /etc/vconsole.conf that can be applied via kernel params (although again, it's all actually done by systemd). The parameter is:

vconsole.keymap=

Unfortunately, finding what options there are requires more digging. On other linux, systemd based systems localctl list-keymaps works, but it doesn't show me anything on Raspbian. There are quite a few different dvorak layouts, but probably the first two I'd try would be:

dvorak
us-dvorak

One is probably a synonym for the other.

Beware, again, this doesn't affect the GUI. For that you need to use either raspi-config and or whatever setting tools your DE offers (the default DE on Raspbian being PIXEL).


1. Note that while the kernel-parameters.txt mentioned there is still in the source archive if you download it, the online version has changed location and gotten a bit snazzier: https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html ...However, the keyboard is not part of this, or at least, not in the sense you need.

0

According to this list of keymaps, you can use one of these:

ANSI-dvorak.map
dvorak-fr.map
dvorak-l.map
dvorak-r.map
dvorak.map
no-dvorak.map

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.