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
  Is Manjaro Plasma stable for anyone? projectcato 72 12,081 09-28-2022, 07:06 PM
Last Post: nroth
  Monjaro Plasma Cell Network and Data not working properly maiyuzhe 2 91 09-24-2022, 12:15 AM
Last Post: maiyuzhe
  Battery meter slowly reducing under keyboard charger robocone 0 48 09-23-2022, 10:19 PM
Last Post: robocone
  Waydroid on PinePhone Pro PPP (Stock Manjaro Plasma) mhedhli 7 2,256 09-18-2022, 06:54 PM
Last Post: nroth
  OBS Studio on Manjaro Fred Zyphal 0 206 08-06-2022, 08:32 PM
Last Post: Fred Zyphal
  No display on early boot after Manjaro update robocone 0 236 07-07-2022, 05:47 AM
Last Post: robocone
  Latest Manjaro-Phosh and Arch-Phosh won't boot grinzie 6 909 07-01-2022, 02:01 PM
Last Post: Chief
  Wrong pin (default manjaro install) senorsmile 5 956 06-11-2022, 03:59 PM
Last Post: senorsmile
  Manjaro Plasma Beta 11 sleep issue after 3/22 update Fred Zyphal 6 1,401 05-22-2022, 12:37 PM
Last Post: magdesign
  Fix keyboard layout robocone 1 553 05-16-2022, 08:03 AM
Last Post: robocone

Forum Jump:


Users browsing this thread: 1 Guest(s)