PinePhone app development
#11
Yes, Plasma Mobile uses Wayland, kwin_wayland more specifically, so it is no use running another instance of it.
  Reply
#12
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




Code:
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
  Reply
#13
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).
  Reply
#14
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.
  Reply
#15
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).
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 40 35,079 12-28-2024, 12:19 AM
Last Post: mara
  Office applications for the Pinephone Peter Gamma 2 663 09-05-2024, 09:22 AM
Last Post: Peter Gamma
  Struggle to install LibreOffice on the PinePhone Peter Gamma 50 37,818 07-26-2024, 10:35 PM
Last Post: Peter Gamma
  Why does Pine64 sabotage office on the Pinephone? Peter Gamma 5 1,279 07-04-2024, 07:34 AM
Last Post: Kevin Kofler
  Which word processor to choose for the Pinephone? Peter Gamma 16 6,138 06-22-2024, 07:28 AM
Last Post: Peter Gamma
  Samba share on the Pinephone? Peter Gamma 0 717 06-16-2024, 10:26 PM
Last Post: Peter Gamma
  Possible Free Backup Carrier for PinePhone PineFone 0 639 06-13-2024, 03:45 PM
Last Post: PineFone
  Using Signal on PinePhone in mid-2023? dante404 47 24,654 05-03-2024, 02:19 AM
Last Post: dragonhospital
Wink PINEPHONE not booting Touchwood 2 1,344 02-23-2024, 07:27 AM
Last Post: Touchwood
  Slack on PinePhone Adam Seline 5 6,704 12-20-2023, 07:20 AM
Last Post: nickolas

Forum Jump:


Users browsing this thread: 4 Guest(s)