Skip to content

Commit

Permalink
psplash: Add udev rule notify systemd of available fb
Browse files Browse the repository at this point in the history
When using psplash in combination with systemd the splash screen is not
shown. The dependency to sys-devices-platform-gpu-graphics-fb0.device
will terminate psplash-start.service because systemd is not aware of the
framebuffer device node.
See https://lists.yoctoproject.org/g/yocto/topic/91286438#57156

Adding a udev rule to notify systemd
  • Loading branch information
Kiwi4Inovex committed Jan 26, 2024
1 parent 9c901bf commit fbcbc04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions recipes-core/psplash/files/fb.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SUBSYSTEM=="graphics", KERNEL=="fb0", TAG+="systemd"
7 changes: 6 additions & 1 deletion recipes-core/psplash/psplash_%.bbappend
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SPLASH_IMAGES:rpi = "file://psplash-raspberrypi-img.h;outsuffix=raspberrypi"

SRC_URI:append:rpi = " file://framebuf.conf"
SRC_URI:append:rpi = " \
file://framebuf.conf \
file://fb.rules \
"

do_install:append:rpi() {
if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then
install -Dm 0644 ${WORKDIR}/framebuf.conf ${D}${systemd_system_unitdir}/psplash-start.service.d/framebuf.conf
install -d ${D}${sysconfdir}/udev/rules.d
install -m 0644 ${WORKDIR}/fb.rules ${D}${sysconfdir}/udev/rules.d/
fi
}

Expand Down

0 comments on commit fbcbc04

Please sign in to comment.