Weston fails if there are no input devices

Description

Hi,

Weston 1.9.0, built from the master branch of AGL, fails to start on Porter board if there is no input device attached (keyboard or mouse):

If I attach a keyboard Weston systemd service starts successfully but I have just a blank screen.

Weston version is 1.9.0. According to weston.ini desktop shell and DRM backend is being used.

The issue might be related to SPEC-223 as well as to an old issue in Weston which has been fixed in Dec 2014:
https://cgit.freedesktop.org/wayland/weston/commit/?id=f0aaa417

I have some experience from another project regarding the failing Weston if there are no input devices. There is very good article about that by Derek Foreman in Samsung OSG blog: https://blogs.s-osg.org/when-is-a-keyboard-not-a-keyboard/

Best regards, Leon

Environment

Renesas Porter Board rev 1.0

Activity

Show:
Leon Anavi
November 1, 2016 at 12:12 PM

This issue has been solved using a patch that skips the check and launches Weston 1.9 even if there are no input devices. The patch is applied through the corresponding Yocto/OE recipe.

Best regards, Leon

Leon Anavi
October 24, 2016 at 2:35 PM

Hi,

I have submitted a patch in which Weston 1.9 DRM does not exit even if there are no input devices:
https://gerrit.automotivelinux.org/gerrit/6871

I have tested it on Raspberry Pi 3 and I am to boot the board and Weston without any peripheral devices.

In the upstream of Weston there is a new feature to enable/disable launch without input devices but it will be released with Weston 1.13 and backporting to 1.9 is not so straight forward: https://cgit.freedesktop.org/wayland/weston/commit/?id=75b7197f4e072a4e2de124ddbe93b85cffb1c0f8

Best regards, Leon

Leon Anavi
October 24, 2016 at 11:30 AM

Hi,

Weston fails if there are no input devices due to a check from src/compositor-drm.c. I will provide a patch to skip this check because it is more convenient to start Weston for demo even if there are no input devices.

In the new releases of Weston, starting from 1.13, there is a setting in weston.ini to enable or disable launch without input devices:

Best regards, Leon

Leon Anavi
October 24, 2016 at 10:05 AM

Hi,

I have experienced the same issue on Raspberry Pi 3. Weston 1.9 fails to start if there are no input devices such as a keyboard or a mouse.

Best regards, Leon

Fixed

Details

Assignee

Reporter

Priority

Created October 19, 2016 at 4:07 PM
Updated October 10, 2017 at 1:06 PM
Resolved November 1, 2016 at 12:12 PM