Never mind i tested a few keys and i’m in the console with the same keyboard layout issue
I will try some configuration and see if i can get the danish layout to work here
Yep even after i ran
sudo dpkg-reconfigure locales
-> Danish UTF-8 (only)
sudo dpkg-reconfigure keyboard-configuration
-> pc105 (intl) -> Danish (winkey) -> default -> No compose
sudo dpkg-reconfigure console-data
-> choose from a list -> pc / qwerty / Danish / Standard / Standard
sudo reboot
It’s still the english hardware keyboard layout
I found a solution for the local console
sudo loadkeys /usr/share/keymaps/i386/qwerty/dk.kmap.gz
How do i get this to load on startup so i can test it in kodi?
can you not just …
sudo systemctl start mediacenter
from console and test the fix ? without restarting
Tried what you posted and nothing happend but thx for the input
If you exit from Kodi to the console the mediacenter “service” is still running. From there you would use exit to return to Kodi.
Worked, now all my symbols are in the correct location but my language special character æøå do not show in kodi but they do in local console. let my try another theme where i can change font and report back as it could be a missing character in that font
Do you have the apt packages console-setup and console-data installed ? Also refer to the following page:
https://wiki.debian.org/Keyboard
From what I can make out, loadkeys is called in /etc/init.d/kbd, however it is only called if setupcon exists, and setupcon is not installed in OSMC by default, and is part of the console-setup package. Also the console-data package seems to contain the actual kmap.gz files themselves.
So it would seem you definitely need kbd, console-setup and console-data installed, then you should be able to configure the keyboard layout in a way that loads automatically on boot.
I have the console-data installed but not the console-setup and the kbd. I will look into that now and if i get it all up and running i will do a clean install and try again. If that works i will post a guide for others in the same situation to use
So after i reinstalled OSMC i did the language guide that pops up
then i ran the exit from power control menu and got into the local console for kodi
Then i ran these commands
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install console-setup
sudo apt-get install console-data (don't touch keymap)
sudo dpkg-reconfigure locales
sudo dpkg-reconfigure tzdata
sudo dpkg-reconfigure console-data
sudo dpkg-reconfigure keyboard-configuration
sudo reboot
after the reboot i went into international setting and changed everything to danish except interface language.
Now all symbols are on the correct keys but the 3 special characters ÆØÅ aren’t working in kodi, BUT they do work in the local console, both using hardware keyboard.
however Æ Ø Å do work in kodi using virtual keyboard
Then i changed interface language to danish and it’s still the same issue hardware keyboard ÆØÅ do not work in kodi but they do in local console, so i switched back to english interface.
I’ve also tried to change Character Set in international settings in both english and danish interface language
- Default
- Central Europe (ISO)
- Central Europe (Windows)
all with the same outcome for ÆØÅ as before
Then i change theme to see if that would change anything, but it didn’t
FYI if any one is wondering Æ is AE, Ø is OE and Å is AA but i can’t just use those instead as ÆØÅ is used quite a lot in our language, and isn’t as interchangeable as you would think.
Alright so i did some more testing by enabling kodi debug and did a tail on the log file to see what happens when i pressed a key. As you can see I’ve added what those special character keys are on US and UK keyboards if some one switch to Danish layout but only have US or UK keyboards, so now devs if they want to try and help fixing this issue, can do the test without a danish hardware keyboard
tail -f /home/osmc/.kodi/temp/kodi.log -n 50
Æ = ;: on US and UK keyboard
Kodi.log output when key pressed once:
DEBUG: Keyboard: scancode: 0x27, sym: 0x00e6, unicode: 0x0000, modifier: 0x0
DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
DEBUG: Previous line repeats 4 times.
DEBUG: OnKey: 0 (0xf200) pressed, trying keyboard action f000
DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
DEBUG: Previous line repeats 1 times.
DEBUG: OnKey: 0 (0xf200) pressed, action is
Ø = '" on US keyboard
Ø = '@ or ~# on UK keyboard, most likely '@ due to the physical grouping on keyboard
Kodi.log output when key pressed once:
DEBUG: Keyboard: scancode: 0x28, sym: 0x00f8, unicode: 0x0000, modifier: 0x0
DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
DEBUG: Previous line repeats 4 times.
DEBUG: OnKey: 0 (0xf200) pressed, trying keyboard action f000
DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
DEBUG: Previous line repeats 1 times.
DEBUG: OnKey: 0 (0xf200) pressed, action is
Å = [{ on US and UK keyboard
Kodi.log output when key pressed once:
DEBUG: Keyboard: scancode: 0x1a, sym: 0x00e5, unicode: 0x0000, modifier: 0x0
DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
DEBUG: Previous line repeats 4 times.
DEBUG: OnKey: 0 (0xf200) pressed, trying keyboard action f000
DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
DEBUG: Previous line repeats 1 times.
DEBUG: OnKey: 0 (0xf200) pressed, action is
Normal working key ‘a’
DEBUG: Keyboard: scancode: 0x1e, sym: 0x0061, unicode: 0x0061, modifier: 0x0
DEBUG: OnKey: a (0xf041) pressed, trying keyboard action f161
Changing this to bug report as this is some thing that should work. Hope it will be implemented so when you change the keyboard layout in Kodi for virtual it will also change for hardware keyboard.
This is still an issue with RC3
Is this Issue solved meanwhile? I’ve got the same with a German layout. I followed geekgarage 's instructions and now works everything except the german “Umlaute” ä, ö, ü,ß but at least all symbols like slash and minus etc. are mapped correctly .
Btw. Im on newest Version of osmc. September update 27.9.15.
As has been mentioned previously in this thread, somebody whose native language is not English and who is experiencing these problems (and who is good with Linux configuration) needs to step up and help us with this.
All the main OSMC devs are English speaking only and only have access to UK and US keyboards to test with.
As such we not only don’t have access to the hardware necessary to test the problem (Keyboards with non US / UK layouts) we also don’t have the experience of being a multilingual computer user and dealing with the issues that surround this such as configuring keyboard layouts, non English fonts/character sets etc, and without specific knowledge of another language, its keyboard layout and how it is supposed to work, it’s next to impossible for us to make any further progress on this, especially with so much other work competing for precious development time.
So until someone with the right combination of skills and knowledge steps forward to help with this, this problem is likely to remain unsolved.
alright, im a newbie in linux, but i can see what i can do =)
meanwhile i was able to set the correct console layout.
Console is working with everything, but kodi still doesn’t accept language specialized keystrokes (Umlaute)
00:53:06 294.181274 T:1957786160 DEBUG: GOT ANNOUNCEMENT, type: 128, from xbmc, message OnInputRequested
00:53:07 295.735901 T:1957786160 DEBUG: Keyboard: scancode: 0x27, sym: 0x00f6, unicode: 0x0000, modifier: 0x0
00:53:07 295.736145 T:1957786160 DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
00:53:07 295.747925 T:1957786160 DEBUG: Previous line repeats 4 times.
00:53:07 295.748047 T:1957786160 DEBUG: OnKey: 0 (0xf200) pressed, trying keyboard action f000
00:53:07 295.748199 T:1957786160 DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
00:53:07 295.748291 T:1957786160 DEBUG: Previous line repeats 1 times.
in this log you can see, the virtual keyboard is able to print the char, but for some reason the keycode is 0 (ESC) by pressing the special key on the physical keyboard.
i found several keyboard configs like: X11, kbd, XKBMODEL, but none seems to work in kodi.
switching the locales and keyboard-configurations in console is also taking effect in kodi (at least the normal keys are mapped correctly like Backslash,Minus,Comma… ).
i will post here if i could do some progress on it
I have tried the above things. Also I found a lot of issues with google. But nothing helped.
I think this is an** important “bug”**. If you can’t get e.g.a german keyboard to test it, or find someone helping nor can provide a working howto, than it’s really sad.
Is there no chance of a shortcut from OSMC developer to the Debian Jessi developer? I think form dev to dev would be the best way to solve this problem.
I’m not a linux specialist, but tried the things other wrote via putty. I tried it the whole day long… now I’m frustrated.
OSMC is fine and the developer did a well and hard work, but without this keyfeature I think it is not acceptable for me and I have to go back to openelec.
If this is such an important bug for you, how about spending a little bit of time helping us to get it fixed ?
OSMC is a project created and worked on by developers working in their spare time, because they enjoy doing so. I think it’s a bit rich for you to basically demand that we go out of our way to buy hardware and spend time working on this for you and that if we don’t, that’s “sad” somehow.
By that reasoning we should also buy every single wifi adaptor ever made out of our own pockets to make sure that they all work on OSMC. Not going to happen.
Apparently despite over 600k OSMC users, not one has come forward to help fix the non US/UK keyboard layout issue. Strange isn’t it ? Is there not a single non English speaking Linux savvy user/developer out there in the OSMC user base ?
Sorry we can’t provide every feature wanted by every single user, but that is just the nature of free open source software.
I have clearly stated a few posts earlier in this thread why this problem has not yet been fixed but nobody seems to care enough to contribute back to OSMC to help us get this fixed, so it remains unfixed.
I don’t have the knowledge to fix this issue but l would gladly send you a Danish keyboard. Else i can send it to another dev. Send me a pm
sudo apt-get install console-data
when it asks you, tell it to use one of the default schemas
ive also added the correct keymap manually by adding the loadkeys line mentoined by geekgarage [BUG REPORT] Danish Hardware Keyboard layout not working - #27 by geekgarage to my /etc/rc.local file just in case osmc doesnt grab it correctly.
et voilaz, i got my z and my y where theyre supposed to be;-)