![]() |
Trouble building (& using) pinephone-keyboard tools - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121) +--- Thread: Trouble building (& using) pinephone-keyboard tools (/showthread.php?tid=16695) |
Trouble building (& using) pinephone-keyboard tools - 64_Tesseract - 05-22-2022 I'm trying to build the pinephone-keyboard package on PostmarketOS, so I can see the keyboard's battery with one of its commands. After installing php and gcc to solve the dependency errors I was getting, I got stuck on one I couldn't figure out: Code: In file included from i2c-inputd.c:22: I did a search and found the file in a GitHub repo that's supposed to be a Linux kernel - I don't know much on the subject, but I assume this means getting the tools to compile will be more complicated than a simple apk install... Unless, by some miracle, make's just not finding the header file hidden in some system folder ![]() Anyone got any ideas? Cheers RE: Trouble building pinephone-keyboard tools - carterza - 06-11-2022 (05-22-2022, 12:18 AM)64_Tesseract Wrote: I'm trying to build the pinephone-keyboard package on PostmarketOS, so I can see the keyboard's battery with one of its commands. After installing php and gcc to solve the dependency errors I was getting, I got stuck on one I couldn't figure out: Install the Code: linux-headers RE: Trouble building pinephone-keyboard tools - 64_Tesseract - 08-11-2022 Compiled without issues, thanks! RE: Trouble building pinephone-keyboard tools - TRS-80 - 08-15-2022 Forgive me for peppering you with questions, but I have been (very!) curious about this as well. 1. Does it work? 2. I thought it also required some kernel support (but maybe that's there already)? 3. What distro / shell / version of PMOS are you on (I am on SXMO 1.9.0)? I don't even see /sys/class/power_supply/ip5xxx-*, so I am wondering if I fried my chip, or maybe I just don't have recent enough kernel. RE: Trouble building pinephone-keyboard tools - 64_Tesseract - 08-21-2022 (08-15-2022, 07:30 PM)TRS-80 Wrote: Forgive me for peppering you with questions, but I have been (very!) curious about this as well. I've got SXMO 1.8.2 on the original PP, and I think PostmarketOS should already have support for the keyboard considering it receives inputs & all. I only just got around to trying the tools out, but unfortunately I'm not having much luck ![]() If I try running ppkb-i2c-charger-ctl with any command, it just gives me a very helpful Code: ERROR: Proxy read failed with ff I'm not seeing /sys/class/power_supply/ip5xxx-* either but i2c-adapter has a bunch of stuff in it, so the keyboard should be accessible from one of those folders. RE: Trouble building (& using) pinephone-keyboard tools - TRS-80 - 08-23-2022 I am pretty sure the power management (ip5xxx) kernel support is not there (yet) in Stable SXMO (which is what I am on; 1.9.0). Not sure about Edge. The keyboard works though (as an input device). More details can be found in a recent post I made to sxmo-user mailing list. RE: Trouble building (& using) pinephone-keyboard tools - 64_Tesseract - 08-28-2022 (08-23-2022, 04:17 PM)TRS-80 Wrote: I am pretty sure the power management (ip5xxx) kernel support is not there (yet) in Stable SXMO (which is what I am on; 1.9.0). Not sure about Edge. The keyboard works though (as an input device). I read through your post and actually, I'm having the same issue as you - the PP discharges faster with the keyboard than without. It used to charge the phone fine when I got it a few months ago, but it died not long after, even when I followed the warnings & only charged it through the keyboard. I tried shimming it with board from a few directions, but I'm afraid I might've damaged the cables, so I wanted to check if the problem lay in the battery itself or just the connection with these tools. Never got around to using a multimeter either since I wouldn't know what to look for in the first place... Oh well, guess I'll be using an external battery pack & repeatedly replacing the back cover until SXMO's updated lol |