weston-init: Pass --continue-without-input when launching weston

Message ID 20211127092239.4144840-1-raj.khem@gmail.com
State Accepted, archived
Commit 762a20b493cc219a46d9ac188fe4895a111ee7b4
Headers show
Series weston-init: Pass --continue-without-input when launching weston | expand

Commit Message

Khem Raj Nov. 27, 2021, 9:22 a.m. UTC
This ensures that we do not need keyboard/mouse or other input system
Weston's default behavior is to not open if input devices are not
found, but we may not always have input devices connected for systems
running weston in field

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-graphics/wayland/weston-init/init           | 2 +-
 meta/recipes-graphics/wayland/weston-init/weston.service | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Khem Raj Nov. 29, 2021, 4:07 a.m. UTC | #1
hold on to this one, since this option needs to be passed selectively
only when drm backend is being used.

On Sat, Nov 27, 2021 at 1:22 AM Khem Raj <raj.khem@gmail.com> wrote:
>
> This ensures that we do not need keyboard/mouse or other input system
> Weston's default behavior is to not open if input devices are not
> found, but we may not always have input devices connected for systems
> running weston in field
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  meta/recipes-graphics/wayland/weston-init/init           | 2 +-
>  meta/recipes-graphics/wayland/weston-init/weston.service | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-graphics/wayland/weston-init/init b/meta/recipes-graphics/wayland/weston-init/init
> index a849f29bcbd..f74ac8b1846 100644
> --- a/meta/recipes-graphics/wayland/weston-init/init
> +++ b/meta/recipes-graphics/wayland/weston-init/init
> @@ -32,7 +32,7 @@ case "$1" in
>          . /etc/profile
>         export HOME=ROOTHOME
>
> -        weston-start -- $OPTARGS
> +        weston-start -- --continue-without-input $OPTARGS
>    ;;
>
>    stop)
> diff --git a/meta/recipes-graphics/wayland/weston-init/weston.service b/meta/recipes-graphics/wayland/weston-init/weston.service
> index e09625b31c6..c7583e92e6e 100644
> --- a/meta/recipes-graphics/wayland/weston-init/weston.service
> +++ b/meta/recipes-graphics/wayland/weston-init/weston.service
> @@ -34,7 +34,7 @@ ConditionPathExists=/dev/tty0
>  # Requires systemd-notify.so Weston plugin.
>  Type=notify
>  EnvironmentFile=/etc/default/weston
> -ExecStart=/usr/bin/weston --modules=systemd-notify.so
> +ExecStart=/usr/bin/weston --continue-without-input --modules=systemd-notify.so
>
>  # Optional watchdog setup
>  TimeoutStartSec=60
> --
> 2.34.1
>

Patch

diff --git a/meta/recipes-graphics/wayland/weston-init/init b/meta/recipes-graphics/wayland/weston-init/init
index a849f29bcbd..f74ac8b1846 100644
--- a/meta/recipes-graphics/wayland/weston-init/init
+++ b/meta/recipes-graphics/wayland/weston-init/init
@@ -32,7 +32,7 @@  case "$1" in
         . /etc/profile
 	export HOME=ROOTHOME
 
-        weston-start -- $OPTARGS
+        weston-start -- --continue-without-input $OPTARGS
   ;;
 
   stop)
diff --git a/meta/recipes-graphics/wayland/weston-init/weston.service b/meta/recipes-graphics/wayland/weston-init/weston.service
index e09625b31c6..c7583e92e6e 100644
--- a/meta/recipes-graphics/wayland/weston-init/weston.service
+++ b/meta/recipes-graphics/wayland/weston-init/weston.service
@@ -34,7 +34,7 @@  ConditionPathExists=/dev/tty0
 # Requires systemd-notify.so Weston plugin.
 Type=notify
 EnvironmentFile=/etc/default/weston
-ExecStart=/usr/bin/weston --modules=systemd-notify.so
+ExecStart=/usr/bin/weston --continue-without-input --modules=systemd-notify.so
 
 # Optional watchdog setup
 TimeoutStartSec=60