weston sometime fails to start using systemd unit file
Vikas Patil
vikasmpatil at gmail.com
Wed Jan 11 05:25:34 UTC 2017
Hi Daniel,
Thanks a lot for your quick reply. See comments below.
On Tue, Jan 10, 2017 at 9:28 PM, Daniel Díaz Rodríguez <
daniel.diaz at linaro.org> wrote:
> Hello!
>
>
> On 10 January 2017 at 06:39, Vikas Patil <vikasmpatil at gmail.com> wrote:
> >> We are starting weston (1.9.0) using below systemd unit file of type
> notify
> >> (backported sd_notify related changes from weston 1.11.0 to weston
> 1.9.0).
> >> It works well with i.MX6 (NXP, fbdev backend) based platform, however
> with
> >> Jacinto (TI, drm backend) based platform sometimes it fails to start and
> >> sometime it works after reboot. It always works if we start weston
> service
> >> manually after platform boots up using “systemctl”.
> >> Is there anyone encountered this issue? Any suggestion/inputs to fix
> this?
>
> > We have seen this, as the DRM device is not readily available by the
> > time Weston launches. Our service unit is a bit different [1], but the
> > approach that proved most convenient was to use this udev rule to call
> > for Weston:
> > https://github.com/96boards/meta-96boards/blob/master/
> recipes-graphics/wayland/weston-init/71-weston-drm.rules
> <https://github.com/96boards/meta-96boards/blob/master/recipes-graphics/wayland/weston-init/71-weston-drm.rules>
I have tried this udev rule and unfortunately it didn't help. I have added
the rule in "/etc/udev/rules.d/localextra.rules" file on target. Then I
have another service as below to trigger it.
root at linux-1:~# cat /lib/systemd/system/udevd.service
[Unit]
Description=udevd service
DefaultDependencies=false
[Service]
Type=forking
ExecStart=/lib/systemd/systemd-udevd --daemon
ExecStartPost=/bin/udevadm test /sys/devices/platform/omapdrm.0/drm/card0
Attached here the weston log and service file when it fails. (what see is
, weston starts but within four or five seconds it stops)
How could I find what issue/problem it is having? Is there any more logs
from systemd I need to enable?
Regards,
Vikash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20170111/d0cc0cb7/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: weston.service
Type: application/octet-stream
Size: 676 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20170111/d0cc0cb7/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: weston_fail.log
Type: application/octet-stream
Size: 5566 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20170111/d0cc0cb7/attachment-0003.obj>
More information about the wayland-devel
mailing list