Manjaro 5.17.5-1 Keyboard stopped working
#1
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
  Reply
#2
(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
  Reply
#3
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/p.../issues/17

After this you will likely have a mapping problem with the special characters under the numbers. See https://xnux.eu/log/#066
  Reply
#4
(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.
  Reply
#5
(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 - )
  Reply
#6
now i encountered this keyboard case not working, o.s. is manjaro/phosh. seems to charge differently as well.
  Reply
#7
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/p.../issues/17), but not to stable yet. The process to switch branches is described here: https://wiki.manjaro.org/index.php?title...g_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.
  Reply
#8
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)
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Back/World camera working after suspend DrYak 2 638 11-14-2023, 09:44 AM
Last Post: DrYak
  Arch SXMO Stopped Booting After A Megi Linux Update. mburns 0 315 11-07-2023, 09:52 AM
Last Post: mburns
  Manjaro Plasma unstable branch glitch mburns 2 957 06-21-2023, 08:03 AM
Last Post: mburns
  Manjaro as shipped & camera? hambonius 1 813 06-20-2023, 02:26 PM
Last Post: fxc
  Manjaro Phosh - Tiny Blue Indicator Light - Blinking ArchiMark 2 835 06-11-2023, 04:12 PM
Last Post: ArchiMark
  Is Manjaro Plasma stable for anyone? projectcato 120 50,200 04-18-2023, 08:26 PM
Last Post: mburns
  Netfilter not working on latest manjaro kernel robocone 1 1,087 12-29-2022, 09:11 PM
Last Post: robocone
  Battery meter slowly reducing under keyboard charger robocone 1 1,282 12-26-2022, 09:37 AM
Last Post: robocone
  root password for manjaro Pine pro explorer edition HK order? Piotr 1 1,346 12-02-2022, 02:45 PM
Last Post: fxc
  PinePhone Pro Manjaro Plasma Mobile Beta 13 & No Audio with Phone Calls X0X0X0X0X0 0 1,027 11-02-2022, 02:09 PM
Last Post: X0X0X0X0X0

Forum Jump:


Users browsing this thread: 1 Guest(s)