Skip to content

Commit

Permalink
ti-apps-launcher: wait for dev-dri-card1 before starting on eglfs
Browse files Browse the repository at this point in the history
On eglfs based systems, the ti-apps-launcher is starting before the
display and gpu cards are enumerated resulting in blank screen and
crashes. So add a udev rule for /dev/dri/card1 and wait for it before
starting apps on eglfs.

Signed-off-by: Sai Sree Kartheek Adivi <[email protected]>
Signed-off-by: Chirag Shilwant <[email protected]>
  • Loading branch information
sskartheekadivi authored and cshilwant committed Jul 23, 2024
1 parent 63bad66 commit 27f555f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
10 changes: 9 additions & 1 deletion recipes-demos/ti-apps-launcher/ti-apps-launcher.bb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PR = "r15"
PR = "r16"

DESCRIPTION = "ti-apps-launcher service"
HOMEPAGE = "https://github.com/TexasInstruments/ti-apps-launcher"
Expand All @@ -25,6 +25,7 @@ SRC_URI = " \
file://ti-apps-launcher-eglfs.service \
file://ti-apps-launcher-analytics.service \
file://ti-demo.service \
file://dev-dri-card1.rules \
file://Usage.md \
"

Expand Down Expand Up @@ -98,9 +99,16 @@ do_install:append() {
install -d ${D}${systemd_system_unitdir}
install -m 0755 ${WORKDIR}/ti-demo.service ${D}${systemd_system_unitdir}/ti-demo.service
fi

if [ "${SERVICE_SUFFIX}" == "-eglfs" ]; then
install -d ${D}${sysconfdir}/udev/rules.d
install -m 0644 ${WORKDIR}/dev-dri-card1.rules ${D}${sysconfdir}/udev/rules.d/
fi

}

FILES:${PN} += " \
${bindir}/${APP_NAME} \
/opt/${APP_NAME}/ \
${sysconfdir} \
"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENV{DEVNAME}=="/dev/dri/card1", TAG+="systemd"
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
[Unit]
Description=ti-apps-launcher service

Wants=dev-dri-card1.device
After=dev-dri-card1.device

[Service]
# Requires systemd-notify.so Weston plugin.
Type=simple
Expand Down

0 comments on commit 27f555f

Please sign in to comment.