Artix Linux Forum

Init systems => OpenRC => Topic started by: MartinCo on 17 July 2022, 09:48:25

Title: Can't change keyboard layout
Post by: MartinCo on 17 July 2022, 09:48:25
Hi guys,

im trying to change the keyboard layout on my artix, but it just won't work.
I changed the /etc/conf.d/keymaps file to my desired layout.

(https://forum.artixlinux.org/index.php?action=dlattach;sa=tmpattach;attach=post_tmp_2758_f3f6bf2d14242bc76e0e034d79b109c3;topic=0)

(https://forum.artixlinux.org/index.php?action=dlattach;sa=tmpattach;attach=post_tmp_2758_27f615c51baae61e897e5d60067a3a86;topic=0)

Can anyone tell me what im doing wrong please?

Kind regards
Title: Re: Can't change keyboard layout
Post by: gripped on 17 July 2022, 12:40:56
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?

Title: Re: Can't change keyboard layout
Post by: MartinCo on 17 July 2022, 16:46:17
Loadkeys works. Thats why it was so weird for me.
Title: Re: Can't change keyboard layout
Post by: gripped on 17 July 2022, 17:22:37
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 ?
Title: Re: Can't change keyboard layout
Post by: cat herders of linux on 17 July 2022, 17:42:28
https://www.maketecheasier.com/change-keyboard-layout-linux/

https://forum.artixlinux.org/index.php/topic,1656.0.html

Title: Re: Can't change keyboard layout
Post by: MartinCo on 17 July 2022, 18:04:56
The above post worked. Thank you guys.