PINE64
Fix keyboard layout - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone Pro (https://forum.pine64.org/forumdisplay.php?fid=177)
+--- Forum: PinePhone Pro Software (https://forum.pine64.org/forumdisplay.php?fid=179)
+--- Thread: Fix keyboard layout (/showthread.php?tid=16640)



Fix keyboard layout - robocone - 05-12-2022

I am using Manjaro plasma and I'm having some trouble getting the keyboard layout to work with the characters under the number row.

I have tried the suggestion on https://forum.pine64.org/showthread.php?tid=16507 (Step 8) as well as reading the doc at https://wiki.archlinux.org/title/X_keyboard_extension

When I create the layout and try to load it I get
Code:
# setxbmap -layout ppkb
WARNING: Running setxkbmap against an XWayland server

and they changes don't seem to work. Even if I for example override a number key with a different number.

Has anyone had any success in fixing this?


RE: Fix keyboard layout - robocone - 05-16-2022

Somewhat working

Console:
Follow instructions at https://codeberg.org/HazardChem/PinePhone_Keyboard/src/branch/main/tty
The file to edit is /etc/vconsole.conf. If keymaps is included in yout /etc/mkinitcpio.conf then it will work from initramfs (run mkinitcpio -P to refresh it)

caveat: Ctrl key is no longer working for me

Wayland/Plasma:
Update your /usr/share/xkb/* to the files in https://codeberg.org/HazardChem/PinePhone_Keyboard/src/branch/main/xkb

I'm not sure the correct way to configure wayland/plasma to use the layout but I had success with creating
~/.config/kxkbrc

Code:
[Layout]
LayoutList=us
Model=ppkb


I tried several things but I think this is what got it to work in Plasma/Wayland.

If you don't want to change the files in /usr/share/xkb/ you can create them in your home directory, see:
https://xkbcommon.org/doc/current/md_doc_user_configuration.html

Ideally we could select it using the 'System Settings' application, as it is on the desktop, but I'm not sure which packages are needed to get this to work.