splash: Stop blanking splash too early in RPi boot sequence

This commit is contained in:
MilhouseVH 2016-06-04 00:06:53 +01:00
parent b4f3545fd7
commit 55fb6d6e74
3 changed files with 15 additions and 11 deletions

View File

@ -94,6 +94,5 @@ makeinstall_target() {
}
post_install() {
enable_service fbset.service
enable_service unbind-console.service
}

View File

@ -1,10 +0,0 @@
[Unit]
Description=Framebuffer setup
After=multi-user.target
[Service]
Type=oneshot
ExecStart=/sbin/fbset -g 1 1 1 1 32
[Install]
WantedBy=graphical.target

View File

@ -0,0 +1,15 @@
diff --git a/xbmc/XBApplicationEx.cpp b/xbmc/XBApplicationEx.cpp
index f6fffd8..6eeacf6 100644
--- a/xbmc/XBApplicationEx.cpp
+++ b/xbmc/XBApplicationEx.cpp
@@ -85,6 +85,10 @@ INT CXBApplicationEx::Run()
unsigned int frameTime = 0;
const unsigned int noRenderFrameTime = 15; // Simulates ~66fps
+#ifdef TARGET_RASPBERRY_PI
+ system("/sbin/fbset -g 1 1 1 1 32");
+#endif
+
// Run xbmc
while (!m_bStop)
{