Trouble building (& using) pinephone-keyboard tools
#1
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:
common.c:20:10: fatal error: linux/usbdevice_fs.h: No such file or directory

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 Undecided

Anyone got any ideas? Cheers
  Reply
#2
(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:
Code:
In file included from i2c-inputd.c:22:
common.c:20:10: fatal error: linux/usbdevice_fs.h: No such file or directory

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 Undecided

Anyone got any ideas? Cheers

Install the
Code:
linux-headers
package.
  Reply
#3
Compiled without issues, thanks!
  Reply
#4
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.
Cheers,
TRS-80

What is Free Software and why is it so important for society?

Protocols, not Platforms

For the most Linux-y experience on your Linux phone, try SXMO!

I am (nominally) the Armbian Maintainer for PineBook Pro (although severely lacking in time these days).
  Reply
#5
(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.

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.

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 Sad

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.
  Reply
#6
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.
Cheers,
TRS-80

What is Free Software and why is it so important for society?

Protocols, not Platforms

For the most Linux-y experience on your Linux phone, try SXMO!

I am (nominally) the Armbian Maintainer for PineBook Pro (although severely lacking in time these days).
  Reply
#7
(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).

More details can be found in a recent post I made to sxmo-user mailing list.

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
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Office applications for the Pinephone Peter Gamma 2 519 09-05-2024, 09:22 AM
Last Post: Peter Gamma
  Struggle to install LibreOffice on the PinePhone Peter Gamma 50 35,023 07-26-2024, 10:35 PM
Last Post: Peter Gamma
  Why does Pine64 sabotage office on the Pinephone? Peter Gamma 5 969 07-04-2024, 07:34 AM
Last Post: Kevin Kofler
  Which word processor to choose for the Pinephone? Peter Gamma 16 5,234 06-22-2024, 07:28 AM
Last Post: Peter Gamma
  Samba share on the Pinephone? Peter Gamma 0 633 06-16-2024, 10:26 PM
Last Post: Peter Gamma
  Possible Free Backup Carrier for PinePhone PineFone 0 441 06-13-2024, 03:45 PM
Last Post: PineFone
  Using Signal on PinePhone in mid-2023? dante404 47 22,228 05-03-2024, 02:19 AM
Last Post: dragonhospital
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 38 32,664 04-23-2024, 10:29 AM
Last Post: donchurch
Wink PINEPHONE not booting Touchwood 2 1,201 02-23-2024, 07:27 AM
Last Post: Touchwood
  Slack on PinePhone Adam Seline 5 6,471 12-20-2023, 07:20 AM
Last Post: nickolas

Forum Jump:


Users browsing this thread: 1 Guest(s)