When running cog using cage on a raspberry pi cm5 it is very slow to start.
it will log the following
root@goingdutch:~# G_MESSAGES_DEBUG=all LIBWPE_DEBUG=all LIBGL_DEBUG=verbose cage -- cog
00:00:00.005 [EGL] command: eglQueryDeviceStringEXT, error: EGL_BAD_PARAMETER (0x300c), message: "eglQueryDeviceStringEXT"
00:00:00.005 [EGL] command: eglQueryDeviceStringEXT, error: EGL_BAD_PARAMETER (0x300c), message: "eglQueryDeviceStringEXT"
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
(process:744): Cog-Core-DEBUG: 18:53:19.709: ensure_extension_points: Extension points registered.
(process:744): Cog-Core-DEBUG: 18:53:19.710: cog_modules_add_directory: Scanning '/usr/lib/cog/modules'
Cog-INFO: 18:53:19.713: com.igalia.Cog.Platform:
Cog-INFO: 18:53:19.713: wl - 500/CogWlPlatform
Cog-INFO: 18:53:19.713: drm - 200/CogDrmPlatform
(cog:744): GLib-GIO-DEBUG: 18:53:19.716: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs?
(cog:744): GLib-GIO-DEBUG: 18:53:19.716: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
(cog:744): Cog-DEBUG: 18:53:19.718: platform_setup_once: Platform name: (null)
(cog:744): Cog-DEBUG: 18:53:19.720: platform_setup_once: Platform params: (null)
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Initializing Wayland...
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Using 'wl_shm' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Ignoring 'wl_drm' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Ignoring 'zwp_linux_dmabuf_v1' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Using 'wl_compositor' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Using 'wl_subcompositor' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Ignoring 'wl_data_device_manager' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Using 'wl_seat' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Ignoring 'org_kde_kwin_idle' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Ignoring 'zwp_idle_inhibit_manager_v1' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Using 'xdg_wm_base' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Ignoring 'zxdg_decoration_manager_v1' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Ignoring 'org_kde_kwin_server_decoration_manager' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Ignoring 'wp_viewporter' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Using 'wp_presentation' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Ignoring 'zwlr_export_dmabuf_manager_v1' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Ignoring 'zwlr_screencopy_manager_v1' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Ignoring 'wp_single_pixel_buffer_manager_v1' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Ignoring 'zxdg_output_manager_v1' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Ignoring 'zwlr_output_manager_v1' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Ignoring 'zwlr_gamma_control_manager_v1' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Ignoring 'zwp_virtual_keyboard_manager_v1' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Ignoring 'zwlr_virtual_pointer_manager_v1' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.720: Using 'wl_output' interface obtained from the Wayland registry.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.721: Initializing EGL...
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
Cog-Wayland-INFO: 18:53:19.729: EGL version 1.5 initialized.
(cog:744): Cog-Wayland-DEBUG: 18:53:19.729: Creating Wayland surface...
(cog:744): Cog-Core-DEBUG: 18:53:19.733: gamepad setup: none
(cog:744): Cog-DEBUG: 18:53:19.733: platform_setup_once: Selected CogWlPlatform @ 0x55561526ee10
(process:748): GLib-GIO-DEBUG: 18:53:19.742: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals
(process:748): GLib-GIO-DEBUG: 18:53:19.743: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
(process:748): GLib-GIO-DEBUG: 18:53:19.744: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running
(process:748): GLib-GIO-DEBUG: 18:53:19.744: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ?gio-network-monitor?
(cog:744): Cog-Wayland-DEBUG: 18:53:49.765: Seat name: 'seat0'
(cog:744): Cog-Wayland-DEBUG: 18:53:49.765: Enumerating seat capabilities:
(cog:744): Cog-Wayland-DEBUG: 18:53:49.765: - Keyboard
(cog:744): Cog-Wayland-DEBUG: 18:53:49.765: Done enumerating seat capabilities.
Cog-Wayland-INFO: 18:53:49.765: Output 0x55561528ee40 is 1024x600 @ 59.85Hz
Cog-Wayland-INFO: 18:53:49.765: Got scale factor 1 for output 0x55561528ee40
(cog:744): Cog-Wayland-DEBUG: 18:53:49.765: output_handle_done: Using 0x55561528ee40 as initial output
(cog:744): GLib-GIO-DEBUG: 18:53:49.766: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
(process:748): GLib-GIO-DEBUG: 18:53:49.769: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs?
(cog:744): Cog-Wayland-DEBUG: 18:53:49.772: New XDG toplevel configuration: (0, 0)
(cog:744): Cog-Wayland-DEBUG: 18:53:49.772: Resized EGL buffer to: (1024, 768) @1x
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
(WPEWebProcess:773): GLib-GIO-DEBUG: 18:53:49.807: Failed to initialize portal (GPowerProfileMonitorPortal) for gio-power-profile-monitor: Not using portals
(WPEWebProcess:773): GLib-GIO-DEBUG: 18:53:49.807: _g_io_module_get_default: Found default implementation dbus (GPowerProfileMonitorDBus) for ?gio-power-profile-monitor?
(WPEWebProcess:773): GLib-GIO-DEBUG: 18:53:49.808: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
Cog-Core-Message: 18:53:49.844: <file:///root> Load started.
Cog-Core-Message: 18:53:49.848: <file:///root> Loading...
(cog:744): Cog-Wayland-DEBUG: 18:53:49.850: Configuring new size: 1024x600
(cog:744): Cog-Wayland-DEBUG: 18:53:49.850: New XDG toplevel configuration: (1024, 600)
(cog:744): Cog-Wayland-DEBUG: 18:53:49.850: Resized EGL buffer to: (1024, 600) @1x
Cog-Core-Message: 18:53:49.859: <file:///root> Loaded successfully.
There is a 30 second wait between the following two lines that i would like to avoid
(process:748): GLib-GIO-DEBUG: 18:53:19.744: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ?gio-network-monitor?
(cog:744): Cog-Wayland-DEBUG: 18:53:49.765: Seat name: 'seat0'
cog version 0.18.5
cage version 0.1.5
building from meta-webkit https://github.com/Igalia/meta-webkit/tree/scarthgap
When running cog using cage on a raspberry pi cm5 it is very slow to start.
it will log the following
There is a 30 second wait between the following two lines that i would like to avoid
cog version 0.18.5
cage version 0.1.5
building from meta-webkit https://github.com/Igalia/meta-webkit/tree/scarthgap