nerves-web-kiosk / webengine_kiosk

Qt WebEngine-based kiosk
Other
74 stars 14 forks source link

RPi4 run failed #24

Open zhulinpinyu opened 4 years ago

zhulinpinyu commented 4 years ago

when I run webengine_kiosk with nerves_system_rpi4 get following error:

02:46:37.736 [error] webengine_kiosk: unexpected exit from port: 127

02:46:37.737 [error] GenServer Display terminating
** (stop) :unexpected_exit
Last message: {#Port<0.72>, {:exit_status, 127}}
State: %{homepage: "http://0.0.0.0:4000", port: #Port<0.72>}

usage

config:

...
BR2_PACKAGE_QT5=y
BR2_PACKAGE_QT5BASE_SQLITE_SYSTEM=y
BR2_PACKAGE_QT5BASE_LINUXFB=y
BR2_PACKAGE_QT5BASE_DEFAULT_QPA="eglfs"
BR2_PACKAGE_QT5BASE_GIF=y
BR2_PACKAGE_QT5BASE_PNG=y
BR2_PACKAGE_QT5MULTIMEDIA=y
BR2_PACKAGE_QT5WEBENGINE=y
BR2_PACKAGE_QT5WEBENGINE_PROPRIETARY_CODECS=y
BR2_PACKAGE_QT5WEBENGINE_ALSA=y
...
config :webengine_kiosk,
  uid: "kiosk",
  gid: "kiosk",
  data_dir: "/root/kiosk",
  homepage: "http://0.0.0.0:4000"
{WebengineKiosk, {Application.get_all_env(:webengine_kiosk), [name: Display]}},
fhunleth commented 4 years ago

The Raspberry Pi 4's video output doesn't work with Nerves. I did some work at https://github.com/fhunleth/kiosk_system_rpi4/pull/1 that might be of interest. The upstream repository is https://github.com/LeToteTeam/kiosk_system_rpi4.