[cross-post] chromium-mir-kiosk in portrait mode (rotated mir-kiosk layout)


#21

see No mdns support in snaps (should core have a modified nsswitch.conf ?)

as long as this is not fixed, you can hack around it via a wrapper script like i do in:


#22

This is a great project and as stated should be highlighted more

I have a RPi3 B+ with a fresh install of ubuntu-18.04.2-preinstalled-server-armhf+raspi3

I have sudo snap install wpe-webkit-mir-kiosk but getting error messages about it being unable to find the wayland-0 compositor - I see in the readme that it’s hardcoded to /run/user/0/wayland-0 but I can’t quite grasp what’s required to get even a symlink in place, any pointers greatly appreciated?

ubuntu@ubuntu:~$ sudo snap logs wpe-webkit-mir-kiosk
2019-05-03T13:36:03Z systemd[1]: Started Service for snap application wpe-webkit-mir-kiosk.browser.
2019-05-03T13:36:03Z wpe-webkit-mir-kiosk.browser[2521]: mkdir: cannot create directory ‘/run/user/0’: Permission denied
2019-05-03T13:36:17Z wpe-webkit-mir-kiosk.browser[2521]: mkdir: cannot create directory ‘/run/user/0’: Permission denied
2019-05-03T13:36:17Z systemd[1]: snap.wpe-webkit-mir-kiosk.browser.service: Main process exited, code=exited, status=1/FAILURE
2019-05-03T13:36:17Z systemd[1]: snap.wpe-webkit-mir-kiosk.browser.service: Failed with result 'exit-code'.
2019-05-03T13:36:17Z systemd[1]: snap.wpe-webkit-mir-kiosk.browser.service: Service hold-off time over, scheduling restart.
2019-05-03T13:36:17Z systemd[1]: snap.wpe-webkit-mir-kiosk.browser.service: Scheduled restart job, restart counter is at 5.
2019-05-03T13:36:17Z systemd[1]: Stopped Service for snap application wpe-webkit-mir-kiosk.browser.
2019-05-03T13:36:17Z systemd[1]: Started Service for snap application wpe-webkit-mir-kiosk.browser.
2019-05-03T13:36:17Z wpe-webkit-mir-kiosk.browser[2694]: mkdir: cannot create directory ‘/run/user/0’: Permission denied

#23

Hi @ndrt, thanks for trying out the snap and for the compliments! My first guess would be that you didn’t install the mir-kiosk snap first, which provides the Wayland compositor.

Please try this:

  1. Install mir-kiosk from Canonical: sudo snap install mir-kiosk
  2. Restart WPE: sudo snap restart wpe-webkit-mir-kiosk
  3. If WPE still fails to start: Try a reboot :slight_smile:

Hope that resolves the issue!


#24

Hi Tobias,

I tried that but just got a flashing cursor so presumed was doing something wrong but having dug a little deeper I’ve got issues with mir, namely that it’s failing to start owing to a bug around KMS / DRM. There was a commit to fix: #733 but it seems either that’s incompatible with 18.04 and RPi3 B+ or something else. I’ll keep digging and post on the mir forum.

