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
  keyboard case charging but not typing new2pinephone 18 5,212 02-19-2024, 07:30 AM
Last Post: theResonant
  Keyboard doesn't charge my phone no matter what, so can I charge my phone directly ragreenburg 3 5,529 01-14-2024, 03:34 PM
Last Post: acid andy
  PinePhone Dock with laptop? Mikey1977Y2J 2 521 12-12-2023, 05:43 PM
Last Post: Mikey1977Y2J
  I've added an I2C connector to the PP keyboard eugenr 0 359 11-26-2023, 07:24 AM
Last Post: eugenr
  Case for Pinephone totilele 12 6,518 11-04-2023, 09:43 AM
Last Post: Negome
  Update the PinePhone keyboard driver to support missing characters? Peter Gamma 8 7,903 10-22-2023, 08:43 PM
Last Post: Peter Gamma
  key repeat with pinephone keyboard rotwang 0 392 10-22-2023, 03:39 PM
Last Post: rotwang
Exclamation USB mouse isn't working when a PP keyboard is attached? mikeb 3 1,111 10-21-2023, 08:21 PM
Last Post: Peter Gamma
  Pinephone with mini keyboard, trackpad and large power bank? Peter Gamma 0 447 10-21-2023, 07:50 AM
Last Post: Peter Gamma
  Which mini keyboard and mouse to choose for the PP? Peter Gamma 0 562 10-21-2023, 02:55 AM
Last Post: Peter Gamma

Forum Jump:


Users browsing this thread: 1 Guest(s)