From 300a9420bce2bcf4e0fffe30dae5cb0504e2cadb Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Fri, 2 Sep 2016 12:46:16 +0300 Subject: beaglebone: start qtlauncher only after /dev/fb0 exists Beaglebone creates /dev/fb0 late in the boot process, which causes Qt applications to crash if started too early. Make systemd notice fb0 creation and bind application startup to it. Change-Id: I0207fb64ec981eaeadbe497de5a9bdc941b6e31d Reviewed-by: Risto Avila Reviewed-by: Teemu Holappa --- recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/b2qt.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/b2qt.service (limited to 'recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/b2qt.service') diff --git a/recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/b2qt.service b/recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/b2qt.service new file mode 100644 index 0000000..cdf6480 --- /dev/null +++ b/recipes-qt/b2qt-addons/b2qt-launcher/beaglebone/b2qt.service @@ -0,0 +1,11 @@ +[Unit] +Description=B2Qt user application +BindsTo=dev-fb0.device +After=dev-fb0.device +ConditionPathExists=/usr/bin/b2qt + +[Service] +ExecStart=-/usr/bin/appcontroller /usr/bin/b2qt + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3-54-g00ecf