Check Battery Level for Keyboard
#5
(02-07-2022, 02:44 PM)Zebulon Walton Wrote: It's supposed to be "firmware and tools".  It looks like you have to clone the source tree with git and then build from source. (On Mobian to get the C compiler, make, etc., you need to "sudo apt-get install build-essential". Not sure on other distros.)

Code:
git clone https://megous.com/git/pinephone-keyboard

Then you cd into the resulting pinephone-keyboard directory where there's a Makefile which has a target to build the tools/utilities. So if you have the prerequisites installed the following would build everything, or just build the tools, respectively:

Code:
make            # Build everything

make tools      # Build tools/utilities only

However, it appears that one of the prerequisites is php, when running either make command the following diagnostic is issued because that's not installed:

Code:
php keymaps/map-to-c.php keymaps/physical-map.txt keymaps/factory-keymap.txt build/kmap.h
make: php: No such file or directory
make: *** [Makefile:21: build/kmap.h] Error 127

The problem is that "apt-get install php" wants to drag in a bunch of other stuff including the apache web server and I really don't want that. (Though I could install all that stuff, build the tools, then remove it all afterwards.)

Thank you for the help! On Arch Php was only 3 packages and was like 20 mb so I may have had the other stuff installed or maybe Arch just packages it differently. Either way, I built it but now running the same command as I listed in my original post, still gives the same error. I rebooted and tried again with the keyboard attached and same thing.

Edit:
It seems like they are inside of the build directory. I assumed I would be able to run them from anywhere but I was mistaken. Unfortunately I found this out after disconnecting my keyboard so I will have to reattach it all and see if that is actually working.
  Reply


Messages In This Thread
Check Battery Level for Keyboard - by ragreenburg - 02-07-2022, 12:59 PM
RE: Check Battery Level for Keyboard - by ragreenburg - 02-07-2022, 03:13 PM
RE: Check Battery Level for Keyboard - by Savrik - 02-10-2022, 06:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation USB mouse isn't working when a PP keyboard is attached? mikeb 6 1,562 4 minutes ago
Last Post: Peter Gamma
  Was someone able to use the Pinephone keyboard & an usb mouse at the same? Peter Gamma 3 155 06-23-2024, 08:26 PM
Last Post: Peter Gamma
  keyboard case charging but not typing new2pinephone 18 6,657 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 14,312 01-14-2024, 03:34 PM
Last Post: acid andy
  I've added an I2C connector to the PP keyboard eugenr 0 532 11-26-2023, 07:24 AM
Last Post: eugenr
  Update the PinePhone keyboard driver to support missing characters? Peter Gamma 8 8,718 10-22-2023, 08:43 PM
Last Post: Peter Gamma
  key repeat with pinephone keyboard rotwang 0 549 10-22-2023, 03:39 PM
Last Post: rotwang
  Pinephone with mini keyboard, trackpad and large power bank? Peter Gamma 0 620 10-21-2023, 07:50 AM
Last Post: Peter Gamma
  Which mini keyboard and mouse to choose for the PP? Peter Gamma 0 719 10-21-2023, 02:55 AM
Last Post: Peter Gamma
  Use the Linux Console with the PinePhone Keyboard mburns 2 1,203 10-20-2023, 04:11 PM
Last Post: mburns

Forum Jump:


Users browsing this thread: 1 Guest(s)