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
  US Mobile, via T-Mobile, won't support Pinephone Pro - SOLVED, SIMPLY jovval 13 6,219 12-05-2024, 04:38 PM
Last Post: tllim
  Pinephone compatibility with Telstra, now that 3 G shutdown and 5 G available tracyanne 0 80 12-04-2024, 10:53 PM
Last Post: tracyanne
Question WhatsApp & Pinephone - What are the alternatives for collaborative comms? danimations 14 18,395 11-27-2024, 09:56 AM
Last Post: bsdbrulll
  eSIM on PinePhone just_a_q 8 4,952 11-05-2024, 11:10 AM
Last Post: zetabeta
  Want to buy second hand PinePhone 3G version rudi.timmermans 0 249 11-01-2024, 09:58 AM
Last Post: rudi.timmermans
  Can use PlayStation on Pinephone? willharper 6 5,816 10-30-2024, 08:07 AM
Last Post: biketool
  Ordered PinePhone till today have no info or confirmation about order hennadiyt 1 433 10-05-2024, 02:20 PM
Last Post: KC9UDX
  How can I record video on a Pinephone? kk22 18 7,576 07-22-2024, 05:18 PM
Last Post: baptx
  Pinephone not booting, always vibrating alexander12 8 7,067 07-19-2024, 07:50 PM
Last Post: Blackheart
  PinePhone Pro P. Siera 2 926 07-17-2024, 12:41 AM
Last Post: P. Siera

Forum Jump:


Users browsing this thread: 1 Guest(s)