diff --git a/packages/lakka/lakka_tools/cec_mini_kb/package.mk b/packages/lakka/lakka_tools/cec_mini_kb/package.mk index adfb59ea951..031040307af 100644 --- a/packages/lakka/lakka_tools/cec_mini_kb/package.mk +++ b/packages/lakka/lakka_tools/cec_mini_kb/package.mk @@ -2,7 +2,7 @@ # 2021 Giovanni Cascione PKG_NAME="cec_mini_kb" -PKG_VERSION="be4289751bd80470c33847073a790b83356696db" +PKG_VERSION="fea75efa52e73b1fc70750e308b153cfba84696f" PKG_LICENSE="GPLv3" PKG_SITE="https://github.com/spleen1981/cec-mini-kb" PKG_URL="${PKG_SITE}/archive/${PKG_VERSION}.tar.gz" diff --git a/packages/lakka/lakka_tools/cec_mini_kb/system.d/cec-mini-kb.service b/packages/lakka/lakka_tools/cec_mini_kb/system.d/cec-mini-kb.service index 44d7a860958..73bafc588d7 100644 --- a/packages/lakka/lakka_tools/cec_mini_kb/system.d/cec-mini-kb.service +++ b/packages/lakka/lakka_tools/cec_mini_kb/system.d/cec-mini-kb.service @@ -1,11 +1,11 @@ [Unit] Description=cec-mini-kb -DefaultDependencies=no +After=retroarch.service +Requires=retroarch.service [Service] ExecStart=/usr/bin/cec-mini-kb --poweroff "shutdown -P now" -Restart=always -RestartSec=2 +Restart=no [Install] -WantedBy=multi-user.target +WantedBy=retroarch.service diff --git a/packages/lakka/retroarch_base/retroarch/patches/retroarch-999-notify-initialize-complete-to-systemd.patch b/packages/lakka/retroarch_base/retroarch/patches/retroarch-999-notify-initialize-complete-to-systemd.patch new file mode 100644 index 00000000000..a08d1e97fd8 --- /dev/null +++ b/packages/lakka/retroarch_base/retroarch/patches/retroarch-999-notify-initialize-complete-to-systemd.patch @@ -0,0 +1,34 @@ +diff --git a/Makefile.common b/Makefile.common +index 2a715f4786..cd2f49518b 100644 +--- a/Makefile.common ++++ b/Makefile.common +@@ -788,6 +788,7 @@ endif + ifeq ($(HAVE_LAKKA), 1) + OBJ += network/drivers_wifi/connmanctl.o + OBJ += misc/cpufreq/cpufreq.o ++ LIBS += -lsystemd + endif + + ifeq ($(HAVE_WIFI), 1) +diff --git a/retroarch.c b/retroarch.c +index 8137c2e358..3c766dd6cb 100644 +--- a/retroarch.c ++++ b/retroarch.c +@@ -215,6 +215,7 @@ + + #ifdef HAVE_LAKKA + #include "lakka.h" ++#include + #endif + + #define _PSUPP(var, name, desc) printf(" %s:\n\t\t%s: %s\n", name, desc, var ? "yes" : "no") +@@ -5933,6 +5934,9 @@ int rarch_main(int argc, char *argv[], void *data) + #if HAVE_CLOUDSYNC + task_push_cloud_sync(); + #endif ++#ifdef HAVE_LAKKA ++ sd_notify(0, "READY=1"); ++#endif + #if !defined(HAVE_MAIN) || defined(HAVE_QT) + for (;;) + { diff --git a/packages/lakka/retroarch_base/retroarch/system.d/retroarch.service b/packages/lakka/retroarch_base/retroarch/system.d/retroarch.service index 523283812bf..f98ef5dd5a3 100644 --- a/packages/lakka/retroarch_base/retroarch/system.d/retroarch.service +++ b/packages/lakka/retroarch_base/retroarch/system.d/retroarch.service @@ -16,6 +16,7 @@ TimeoutStopSec=10 Restart=always RestartSec=2 StartLimitInterval=0 +Type=notify [Install] WantedBy=retroarch.target