Pinephone keyboard: How to unloading kb151 module to allow the user land driver to fu
#1
Hello

On my pinephone running mobian (unstable) the kb151 kernel module is automatically loaded
and makes the keyboard sort of functional if it is connected while the phone is switched on.

However I can't figure out how to press the F keys (required to switch to another VT for instance to run sway)

ppkb-i2c-inputd on the other hand allow me to use the F keys, only on caveat:

I have so far not been able to get ppkb-i2c-inputd to function (it does nothing) unless I'm connecting the keyboard after the phone has booted
(which is probably quite risky as the phone is powered on)

rmmod kb151 isn't enough it seems

My question: Does any one know how to switch from kb151 to the user land ppkb-i2c-inputd driver?

Regards Visti
  Reply
#2
Did you manage to figure this out? It's surprising that so few people are posting about not being able to use F1 to F10 (eg F5 for refresh). Is it actually fine for most people?
  Reply
#3
Both no and yes

No because I still don't know how to dynamically unload the kb151 module and getting the user land driver to work.

Yes because blacklisting the module in /etc/modprobe.d/blacklist.conf by adding a "blacklist kb151" enables me to use the userland driver after a reboot

I have also tried to add  kb151.disable_input to the kernel parameters as suggested by megi's blog post: https://xnux.eu/log/#058 
I did this by adding it to U_BOOT_PARAMETERS in /etc/default/u-boot then running u-boot-update and after a reboot confirming that it was added by examining /proc/cmdline

For some reason this wasn't enough and I then tried to outright blacklisting the module which work even if being somewhat static
  Reply
#4
"My question: Does any one know how to switch from kb151 to the user land ppkb-i2c-inputd driver?"

i2c is apparently not yet in the PPP kernal.  A pine64 person has mentioned needing to work on this in the next few days. (from IRC: #mobian channel on OFTC)
  Reply
#5
I've found the userland driver works fine if you blacklist the kb151 module so it never loads and run ppkb-i2c-inputd from a systemd unit file or other means. However if the kb151 module is loaded, the userland driver won't work even after kb151 is unloaded from the kernel. (This is on the regular Pinephone running Mobian, not the Pro.)

About the only downside I see to blacklisting kb151 is that the hardware keyboard cannot be used to enter the unlock key if you are using full disk encryption. Given the choice though I prefer to unlock the drive with the onscreen keyboard and have the better key mapping when userpace loads up.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Searching for a PinePhone Keyboard Case RubiksCube 1 1,123 10-07-2024, 11:08 PM
Last Post: tllim
  Seeking your experiences: PinePhone in snug cases of other phones mycycles 9 5,690 08-16-2024, 06:19 AM
Last Post: 67man
  So which keyboard you suggest for the Pinephone? Peter Gamma 21 5,869 07-19-2024, 08:05 AM
Last Post: Peter Gamma
  Rii mini 4 keyboard and touchpad work over Bluetooth Peter Gamma 0 556 07-19-2024, 08:02 AM
Last Post: Peter Gamma
  Keyboards for the PinePhone? Peter Gamma 1 1,542 07-04-2024, 10:22 PM
Last Post: Peter Gamma
  Bring the Pinephone keyboard back, it is worth it! Peter Gamma 1 999 07-04-2024, 07:32 AM
Last Post: Kevin Kofler
Heart The Pinephone keyboard offers alternative layouts Peter Gamma 0 382 07-04-2024, 05:40 AM
Last Post: Peter Gamma
  Keyboard & 2.4G usb dongle for the Pinephone? Peter Gamma 2 1,077 06-29-2024, 09:36 PM
Last Post: Peter Gamma
  Bluetooth keyboard with trackpad Zebulon Walton 11 11,886 06-29-2024, 04:09 AM
Last Post: Peter Gamma
  Was someone able to use the Pinephone keyboard & an usb mouse at the same? Peter Gamma 4 3,672 06-26-2024, 07:11 AM
Last Post: dachalife

Forum Jump:


Users browsing this thread: 2 Guest(s)