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
  Disappearing arroe keys ionmich 1 706 09-03-2023, 07:41 AM
Last Post: _radv_
  satellite doesn't work after update shulamy 1 884 05-17-2023, 10:34 PM
Last Post: Kevin Kofler
  FDE installer not working user641 0 796 03-04-2023, 02:55 AM
Last Post: user641
  Latest update broke my install user641 8 3,720 02-22-2023, 05:54 AM
Last Post: gregb49
  Ringtone not working through external speaker... tk1107 2 2,081 03-13-2022, 11:34 PM
Last Post: tk1107
  Keyboard function keys vgnmnky 4 3,434 02-25-2022, 07:04 AM
Last Post: vgnmnky
  Can't update or install software P3TER 31 23,617 02-12-2022, 05:07 PM
Last Post: IHaveALinuxPhone
  Last update bricked my pine phone :( lacriz 6 4,097 01-25-2022, 07:52 AM
Last Post: kqlnut
  Latest update broke my cellular 112113101098101077 1 2,235 05-05-2021, 06:41 AM
Last Post: 112113101098101077
  Issue: nf modules not found in kernel? theD0ctor 5 5,768 03-15-2021, 07:41 AM
Last Post: Danct12

Forum Jump:


Users browsing this thread: 1 Guest(s)