PPKB certain keys not working after kernel update
#6
Had a look at Megi's development log and it says exactly what's happened Smile


Quote:2022–04–12: Pinephone keyboard keymaps
I've merged latest keyboard driver from Samuel to my 5.17 and 5.18 kernel branches. That driver has function keys F1-F10 mapped to Fn+1-Fn+0. There's no way to type alternate symbols printed on those keys, without loading a keymap into a kernel.
For use with Linux kernel virtual console, you can load the following keymap via
Code:
loadkeys -d ppkb.map
:
strings as usual
compose as usual for "iso-8859-1"
keymaps 0-63

plain keycode 125 = ShiftR
ShiftR keycode 125 = ShiftR
ShiftR keycode 0x02 = bar
ShiftR keycode 0x03 = backslash
ShiftR keycode 0x06 = asciitilde
ShiftR keycode 0x07 = grave
ShiftR keycode 0x08 = minus
ShiftR keycode 0x09 = equal
ShiftR keycode 0x0a = underscore
ShiftR keycode 0x0b = plus
Afterwards you'll be able to type Pine+1 to type |, Pine+2 to type \, and so on. Of course you are not limited to this simple keymap, you can read
Code:
man keymaps
, and implement any kind of key mapping you want. You can override arrow keys to make them active by default, you can make use of AltG or Pine key for more things, etc.
You can create similar keymaps for XKB, for use with Xorg server or wayland compositors.
You should not be modifying keymaps inside the kernel or device tree.

I had actually tried that last weekend and then completely forgot about it.  I still think it would be nice to get the userspace driver going, just to see what it does vs the kernel driver.
  Reply


Messages In This Thread
RE: PPKB certain keys not working after kernel update - by mr_growl - 04-21-2022, 05:06 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Ringtone not working through external speaker... tk1107 2 908 03-13-2022, 11:34 PM
Last Post: tk1107
  Keyboard function keys vgnmnky 4 1,561 02-25-2022, 07:04 AM
Last Post: vgnmnky
  Can't update or install software P3TER 31 12,733 02-12-2022, 05:07 PM
Last Post: IHaveALinuxPhone
  Last update bricked my pine phone :( lacriz 6 1,738 01-25-2022, 07:52 AM
Last Post: kqlnut
  Latest update broke my cellular 112113101098101077 1 1,441 05-05-2021, 06:41 AM
Last Post: 112113101098101077
  Issue: nf modules not found in kernel? theD0ctor 5 3,582 03-15-2021, 07:41 AM
Last Post: Danct12
  wifi not working someGermanGuy 7 5,446 01-20-2021, 10:47 AM
Last Post: Enginerrrd

Forum Jump:


Users browsing this thread: 1 Guest(s)