[BUG REPORT] Danish Hardware Keyboard layout not working

Once again, thanks for the offer, but I don’t need any hardware to solve the problem. I know what needs to be done but need to work on it.


I would also welcome a solution which will allow to fully use my German QWERTZ bluetooth Rii mini i8 keyboard.


Was this ever solved or added as a feature in osmc? I om on pi3b and Danish hardware keyboard if it matters.

If anyone Russian is still following this, can you point me to a linux keymap for Cyrillic which outputs utf (not KOI8) and which matches a typical Russian keyboard (not the ‘phonetic’ layout).

Спасибо хорошо

I have a solution working for western European languages and Greek already and talking to Sam about getting it into OSMC.

I’ll ask the Russians

I’m not sure if this is exactly what you’re looking for but I pulled this from a Debian 8 system:

cat /usr/share/rdesktop/keymaps/ru
# generated from XKB map ru
include common
map 0x419
exclam 0x02 shift
at 0x03 shift
quotedbl 0x03 shift altgr
numbersign 0x04 shift
dollar 0x05 shift
asterisk 0x05 shift altgr
percent 0x06 shift
colon 0x06 shift altgr
asciicircum 0x07 shift
comma 0x07 shift altgr
ampersand 0x08 shift
period 0x08 shift altgr
asterisk 0x09 shift
semicolon 0x09 shift altgr
parenleft 0x0a shift
parenright 0x0b shift
minus 0x0c
underscore 0x0c shift
equal 0x0d
plus 0x0d shift
Cyrillic_shorti 0x10 altgr
Cyrillic_SHORTI 0x10 shift altgr
Cyrillic_tse 0x11 altgr
Cyrillic_TSE 0x11 shift altgr
Cyrillic_u 0x12 altgr
Cyrillic_U 0x12 shift altgr
Cyrillic_ka 0x13 altgr
Cyrillic_KA 0x13 shift altgr
Cyrillic_ie 0x14 altgr
Cyrillic_IE 0x14 shift altgr
Cyrillic_en 0x15 altgr
Cyrillic_EN 0x15 shift altgr
Cyrillic_ghe 0x16 altgr
Cyrillic_GHE 0x16 shift altgr
Cyrillic_sha 0x17 altgr
Cyrillic_SHA 0x17 shift altgr
Cyrillic_shcha 0x18 altgr
Cyrillic_SHCHA 0x18 shift altgr
Cyrillic_ze 0x19 altgr
Cyrillic_ZE 0x19 shift altgr
bracketleft 0x1a
braceleft 0x1a shift
Cyrillic_ha 0x1a altgr
Cyrillic_HA 0x1a shift altgr
bracketright 0x1b
braceright 0x1b shift
Cyrillic_hardsign 0x1b altgr
Cyrillic_HARDSIGN 0x1b shift altgr
Cyrillic_ef 0x1e altgr
Cyrillic_EF 0x1e shift altgr
Cyrillic_yeru 0x1f altgr
Cyrillic_YERU 0x1f shift altgr
Cyrillic_ve 0x20 altgr
Cyrillic_VE 0x20 shift altgr
Cyrillic_a 0x21 altgr
Cyrillic_A 0x21 shift altgr
Cyrillic_pe 0x22 altgr
Cyrillic_PE 0x22 shift altgr
Cyrillic_er 0x23 altgr
Cyrillic_ER 0x23 shift altgr
Cyrillic_o 0x24 altgr
Cyrillic_O 0x24 shift altgr
Cyrillic_el 0x25 altgr
Cyrillic_EL 0x25 shift altgr
Cyrillic_de 0x26 altgr
Cyrillic_DE 0x26 shift altgr
semicolon 0x27
colon 0x27 shift
Cyrillic_zhe 0x27 altgr
Cyrillic_ZHE 0x27 shift altgr
apostrophe 0x28
quotedbl 0x28 shift
Cyrillic_e 0x28 altgr
Cyrillic_E 0x28 shift altgr
grave 0x29
asciitilde 0x29 shift
Cyrillic_io 0x29 altgr
Cyrillic_IO 0x29 shift altgr
backslash 0x2b
bar 0x2b shift
Cyrillic_ya 0x2c altgr
Cyrillic_YA 0x2c shift altgr
Cyrillic_che 0x2d altgr
Cyrillic_CHE 0x2d shift altgr
Cyrillic_es 0x2e altgr
Cyrillic_ES 0x2e shift altgr
Cyrillic_em 0x2f altgr
Cyrillic_EM 0x2f shift altgr
Cyrillic_i 0x30 altgr
Cyrillic_I 0x30 shift altgr
Cyrillic_te 0x31 altgr
Cyrillic_TE 0x31 shift altgr
Cyrillic_softsign 0x32 altgr
Cyrillic_SOFTSIGN 0x32 shift altgr
comma 0x33
less 0x33 shift
Cyrillic_be 0x33 altgr
Cyrillic_BE 0x33 shift altgr
period 0x34
greater 0x34 shift
Cyrillic_yu 0x34 altgr
Cyrillic_YU 0x34 shift altgr
slash 0x35
question 0x35 shift
slash 0x56 altgr
bar 0x56 shift altgr

This is for an ЙЦУКЕН layout, which is the one most common used, though I understand there are others. It has its limitations in the world of IT, however. See http://xahlee.info/kbd/russian_layout_and_programing.html

Thanks. That doesn’t look like an old-fashioned keymap. Could be for X?

There’s a whole bunch of Cyrillic keyboard files if you run

apt-get download console-cyrillic
dpkg -x console-cyrillic_0.9-16.2_all.deb cyrillic

Maybe you’ll find something there.

woah, yes. More maps than you can shake a stick at, thanks.
And one of them works a treat!


Yes, one or two to choose from. :wink: Which one did you settle on?

Remember, if it’s for the typical Russian keyboard, it should give you ЙЦУКЕН when you type qwerty.

ru.unicode: the name says it all

it does.

Hello! I have a bluetooh keyboard. I have no way to make it work in kodi osmc … Have not solved the problem so far? Help me please :frowning:

See https://github.com/osmc/osmc/pull/400. It’s pending.

1 Like

As I understand from GIT, we just wait until the patch is added to the official build? And it somehow you can now apply?

No – it needs more work unfortunately. But I am discussing some of the changes with @grahamh. You can build Kodi with that patch included and it will work.

We’re trying to get this in for the next update.


Thank you very much for your support! We will wait for updates.

Do you mean it doesn’t work at all or just the layout is wrong?

I’ll tell you, probably, more about my problem. I have an RP3 device on which OSMC is installed. I have a BlueTooth keyboard rii mini i8 (most likely a Chinese clone, but it’s not important). I need two layouts - US and RU + switch layouts Alt+Shift or other. I tried to fulfill all the requirements from this post [BUG REPORT] Danish Hardware Keyboard layout not working, then from this [BUG REPORT] Danish Hardware Keyboard layout not working, was tinkering in /etc/default/keyboard and prescribing us, ru and alt + shift there. MAXIMUM that I succeeded - my keyboard began to work in the terminal OSMC (worked both layouts US (qwerty) and ru (yutsuken), as well as switching alt + shift) … But in the graphical shell of Kodi, I do not work switching between RU and US with alt+shift. Maybe I did something wrong …?

P.S. I apologize in advance, I’m writing through an google translate.

You are on the right track, but the patches to kodi which allow it to interpret the extended character set of non-latin keyboards were only merged into OSMC since the last update and not yet released. They will be in the next update.

Oh thank you! And I thought that I have crooked hands and that’s why I can not get to work switch keyboard layouts. Then I’ll wait for the OSMC update and follow this topic, right?