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 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
Star Selling my Pinephone Pro Explorer Edition zheyon 0 314 01-31-2025, 02:27 PM
Last Post: zheyon
  PinePhone earpiece too quiet Waffelo 3 540 01-01-2025, 09:41 PM
Last Post: Kevin Kofler
Question WhatsApp & Pinephone - What are the alternatives for collaborative comms? danimations 15 19,823 12-27-2024, 03:02 AM
Last Post: biketool
  eSIM on PinePhone just_a_q 9 6,014 12-25-2024, 04:16 AM
Last Post: zetabeta
  US Mobile, via T-Mobile, won't support Pinephone Pro - SOLVED, SIMPLY jovval 13 7,981 12-05-2024, 04:38 PM
Last Post: tllim
  Pinephone compatibility with Telstra, now that 3 G shutdown and 5 G available tracyanne 0 380 12-04-2024, 10:53 PM
Last Post: tracyanne
  Want to buy second hand PinePhone 3G version rudi.timmermans 0 577 11-01-2024, 09:58 AM
Last Post: rudi.timmermans
  Can use PlayStation on Pinephone? willharper 6 6,495 10-30-2024, 08:07 AM
Last Post: biketool
  Ordered PinePhone till today have no info or confirmation about order hennadiyt 1 743 10-05-2024, 02:20 PM
Last Post: KC9UDX
  How can I record video on a Pinephone? kk22 18 9,011 07-22-2024, 05:18 PM
Last Post: baptx

Forum Jump:


Users browsing this thread: 1 Guest(s)