* [PATCH] wayland-init: Allow setting idle time to 0
@ 2020-10-21 4:00 Alistair
2020-10-21 4:27 ` [oe] " Otavio Salvador
2020-10-22 0:27 ` Khem Raj
0 siblings, 2 replies; 3+ messages in thread
From: Alistair @ 2020-10-21 4:00 UTC (permalink / raw)
To: openembedded-devel; +Cc: Alistair Francis
Add a PACKAGECONFIG that can be used to set the idle-time to 0. This is
useful for always on machine (such as kiosks) and for debugging.
Signed-off-by: Alistair Francis <alistair@alistair23.me>
---
meta/recipes-graphics/wayland/weston-init.bb | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/meta/recipes-graphics/wayland/weston-init.bb b/meta/recipes-graphics/wayland/weston-init.bb
index 07cec75fb3..b7a99be646 100644
--- a/meta/recipes-graphics/wayland/weston-init.bb
+++ b/meta/recipes-graphics/wayland/weston-init.bb
@@ -15,6 +15,10 @@ SRC_URI = "file://init \
S = "${WORKDIR}"
+PACKAGECONFIG ??= ""
+
+PACKAGECONFIG[no-idle-timeout] = ",,"
+
DEFAULTBACKEND ??= ""
DEFAULTBACKEND_qemuall ?= "fbdev"
DEFAULTBACKEND_qemuarm64 = "drm"
@@ -45,6 +49,10 @@ do_install() {
if [ -n "${DEFAULTBACKEND}" ]; then
sed -i -e "/^\[core\]/a backend=${DEFAULTBACKEND}-backend.so" ${D}${sysconfdir}/xdg/weston/weston.ini
fi
+
+ if [ "${@bb.utils.contains('PACKAGECONFIG', 'no-idle-timeout', 'yes', 'no', d)}" = "yes" ]; then
+ echo "idle-time=0" >> ${D}${sysconfdir}/xdg/weston/weston.ini
+ fi
}
inherit update-rc.d features_check systemd
--
2.28.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [oe] [PATCH] wayland-init: Allow setting idle time to 0
2020-10-21 4:00 [PATCH] wayland-init: Allow setting idle time to 0 Alistair
@ 2020-10-21 4:27 ` Otavio Salvador
2020-10-22 0:27 ` Khem Raj
1 sibling, 0 replies; 3+ messages in thread
From: Otavio Salvador @ 2020-10-21 4:27 UTC (permalink / raw)
To: Alistair; +Cc: OpenEmbedded Devel List
Em qua., 21 de out. de 2020 às 01:00, Alistair
<alistair@alistair23.me> escreveu:
>
> Add a PACKAGECONFIG that can be used to set the idle-time to 0. This is
> useful for always on machine (such as kiosks) and for debugging.
>
> Signed-off-by: Alistair Francis <alistair@alistair23.me>
Please use the proper recipe name, it is weston-init.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [oe] [PATCH] wayland-init: Allow setting idle time to 0
2020-10-21 4:00 [PATCH] wayland-init: Allow setting idle time to 0 Alistair
2020-10-21 4:27 ` [oe] " Otavio Salvador
@ 2020-10-22 0:27 ` Khem Raj
1 sibling, 0 replies; 3+ messages in thread
From: Khem Raj @ 2020-10-22 0:27 UTC (permalink / raw)
To: Alistair; +Cc: openembeded-devel
do you intend this for oe-core? if so then the mailing list its sent
to should be oe-core ml
On Tue, Oct 20, 2020 at 9:01 PM Alistair <alistair@alistair23.me> wrote:
>
> Add a PACKAGECONFIG that can be used to set the idle-time to 0. This is
> useful for always on machine (such as kiosks) and for debugging.
>
> Signed-off-by: Alistair Francis <alistair@alistair23.me>
> ---
> meta/recipes-graphics/wayland/weston-init.bb | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/meta/recipes-graphics/wayland/weston-init.bb b/meta/recipes-graphics/wayland/weston-init.bb
> index 07cec75fb3..b7a99be646 100644
> --- a/meta/recipes-graphics/wayland/weston-init.bb
> +++ b/meta/recipes-graphics/wayland/weston-init.bb
> @@ -15,6 +15,10 @@ SRC_URI = "file://init \
>
> S = "${WORKDIR}"
>
> +PACKAGECONFIG ??= ""
> +
> +PACKAGECONFIG[no-idle-timeout] = ",,"
> +
> DEFAULTBACKEND ??= ""
> DEFAULTBACKEND_qemuall ?= "fbdev"
> DEFAULTBACKEND_qemuarm64 = "drm"
> @@ -45,6 +49,10 @@ do_install() {
> if [ -n "${DEFAULTBACKEND}" ]; then
> sed -i -e "/^\[core\]/a backend=${DEFAULTBACKEND}-backend.so" ${D}${sysconfdir}/xdg/weston/weston.ini
> fi
> +
> + if [ "${@bb.utils.contains('PACKAGECONFIG', 'no-idle-timeout', 'yes', 'no', d)}" = "yes" ]; then
> + echo "idle-time=0" >> ${D}${sysconfdir}/xdg/weston/weston.ini
> + fi
> }
>
> inherit update-rc.d features_check systemd
> --
> 2.28.0
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-10-22 0:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-21 4:00 [PATCH] wayland-init: Allow setting idle time to 0 Alistair
2020-10-21 4:27 ` [oe] " Otavio Salvador
2020-10-22 0:27 ` Khem Raj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.