Skip to contentSkip to conversation

psplash: delay the psplash service

PATCH In review Wentao Zhang 2 participants 2 messages Nov 8, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 psplash: delay the psplash service

psplash starts too early to open /dev/fb0 correctly on some types of machines.
Starting this service until /dev/fb0 is found.

---
 meta/recipes-core/psplash/files/psplash-start.service | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-core/psplash/files/psplash-start.service +2 -0
index 36c2bb38e0..555ad5e387 100644
@@ -7,6 +7,8 @@ RequiresMountsFor=/run
 Type=notify
 ExecStart=/usr/bin/psplash
 RemainAfterExit=yes
+ExecStartPre=bash -c "while [ ! -e /dev/fb0 ]; do sleep 0.01; done"
+TimeoutStartSec=100
 
 [Install]
 WantedBy=sysinit.target
Signature · 1 line
2.25.1
#1 lore raw

Hi,

Quoted 14 lines · Wentao Zhang

psplash starts too early to open /dev/fb0 correctly on some types of machines.
Starting this service until /dev/fb0 is found.

---
 meta/recipes-core/psplash/files/psplash-start.service | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-core/psplash/files/psplash-start.service +0 -0
index 36c2bb38e0..555ad5e387 100644

meta/recipes-core/psplash/files/psplash-start.service RequiresMountsFor=/run · line 11

Quoted 5 lines
meta/recipes-core/psplash/files/psplash-start.service +2 -0
@@ -7,6 +7,8 @@ RequiresMountsFor=/run
 Type=notify
 ExecStart=/usr/bin/psplash
 RemainAfterExit=yes
+ExecStartPre=bash -c "while [ ! -e /dev/fb0 ]; do sleep 0.01; done"
+TimeoutStartSec=100

This isn't correct with systemd. If a .service depends on a device node, just express the dependency:

Requires=dev-fb0.device
After=dev-fb0.device

Cheers,

-Mikko

Quoted 15 lines
meta/recipes-core/psplash/files/psplash-start.service +0 -0
 [Install]
 WantedBy=sysinit.target
Signature · 11 lines
2.25.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#99488): https://lists.openembedded.org/g/openembedded-devel/message/99488
Mute This Topic: https://lists.openembedded.org/mt/94886380/7159507
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-