Merge pull request #412 from MilhouseVH/fbset_fix

splash: Stop blanking splash too early in RPi boot sequence (RFC)
This commit is contained in:
CvH 2016-06-15 09:05:59 +02:00 committed by GitHub
commit 9077103550
3 changed files with 15 additions and 11 deletions

View File

@ -94,6 +94,5 @@ makeinstall_target() {
} }
post_install() { post_install() {
enable_service fbset.service
enable_service unbind-console.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)
{