Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Can't change keyboard layout (Read 871 times) previous topic - next topic
0 Members and 4 Guests are viewing this topic.

Re: Can't change keyboard layout

Reply #1
Weird.

The keymap service uses the command loadkeys.

What happens if you try that command as root, in a tty login (not a terminal in X)
Code: [Select]
loadkeys slovene
I just tried that and my Y key changed to a Z.
So that worked.

Obviously it won't fix your overall issue but I'd be curious if it works?


Re: Can't change keyboard layout

Reply #2
Loadkeys works. Thats why it was so weird for me.

Re: Can't change keyboard layout

Reply #3
Loadkeys works. Thats why it was so weird for me.

Looking a bit more your actual error comes after the service attempts to change the terminal encoding with the command kbd_mode
   
Code: [Select]
# Set terminal encoding to either ASCII or UNICODE.
# See utf-8(7) for more information.
ebegin "Setting keyboard mode [$msg]"
n=1
while [ $n -le $ttyn ]; do
kbd_mode $kmode -C $ttydev$n
: $(( n += 1 ))
done
eend 0

There's a bit of code above which seem to decide on Ascii or Unicode based on what $windowkeys is set to.
Try setting windowskeys="YES" in /etc/conf.d/keymaps and see what happens ?


 

Re: Can't change keyboard layout

Reply #5
The above post worked. Thank you guys.