So now going full steam ahead with wpe-webkit-mir-kiosk thank you, however documentation seems a bit thin as far as I can tell.
To verify my dev env: miral-app -kiosk -terminal 'glmark2-wayland --fullscreen'
Works, however with and without the fullscreen flag, both cases render it as a window about 1/4 size of my screen.
I then tried:
snap set wpe-webkit-mir-kiosk url=https://snapcraft.io
miral-app -kiosk -terminal /snap/bin/wpe-webkit-mir-kiosk.cog
It brings up a window, but it shows a terminal instead of a browser. I feel like I am stabbing at the dark instead of folloing documentation, any insights or suggested reading material?
wpe-webkit-mir-kiosk runs as a daemon and starts automatically (simply installing mir-kioks (or the newer ubuntu-frame) and then installing wpe-webkit-mir-kiosk afterwards should get you all you need, there is no manual stuff necessary beyond setting the value for “url” to point where you want it … there are plenty of commercial Ubuntu Core based installs out there with exactly this setup) , don’t try to run it manually as miral-app …
You seem to be following a tutorial about packaging an application for use as a “kiosk app”. And are at the step of testing that it works with Wayland.
But wpe-webkit-mir-kiosk is already packaged as a “kiosk app” so all of that is unnecessary.
Hi Guys, sorry I am talking utter twaddle, I tried orginally just running it and ran into problem then, tried to resolve it with some attempts from the tutorials, but didnt fix it, and then messed up the post. Sorry running on very little sleep, been trying to to make a web kiosk every night until about 4am this last wek.
On a dev enviroment I tried:
sudo snap install wpe-webkit-mir-kiosk
then later
sudo snap install wpe-webkit-mir-kiosk --devmode
This is how I tried to run it
snap set wpe-webkit-mir-kiosk url=https://snapcraft.io
wpe-webkit-mir-kiosk.cog
And I get
+ snapctl is-connected wayland
+ echo Wayland interface not connected!
Wayland interface not connected!
+ exit 1
Thats why I tried the miral-app stuff. Can it not run on dev PC, should I load it onto computer running core (I am working on that but its currently not booting)?
Cheers!
after installing mir-kiosk you should see a short orange flash and afterwards a black screen with mouse pointer … (if you decide to use the more modern ubuntu-frame you will see a gray gradient instead of the orange flash)
after installing wpe-webkit-mir-kiosk and waiting a little (it takes a bit to set up its runtime environment on first install) you should see the webkit page …
after running the snap set ... command you should then see the snapcraft.io page (the browser will restart automatically and point to the new URL IIRC)
It’s like I this attempt is cursed. Nothing has worked for me at every step. I tried to fake kiosk:
(I added ignore this so its not too simliar to another post that I deleted):
(ignore this) ./fake-kiosk mir-kiosk
(ignore this) + kiosk=mir-kiosk
(ignore this) + sudo mir-kiosk --help
(ignore this) [sudo] password for michael:
(ignore this) + true
(ignore this) + sudo cp /run/user/1000/gdm/Xauthority /root/snap/mir-kiosk/current/.Xauthority
(ignore this) + XAUTHORITY=/root/snap/mir-kiosk/current/.Xauthority exec sudo mir-kiosk
(ignore this) 2021/07/27 16:26:36.092295 cmd_run.go:576: WARNING: XAUTHORITY environment value is not a clean path: "/root/snap/mir-kiosk/7278/.Xauthority"
(ignore this) + mkdir -p /root/snap/mir-kiosk/7278/.config/
(ignore this) + grep -vE (^vt=|^console-provider=vt|^display-layout=) /var/snap/mir-kiosk/7278/miral-kiosk.config
(ignore this) + exec /snap/mir-kiosk/7278/bin/run-miral
(ignore this) [2021-07-27 14:26:36.149915] <information> mirserver: Starting
(ignore this) [2021-07-27 14:26:36.153133] < - debug - > mirserver: Not trying logind: "DISPLAY" is set and X need not have claimed the VT
(ignore this) [2021-07-27 14:26:36.153324] < - debug - > mirserver: Not using Linux VT subsystem for session management: Failed to open current VT
(ignore this) [2021-07-27 14:26:36.153355] < - debug - > mirserver: No session management supported
(ignore this) [2021-07-27 14:26:36.153374] <information> VT switch key handler: No VT switching support available: MinimalConsoleServices does not support VT switching
(ignore this) [2021-07-27 14:26:36.153506] <information> mircommon: Loading modules from: /snap/mir-kiosk/7278/usr/lib/x86_64-linux-gnu/mir/server-platform
(ignore this) [2021-07-27 14:26:36.153564] <information> mircommon: Loading module: /snap/mir-kiosk/7278/usr/lib/x86_64-linux-gnu/mir/server-platform/graphics-gbm-kms.so.19
(ignore this) [2021-07-27 14:26:36.153613] <information> mircommon: Loading module: /snap/mir-kiosk/7278/usr/lib/x86_64-linux-gnu/mir/server-platform/server-x11.so.19
(ignore this) [2021-07-27 14:26:36.153621] <information> mircommon: Loading module: /snap/mir-kiosk/7278/usr/lib/x86_64-linux-gnu/mir/server-platform/input-evdev.so.8
(ignore this) [2021-07-27 14:26:36.542702] < - debug - > gbm-kms: Quirks: checking device with devnode: /dev/dri/card1, driver radeon
(ignore this) [2021-07-27 14:26:37.227231] <information> gbm-kms: Failed to probe DRM device: /build/mir-VQizFV/mir-2.4.1/src/server/console/minimal_console_services.cpp(137): Throw in function virtual std::future<std::unique_ptr<mir::Device> > mir::MinimalConsoleServices::acquire_device(int, int, std::unique_ptr<mir::Device::Observer>)
(ignore this) Dynamic exception type: boost::wrapexcept<std::system_error>
(ignore this) std::exception::what: Failed to acquire DRM master: Operation not permitted
(ignore this)
(ignore this) [2021-07-27 14:26:37.227396] < - debug - > gbm-kms: Quirks: checking device with devnode: (null), driver
(ignore this) [2021-07-27 14:26:37.227532] < - debug - > gbm-kms: Quirks: checking device with devnode: /dev/dri/card0, driver i915
(ignore this) [2021-07-27 14:26:37.227627] <information> gbm-kms: Failed to probe DRM device: /build/mir-VQizFV/mir-2.4.1/src/server/console/minimal_console_services.cpp(137): Throw in function virtual std::future<std::unique_ptr<mir::Device> > mir::MinimalConsoleServices::acquire_device(int, int, std::unique_ptr<mir::Device::Observer>)
(ignore this) Dynamic exception type: boost::wrapexcept<std::system_error>
(ignore this) std::exception::what: Failed to acquire DRM master: Operation not permitted
(ignore this)
(ignore this) [2021-07-27 14:26:37.227729] < - debug - > gbm-kms: Quirks: checking device with devnode: (null), driver
(ignore this) [2021-07-27 14:26:37.227826] < - debug - > gbm-kms: Quirks: checking device with devnode: (null), driver
(ignore this) [2021-07-27 14:26:37.227921] < - debug - > gbm-kms: Quirks: checking device with devnode: (null), driver
(ignore this) [2021-07-27 14:26:37.227997] < - debug - > gbm-kms: Quirks: checking device with devnode: (null), driver
(ignore this) [2021-07-27 14:26:37.228062] < - debug - > gbm-kms: Quirks: checking device with devnode: (null), driver
(ignore this) [2021-07-27 14:26:37.228141] < - debug - > gbm-kms: Quirks: checking device with devnode: (null), driver
(ignore this) [2021-07-27 14:26:37.228210] < - debug - > gbm-kms: Quirks: checking device with devnode: (null), driver
(ignore this) [2021-07-27 14:26:37.228260] <information> mirserver: Found graphics driver: mir:gbm-kms (version 2.4.1) Support priority: 0
(ignore this) [2021-07-27 14:26:38.045010] <information> mirserver: Found graphics driver: mir:x11 (version 2.4.1) Support priority: 192
(ignore this) [2021-07-27 14:26:38.045080] <information> mirserver: Selected driver: mir:x11 (version 2.4.1)
(ignore this) [2021-07-27 14:26:38.045469] <information> mircommon: Loading modules from: /snap/mir-kiosk/7278/usr/lib/x86_64-linux-gnu/mir/server-platform
(ignore this) [2021-07-27 14:26:38.045506] <information> mircommon: Loading module: /snap/mir-kiosk/7278/usr/lib/x86_64-linux-gnu/mir/server-platform/graphics-gbm-kms.so.19
(ignore this) [2021-07-27 14:26:38.045517] <information> mircommon: Loading module: /snap/mir-kiosk/7278/usr/lib/x86_64-linux-gnu/mir/server-platform/server-x11.so.19
(ignore this) [2021-07-27 14:26:38.045528] <information> mircommon: Loading module: /snap/mir-kiosk/7278/usr/lib/x86_64-linux-gnu/mir/server-platform/input-evdev.so.8
(ignore this) [2021-07-27 14:26:38.047352] < - debug - > gbm-kms: Quirks: checking device with devnode: /dev/dri/card1, driver radeon
(ignore this) Failed to create /root/.cache/mesa_shader_cache for shader cache (Permission denied)---disabling.
(ignore this) radeon: Failed to allocate virtual address for buffer:
(ignore this) radeon: size : 65536 bytes
(ignore this) radeon: alignment : 4096 bytes
(ignore this) radeon: domains : 4
(ignore this) radeon: va : 0x0000000100000000
(ignore this) radeon: Failed to deallocate virtual address for buffer:
(ignore this) radeon: size : 65536 bytes
(ignore this) radeon: va : 0x100000000
(ignore this) radeon: Failed to allocate virtual address for buffer:
(ignore this) radeon: size : 65536 bytes
(ignore this) radeon: alignment : 4096 bytes
(ignore this) radeon: domains : 4
(ignore this) radeon: va : 0x0000000100000000
(ignore this) radeon: Failed to deallocate virtual address for buffer:
(ignore this) radeon: size : 65536 bytes
(ignore this) radeon: va : 0x100000000
(ignore this) radeonsi: Failed to create a context.
(ignore this) radeon: Failed to allocate virtual address for buffer:
(ignore this) radeon: size : 65536 bytes
(ignore this) radeon: alignment : 4096 bytes
(ignore this) radeon: domains : 4
(ignore this) radeon: va : 0x0000000100000000
(ignore this) radeon: Failed to deallocate virtual address for buffer:
(ignore this) radeon: size : 65536 bytes
(ignore this) radeon: va : 0x100000000
(ignore this) radeon: Failed to allocate virtual address for buffer:
(ignore this) radeon: size : 65536 bytes
(ignore this) radeon: alignment : 4096 bytes
(ignore this) radeon: domains : 4
(ignore this) radeon: va : 0x0000000100000000
(ignore this) radeon: Failed to deallocate virtual address for buffer:
(ignore this) radeon: size : 65536 bytes
(ignore this) radeon: va : 0x100000000
(ignore this) radeonsi: Failed to create a context.
(ignore this) Segmentation fault
Is this a hybrid intel/radeon machine? There are some unexpected interactions between mesa, snap interfaces and hardware drivers that can cause problems.
Well spotted. Its a laptop, with a built in graphics card. I have taken it apart before and the graphics card is like incorporated on the motherboard as far as I could tell. If I am in windows I can switch between them, and my monitor remains attached to the laptops HDMI outut. In ubuntu I tried to find a way to switch between them but couldnt.
the VM takes a bit until you get the “please press enter to configure” message (it reboots once before getting to this point) … just hit enter at the network setup page and then enter your Ubuntu SSO mail address to get a user created and the ssh key you uploaded to SSO put into the VM …
Thanks for posting all that info! If I run I can finally see something other than a black screen for the first time , I see a white page (must be served by wpe-webkit-mir, so thats exciting) that says :
Page load error
https://snapcraft.io
Error resolving snapcraft.io: Temporary failure in name resolution
Im guessing thats linked to also me not being able to SSH into it: