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 Game Thread PixelPaintbrush 30 79,271 06-04-2026, 01:01 PM
Last Post: elinkser
  How can I record video on a Pinephone? kk22 23 21,574 03-25-2026, 12:55 PM
Last Post: baptx
  Pinephone visibly losing power while plugged in Hiraghm 8 6,719 03-09-2026, 07:51 PM
Last Post: Tia Vaughan
  pinephone-support package not upgradable on Mobian fhireman 5 6,946 02-28-2026, 05:49 PM
Last Post: baptx
  beep - playing PCM samples on PinePhone? WhiteHexagon 0 864 12-04-2025, 08:07 AM
Last Post: WhiteHexagon
Star Selling my Pinephone Pro Explorer Edition zheyon 2 4,082 12-01-2025, 10:25 AM
Last Post: Kevin Kofler
  PinePhone sensors - Gyroscope power WhiteHexagon 3 1,582 11-30-2025, 08:07 AM
Last Post: WhiteHexagon
  Light Sensor / Proximity Sensor on PinePhone? WhiteHexagon 1 1,231 11-18-2025, 03:07 PM
Last Post: WhiteHexagon
  Pinephone boot. Richy_T 8 6,594 10-21-2025, 12:12 PM
Last Post: Richy_T
  Does PinePhone support long-term battery health optimization? roseblack 5 2,953 10-06-2025, 09:05 PM
Last Post: Kevin Kofler

Forum Jump:


Users browsing this thread: 1 Guest(s)