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 (6.2 kernel, Openbox desktop) for general purpose daily PC.
  • PinePhone Pro Explorer Edition, daily driver, rk2aw & U-boot on SPI, Arch/SXMO & Arch/phosh on eMMC
  • PinePhone BraveHeart now v1.2b 3/32Gb, Tow-boot with Arch/SXMO on eMMC
#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 - boot from microSD laserpyramid 5 307 03-06-2024, 06:37 PM
Last Post: aular
  Are you using the Pinephone as your daily driver? jro 157 105,179 02-18-2024, 11:33 PM
Last Post: aular
  2020 PinePhone Manjaro CE EU for sale, name your price astrojuanlu 7 1,525 02-14-2024, 04:51 PM
Last Post: astrojuanlu
  pinephone is not bootble for the box. ijij 1 464 01-19-2024, 01:29 PM
Last Post: fxc
  Multiple issues with the Pinephone MTXP 12 1,943 12-28-2023, 07:55 AM
Last Post: MTXP
  pinephone repair shop shengchieh 0 384 12-26-2023, 02:42 PM
Last Post: shengchieh
  sudo nano file saving pinephone beta edition CharlesGnarley 4 1,481 12-22-2023, 03:44 PM
Last Post: Kevin Kofler
  Can't get Mobian on PinePhone to recognise USB-C docking bar duncan_bayne 9 6,610 12-04-2023, 02:14 AM
Last Post: Peter Gamma
  Pinephone not booting, always vibrating alexander12 7 4,671 11-22-2023, 06:46 PM
Last Post: Scary Guy
  Pinephone on Verizon chachi 3 993 10-09-2023, 11:26 AM
Last Post: alaraajavamma

Forum Jump:


Users browsing this thread: 1 Guest(s)