Skip to contentSkip to conversation

weston: install weston.ini to disable idle timeout

PATCH Applied Gary Bisson 2 participants 2 messages Sep 12, 2018 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 weston: install weston.ini to disable idle timeout

In order to get the same behavior as meta-fsl-bsp-release (see weston_4.0.0.bbappend).

---
Hi,

This proved to be better not to have the display going to sleep all the time. Also having the same behavior as NXP BSP to that regard makes sense.

Let me know if you have any remark about it.

Regards,
Gary

---
 recipes-graphics/wayland/weston_4.0.0.imx.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
recipes-graphics/wayland/weston_4.0.0.imx.bb +5 -1
index 7a2aab60..372a0be3 100644
@@ -109,12 +109,16 @@ do_install_append() {
 	if [ "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', 'yes', 'no', d)}" = "yes" ]; then
 		install -Dm 644 ${WORKDIR}/xwayland.weston-start ${D}${datadir}/weston-start/xwayland
 	fi
+
+	# install default weston.ini
+	install -d ${D}${sysconfdir}/xdg/weston
+	install -m 0644 ${B}/weston.ini ${D}${sysconfdir}/xdg/weston
 }
 
 PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', '${PN}-xwayland', '', d)} \
              libweston-${WESTON_MAJOR_VERSION} ${PN}-examples"
 
-FILES_${PN} = "${bindir}/weston ${bindir}/weston-terminal ${bindir}/weston-info ${bindir}/weston-launch ${bindir}/wcap-decode ${libexecdir} ${libdir}/${BPN}/*.so ${datadir}"
+FILES_${PN} = "${bindir}/weston ${bindir}/weston-terminal ${bindir}/weston-info ${bindir}/weston-launch ${bindir}/wcap-decode ${libexecdir} ${libdir}/${BPN}/*.so ${datadir} ${sysconfdir}/xdg/weston"
 
 FILES_libweston-${WESTON_MAJOR_VERSION} = "${libdir}/lib*${SOLIBS} ${libdir}/libweston-${WESTON_MAJOR_VERSION}/*.so"
 SUMMARY_libweston-${WESTON_MAJOR_VERSION} = "Helper library for implementing 'wayland window managers'."
Signature · 1 line
2.18.0
#1 lore raw
Quoted 5 lines · Gary Bisson

In order to get the same behavior as meta-fsl-bsp-release (see weston_4.0.0.bbappend).

Applied.

Signature · 3 lines
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