Permalink
Browse files

HACK: block fbearlysuspend to not break androids crt-off animation

  • Loading branch information...
1 parent 781c0f1 commit 7dfa557a301e07c91793727623f99f5b0d9cbf19 @codeworkx codeworkx committed Jul 23, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 kernel/power/fbearlysuspend.c
@@ -13,6 +13,7 @@
*
*/
+#include <linux/delay.h>
#include <linux/earlysuspend.h>
#include <linux/module.h>
#include <linux/wait.h>
@@ -33,6 +34,10 @@ static void stop_drawing_early_suspend(struct early_suspend *h)
int ret;
unsigned long irq_flags;
+ /* FIXME: earlysuspend breaks androids CRT-off animation
+ * Sleep a little bit to get it played properly */
+ msleep(500);
+
spin_lock_irqsave(&fb_state_lock, irq_flags);
fb_state = FB_STATE_REQUEST_STOP_DRAWING;
spin_unlock_irqrestore(&fb_state_lock, irq_flags);

0 comments on commit 7dfa557

Please sign in to comment.