PinePhone app development
Yes, Plasma Mobile uses Wayland, kwin_wayland more specifically, so it is no use running another instance of it.
OK that helps, thanks.  I was running this over SSH and had the bright idea that it might have to be running on the actual device to use wayland/GUI  but sadly has the same missing 'wl_shell' interface.  I also read that there is a newer (unstable) 'xdg_shell' but I also dont see that on the 'registry' scan (below).  Is there somewhere to find a current simple wayland example that works on current Plasma PP-Beta please? chatGPT spat out some garbage Wink  Ideally looking for something like a fullscreen blank GL ES starting point please.  Is that the right level to work at, or should/could I be looking at direct DRM calls (if that is even possible from this OS level of abstractions).

And a more general question for app development.  If I mange to get a wayland app running, how portable would it be, just plasma, or do you think would it run across other PP OS options?

I am really appreciating your guidance, but also wondering if there are others doing this, or did I miss the boat for PP app development Smile

registry_handle_global interface:wl_compositor
registry_handle_global interface:zwp_tablet_manager_v2
registry_handle_global interface:zwp_keyboard_shortcuts_inhibit_manager_v1
registry_handle_global interface:xdg_wm_base
registry_handle_global interface:zwlr_layer_shell_v1
registry_handle_global interface:zxdg_decoration_manager_v1
registry_handle_global interface:wp_viewporter
registry_handle_global interface:wl_shm
registry_handle_global interface:wl_seat
registry_handle_global interface:zwp_pointer_gestures_v1
registry_handle_global interface:zwp_pointer_constraints_v1
registry_handle_global interface:zwp_relative_pointer_manager_v1
registry_handle_global interface:wl_data_device_manager
registry_handle_global interface:zwlr_data_control_manager_v1
registry_handle_global interface:zwp_primary_selection_device_manager_v1
registry_handle_global interface:org_kde_kwin_idle
registry_handle_global interface:zwp_idle_inhibit_manager_v1
registry_handle_global interface:org_kde_plasma_shell
registry_handle_global interface:org_kde_kwin_appmenu_manager
registry_handle_global interface:org_kde_kwin_server_decoration_palette_manager
registry_handle_global interface:org_kde_plasma_virtual_desktop_management
registry_handle_global interface:org_kde_kwin_shadow_manager
registry_handle_global interface:org_kde_kwin_dpms_manager
registry_handle_global interface:org_kde_kwin_server_decoration_manager
registry_handle_global interface:kde_output_management_v2
registry_handle_global interface:kde_primary_output_v1
registry_handle_global interface:zxdg_output_manager_v1
registry_handle_global interface:wl_subcompositor
registry_handle_global interface:zxdg_exporter_v2
registry_handle_global interface:zxdg_importer_v2
registry_handle_global interface:xdg_activation_v1
registry_handle_global interface:wp_drm_lease_device_v1
registry_handle_global interface:wl_drm
registry_handle_global interface:zwp_linux_dmabuf_v1
registry_handle_global interface:kde_output_device_v2
registry_handle_global interface:wl_output
registry_handle_global interface:zwp_text_input_manager_v2
registry_handle_global interface:zwp_text_input_manager_v3
registry_handle_global interface:org_kde_kwin_slide_manager
Normally, you do not use Wayland directly in an application, you use a toolkit like Qt (either QtQuick or QtWidgets, though the latter is not well supported for mobile) or GTK.

That said, a Wayland application should work in most mobile desktop environments. Only SXMO uses X11, and even there, there is now also a Wayland-based variant.

It is just that it is not very convenient to code for Wayland directly without the toolkit layer (and the toolkit also provides portability to X11 and other platforms).
Thanks again. I only try to target my Apps for the PinePhone and PineTab2 when released (ie not desktop). But GTK has some appeal, especially being written in C, which should make it easy to access from Zig Smile but from what I am reading it sounds like a lot of these toolkits struggle a bit with performance, especially at startup. So far I tried 3 different OS combinations, and they all seem to take a few seconds just to open the most basic 'builtin' apps like calendars and clocks. The mali400 might be a bit old, but it should be able to whack out stuff much faster than what I am seeing. So now I am wondering if Linux is the bottleneck? Even with 'airplane mode' and phone locked, the battery is draining overnight, so I can only assume that Linux must be running quite a bit of stuff in the background? could that be affecting app performance? As I say I am new to Linux, so maybe I am repeating a lot of what is already known, and this is just the price of having such an amazing open platform as the PinePhone Smile I shall take a look at NuttX next, since that will maybe give me a better idea what the device is capable of.
You will quickly get used to leaving the phone plugged overnight so the battery will be full when you wake up. Wink

But for the performance, well, you can always try writing a raw Wayland app and seeing whether it will come up any faster. I suppose it also depends on how many libraries the application is linked to (and I guess the Zig standard library is actually going to be one more library to load that slows things down).

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Video] Apache NuttX RTOS for PINE64 PinePhone lupyuen 0 27 Yesterday, 11:26 PM
Last Post: lupyuen
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 27 18,535 09-24-2023, 12:37 PM
Last Post: mara
  Article: NuttX RTOS for PinePhone: Feature Phone UI in LVGL, Zig and WebAssembly lupyuen 64 5,728 09-09-2023, 09:49 AM
Last Post: WhiteHexagon
  What File Manager Options Are There For The Pinephone? pinephoneuser22 6 827 09-08-2023, 07:53 AM
Last Post: mikehenson
  Using Signal on PinePhone in mid-2023? dante404 41 4,710 09-08-2023, 01:35 AM
Last Post: dragonhospital
  Pinephone OS Backups (System Images) ThrillGates 6 6,079 08-20-2023, 09:22 AM
Last Post: DominiqueM
  [Presentation] What's inside a PinePhone? Exploring the internals with Apache NuttX lupyuen 0 1,066 08-09-2023, 09:43 PM
Last Post: lupyuen
  Introducing Harborz: Lightweight Rust Music Player for Pinephone ravenblackdusk 1 338 08-07-2023, 12:05 AM
Last Post: ravenblackdusk
  Armtix on PinePhone realroot 0 337 07-26-2023, 12:34 PM
Last Post: realroot
  Article: NuttX RTOS for PinePhone: The First Year lupyuen 0 498 06-19-2023, 10:01 PM
Last Post: lupyuen

Forum Jump:

Users browsing this thread: 1 Guest(s)