Developing for PinePhone
#1
Hello,

  Sorry for naive question, but how will developing for PinePhone look like? (I don't have it right now). Is it like regular Linux, so the screen is treated as monitor, I have to use Gtk, etc? Or there is needed extra framework for it?

  I have in mind such tasks as:
  • building and showing screen/windows with button, labels, textboxes,
  • subscribing for GPS position update
  • waking up phone and showing my screen
  • forcing phone to turn off the screen
  • running some processing in the background (like a service in Android)
  • querying battery status and charge level
Thank you in advance.

Cheers,
#2
(06-10-2020, 01:33 PM)macias Wrote: Hello,

  Sorry for naive question, but how will developing for PinePhone look like? (I don't have it right now). Is it like regular Linux, so the screen is treated as monitor, ...

It depends on which image you install but yes, the linux based ones are pretty standard linux, especially Mobian, pmOS, Manjaro, Arch & Fedora. The Ubuntu Touch release has (in my limited understanding of it - I am sure someone more knowledgeable will correct me Wink ) is based on standard Ubuntu 16.04 but it does have (out of the box) a read-only root partition so is just slightly less standard.
  • ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Arch (5.14 kernel, Openbox desktop) for general purpose daily PC.
  • PinePhone BraveHeart now v1.2b 3/32Gb daily driver, dual boot via p-boot with Mobian/f2fs/Phosh on eMMC, Arch/ext4/Phosh on SDcard
  • PinePhone v1.2a 2G/16Gb that needs USB board replaced
#3
Ubuntu Touch has a store full of apps and works more like android than linux.
#4
It's pretty much standard linux as already mentioned - pick from Qt or gtk (or other ) by preference. GPS is available via gpsd in most distros - connecting to gpsd should enable the gps device. Charge status and level, and backlight level, are available under /sys - there may also be daemons that'll abstract them depending on distro. Not sure how best to schedule wake from sleep - that may be a moving target given the work on CRUST anyway.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Austrialians now have a better reason to use PinePhone KNERD 7 200 Yesterday, 06:44 PM
Last Post: Zebulon Walton
  Add kill switches to the PinePhone realrichardsharpe@gmail.com 10 864 Yesterday, 12:59 PM
Last Post: biketool
  Manjaro Edition Pinephone for sale mstevens 5 164 09-17-2021, 10:50 AM
Last Post: mstevens
  Are you using the Pinephone as your daily driver? jro 91 13,634 09-17-2021, 07:26 AM
Last Post: user641
  PinePhone is not a daily driver FOSSagent0 17 1,242 09-17-2021, 01:11 AM
Last Post: bogen85
  Pinephone app development drgr33n 23 2,841 09-16-2021, 02:16 PM
Last Post: ragreenburg
  New PinePhone user dachalife 4 245 09-15-2021, 12:01 PM
Last Post: dachalife
  UPDATED (June 2021): 17-distro multi-boot image for Pinephone (incl. 3GiB variant) megous 161 112,008 09-11-2021, 10:57 PM
Last Post: ryo
Heart What native PinePhone application would you like to see in the near future? kern707 82 15,581 09-09-2021, 12:32 PM
Last Post: user641
  Pinephone won't let me enter password czgunner 5 274 09-07-2021, 08:50 PM
Last Post: TRS-80

Forum Jump:


Users browsing this thread: 1 Guest(s)