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.
  • PinePhone BraveHeart now v1.2b 3/32Gb daily driver, Tow-boot with pmOS/SXMO on eMMC
  • PinePhone pmOS Community Edition 2/16Gb driving my picture frame, Tow-boot with pmOS/SXMO on eMMC
  • PinePhone Pro Explorer Edition, Tow-boot on SPI, Arch/SXMO on eMMC
  • ROCKPro64 v2.1 2GB, 16Gb eMMC retired in favour of a fruity upgrade
#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
  Pinephone visibly losing power while plugged in Hiraghm 2 719 05-23-2025, 12:30 PM
Last Post: Kevin Kofler
  Pinephone Pro Neural Processing Unit biketool 0 698 03-26-2025, 11:01 AM
Last Post: biketool
  contact sales pinephone janjansen1312 2 1,080 03-17-2025, 07:29 PM
Last Post: tllim
  PinePhone Pro P. Siera 4 2,482 03-14-2025, 07:00 PM
Last Post: Kevin Kofler
  [Article] PR Test Bot for PinePhone (Avaota-A1 SBC / Apache NuttX RTOS) lupyuen 0 697 03-08-2025, 02:43 PM
Last Post: lupyuen
Star Selling my Pinephone Pro Explorer Edition zheyon 0 1,145 01-31-2025, 02:27 PM
Last Post: zheyon
  PinePhone earpiece too quiet Waffelo 3 1,472 01-01-2025, 09:41 PM
Last Post: Kevin Kofler
Question WhatsApp & Pinephone - What are the alternatives for collaborative comms? danimations 15 22,506 12-27-2024, 03:02 AM
Last Post: biketool
  eSIM on PinePhone just_a_q 9 7,936 12-25-2024, 04:16 AM
Last Post: zetabeta
  US Mobile, via T-Mobile, won't support Pinephone Pro - SOLVED, SIMPLY jovval 13 10,560 12-05-2024, 04:38 PM
Last Post: tllim

Forum Jump:


Users browsing this thread: 1 Guest(s)