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 33 24,428 04-09-2024, 01:17 PM
Last Post: donchurch
Wink PINEPHONE not booting Touchwood 2 409 02-23-2024, 07:27 AM
Last Post: Touchwood
  Slack on PinePhone Adam Seline 5 5,337 12-20-2023, 07:20 AM
Last Post: nickolas
  Struggle to install LibreOffice on the PinePhone Peter Gamma 48 24,044 11-24-2023, 07:02 AM
Last Post: Peter Gamma
  Which word processor to choose for the Pinephone? Peter Gamma 8 1,932 11-23-2023, 01:06 AM
Last Post: Peter Gamma
  openSUSE for Pinephone Alefnode 75 101,259 11-17-2023, 08:37 AM
Last Post: Uturn
  Using Signal on PinePhone in mid-2023? dante404 45 12,866 11-17-2023, 04:23 AM
Last Post: Kevin Kofler
  Genode- Sculpt OS for the PinePhone (non Linux) Surehand53 1 953 11-04-2023, 07:23 PM
Last Post: tllim
  Abiword as a office mobile word processor for the Pinephone? Peter Gamma 11 2,129 10-24-2023, 08:57 AM
Last Post: Peter Gamma
  What File Manager Options Are There For The Pinephone? pinephoneuser22 7 2,346 10-18-2023, 08:37 AM
Last Post: luppivega

Forum Jump:


Users browsing this thread: 1 Guest(s)