PINE64
Manjaro 5.17.5-1 Keyboard stopped working - 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: Manjaro 5.17.5-1 Keyboard stopped working (/showthread.php?tid=16619)



Manjaro 5.17.5-1 Keyboard stopped working - Yst - 05-07-2022

I upgraded my system using pacman and my keyboard stopped working.
The battery in the keyboard appears to be working.

How can I fix this?

My environment
Input method: Fcitx5 + Mozc
OS: Plasma Mobile
Pacman branch: Stable


RE: Manjaro 5.17.5-1 Keyboard stopped working - rotwang - 05-07-2022

(05-07-2022, 09:57 AM)Yst Wrote: I upgraded my system using pacman and my keyboard stopped working.
The battery in the keyboard appears to be working.

How can I fix this?

My environment
Input method: Fcitx5 + Mozc
OS: Plasma Mobile
Pacman branch: Stable


I had the same issue (no solution).

Posted here:
https://forum.pine64.org/showthread.php?tid=16522


RE: Manjaro 5.17.5-1 Keyboard stopped working - robocone - 05-07-2022

I had this too. The solution was to rebuild the kernel module manually.
These are the steps that I made:

1. Clone kernel sources from https://github.com/megous/linux

2. copy kernel config
zcat /proc/config.gz > .config
then edit .config and replace line
# CONFIG_KEYBOARD_PINEPHONE is not set
with
CONFIG_KEYBOARD_PINEPHONE=m

3. run
make modules_prepare

4. edit include/generated/utsrelease.h to make sure it matches 'uname r' exactly. I had to add dash 1.

5. make the module and copy to correct location
make M=drivers/input/keyboard

xz drivers/input/keyboard/pinephone-keyboard.ko
sudo cp -f drivers/input/keyboard/pinephone-keyboard.ko.xz /usr/lib/modules/5.17.5-1-MANJARO-ARM/kernel/drivers/input/keyboard


6. run depmod and load the module, rerun mkinitcpio
depmod
modprobe pinephone-keyboard
mkinitcpio -P

There is a bug report for this at Manjaro:
https://gitlab.manjaro.org/manjaro-arm/packages/core/linux-pinephone/-/issues/17

After this you will likely have a mapping problem with the special characters under the numbers. See https://xnux.eu/log/#066


RE: Manjaro 5.17.5-1 Keyboard stopped working - Yst - 05-07-2022

(05-07-2022, 04:31 PM)robocone Wrote: I had this too. The solution was to rebuild the kernel module manually.
These are the steps that I made:

1. Clone kernel sources from https://github.com/megous/linux

2. copy kernel config
zcat /proc/config.gz > .config
then edit .config and replace line
# CONFIG_KEYBOARD_PINEPHONE is not set
with
CONFIG_KEYBOARD_PINEPHONE=m

3. run
make modules_prepare

4. edit include/generated/utsrelease.h to make sure it matches 'uname r' exactly. I had to add dash 1.

5. make the module and copy to correct location
make M=drivers/input/keyboard

xz drivers/input/keyboard/pinephone-keyboard.ko
sudo cp -f drivers/input/keyboard/pinephone-keyboard.ko.xz /usr/lib/modules/5.17.5-1-MANJARO-ARM/kernel/drivers/input/keyboard


6. run depmod and load the module, rerun mkinitcpio
depmod
modprobe pinephone-keyboard
mkinitcpio -P

There is a bug report for this at Manjaro

After this you will likely have amapping problem with the special characters under the numbers. See https://xnux.eu/log

It worked.
Thank you very much.


RE: Manjaro 5.17.5-1 Keyboard stopped working - rotwang - 05-07-2022

(05-07-2022, 04:31 PM)robocone Wrote: I had this too. The solution was to rebuild the kernel module manually....


This worked for me, thanks!
(Pretty annoying losing the special characters under the number row though. Gotta figure out how to make a - )


RE: Manjaro 5.17.5-1 Keyboard stopped working - zetabeta - 05-08-2022

now i encountered this keyboard case not working, o.s. is manjaro/phosh. seems to charge differently as well.


RE: Manjaro 5.17.5-1 Keyboard stopped working - fusorx - 05-16-2022

FYI this can more easily be resolved by switching to the testing branch, as the fix has already been pushed there(https://gitlab.manjaro.org/manjaro-arm/packages/core/linux-pinephone/-/issues/17), but not to stable yet. The process to switch branches is described here: https://wiki.manjaro.org/index.php?title=Switching_Branches

Edit: this actually caused me more harm than good. I ended up reflashing the last beta release, upgrading, and building the module. Still having weird issues with the charging side of things, but the kernel keyboard drivers are working.


RE: Manjaro 5.17.5-1 Keyboard stopped working - graphicpanda444 - 06-09-2022

I followed this post on Reddit, and got the top row to work:

Quote: Wrote:I had the same problem with the PinePhone Keyboards upper row extra symbols (+-_=~) not working using (danctnix) Arch with Plasma-Mobile and it took me a while to fix it since every guide I found so far was about phosh. That's why I am posting my solution here, hope it helps somebody.
  1. copy xkb/rules and xkb/symbols from https://codeberg.org/HazardChem/PinePhone_Keyboard into
    Code:
    Code:
    /usr/share/X11/xkb
  2. Put
    Code:
    Code:
    export XKB_DEFAULT_MODEL=ppkb
    in
    Code:
    Code:
    sudoedit /etc/profile.d/ppkb
    and
    Code:
    Code:
    sudo chmod +x /etc/profile.d/ppkb
  3. Install
    Code:
    Code:
    plasma-desktop
    package, which gives you the keyboard settings menu which is missing from plasma-mobile

  4. Open the settings via gui or
    Code:
    Code:
    plasma-open-settings kcm_keyboard
    , go to Advanced and search for something like "Key for switching into third keyboard layer" (my settings are in german, so it's probably a litte different) and select your preferred modifier key, like super or some alt key

  5. You probably need to reboot for the environment variable to be set, and after that it should work

It might also work if you skip 2.) and then set the the keyboard layout in the plasma-desktop keyboard settings menu, but I dont know since I used the method described above.Also, I think the
Code:
Code:
/usr/share/X11/xkb
directory is owned by
Code:
Code:
xkeyboard-config
package, so you might need to repeat this when it updates (or tell pacman not to update this package)