2019-05-07T11:27:11Z systemd[1]: Started Service for snap application mir-kiosk.mir-kiosk.
2019-05-07T11:27:12Z mir-kiosk.mir-kiosk[2682]: mkdir: cannot create directory ‘/run/user/0’: Permission denied
2019-05-07T11:27:12Z mir-kiosk.mir-kiosk[2682]: [2019-05-07 11:27:12.270992] mirserver: Starting
2019-05-07T11:27:12Z mir-kiosk.mir-kiosk[2682]: [2019-05-07 11:27:12.272760] <DEBUG> mirserver: Using Linux VT subsystem for session management
2019-05-07T11:27:12Z mir-kiosk.mir-kiosk[2682]: [2019-05-07 11:27:12.273872] mircommon: Loading modules from: /snap/mir-kiosk/1386/usr/lib/arm-linux-gnueabihf/mir/server-platform
2019-05-07T11:27:12Z mir-kiosk.mir-kiosk[2682]: [2019-05-07 11:27:12.274147] mircommon: Loading module: /snap/mir-kiosk/1386/usr/lib/arm-linux-gnueabihf/mir/server-platform/graphics-mesa-kms.so.16
2019-05-07T11:27:12Z mir-kiosk.mir-kiosk[2682]: [2019-05-07 11:27:12.274298] mircommon: Loading module: /snap/mir-kiosk/1386/usr/lib/arm-linux-gnueabihf/mir/server-platform/server-mesa-x11.so.16
2019-05-07T11:27:12Z mir-kiosk.mir-kiosk[2682]: [2019-05-07 11:27:12.274362] mircommon: Loading module: /snap/mir-kiosk/1386/usr/lib/arm-linux-gnueabihf/mir/server-platform/input-evdev.so.7
2019-05-07T11:27:12Z mir-kiosk.mir-kiosk[2682]: [2019-05-07 11:27:12.280834] mesa-kms: Unsupported: No DRM devices detected
2019-05-07T11:27:12Z mir-kiosk.mir-kiosk[2682]: [2019-05-07 11:27:12.281029] mirplatform: Found graphics driver: mir:mesa-kms (version 1.1.2) Support priority: 0
2019-05-07T11:27:12Z mir-kiosk.mir-kiosk[2682]: [2019-05-07 11:27:12.281128] mirplatform: Found graphics driver: mir:mesa-x11 (version 1.1.2) Support priority: 0
2019-05-07T11:27:12Z mir-kiosk.mir-kiosk[2682]: ERROR: /build/mir-eQgTJy/mir-1.1.2/src/server/graphics/default_configuration.cpp(172): Throw in function mir::DefaultServerConfiguration::the_graphics_platform()::<lambda()>
2019-05-07T11:27:12Z mir-kiosk.mir-kiosk[2682]: Dynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::runtime_error> >
2019-05-07T11:27:12Z mir-kiosk.mir-kiosk[2682]: std::exception::what: Exception while creating graphics platform
2019-05-07T11:27:12Z mir-kiosk.mir-kiosk[2682]: ERROR: /build/mir-eQgTJy/mir-1.1.2/src/platform/graphics/platform_probe.cpp(109): Throw in function std::shared_ptr<mir::SharedLibrary> mir::graphics::module_for_device(const std::vector<std::shared_ptr<mir::SharedLibrary> >&, const mir::options::ProgramOption&, const std::shared_ptr<mir::ConsoleServices>&)
2019-05-07T11:27:12Z mir-kiosk.mir-kiosk[2682]: Dynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::runtime_error> >
2019-05-07T11:27:12Z mir-kiosk.mir-kiosk[2682]: std::exception::what: Failed to find platform for current system
2019-05-07T11:27:12Z systemd[1]: snap.mir-kiosk.mir-kiosk.service: Main process exited, code=exited, status=1/FAILURE
2019-05-07T11:27:12Z systemd[1]: snap.mir-kiosk.mir-kiosk.service: Failed with result 'exit-code'.
2019-05-07T11:27:12Z systemd[1]: snap.mir-kiosk.mir-kiosk.service: Service hold-off time over, scheduling restart.
2019-05-07T11:27:12Z systemd[1]: snap.mir-kiosk.mir-kiosk.service: Scheduled restart job, restart counter is at 4.
2019-05-07T11:27:12Z systemd[1]: Stopped Service for snap application mir-kiosk.mir-kiosk.
2019-05-07T11:27:12Z systemd[1]: snap.mir-kiosk.mir-kiosk.service: Start request repeated too quickly.
2019-05-07T11:27:12Z systemd[1]: snap.mir-kiosk.mir-kiosk.service: Failed with result 'exit-code'.
2019-05-07T11:27:12Z systemd[1]: Failed to start Service for snap application mir-kiosk.mir-kiosk.