summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Gilling <konkers@android.com>2011-09-19 10:21:16 -0700
committerErik Gilling <konkers@android.com>2011-09-19 10:21:25 -0700
commitdb1cf523ed35a44e6721570c8a7e11c63d092686 (patch)
tree9d3f45bcc0a62b568e58ea3daf06262b2c1a656c
parent348e4eaaf2f88810f2a3c55fd1b0df540a5104ed (diff)
downloadhardware_ti_omap4xxx-db1cf523ed35a44e6721570c8a7e11c63d092686.zip
hardware_ti_omap4xxx-db1cf523ed35a44e6721570c8a7e11c63d092686.tar.gz
hardware_ti_omap4xxx-db1cf523ed35a44e6721570c8a7e11c63d092686.tar.bz2
hwc: blank and unblank screen on open
Change-Id: Ib6c1ce8183a2dcd4aef3bf03e075766efafd1435 Signed-off-by: Erik Gilling <konkers@android.com>
-rw-r--r--hwc/hwc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/hwc/hwc.c b/hwc/hwc.c
index feab887..f01b3dc 100644
--- a/hwc/hwc.c
+++ b/hwc/hwc.c
@@ -1305,6 +1305,17 @@ static int omap4_hwc_device_open(const hw_module_t* module, const char* name,
goto done;
}
+ /* blank and unblnk fd to make sure display is proppery programmed on boot
+ * this is needed because the bootloader can not be trusted
+ */
+ ret = ioctl(hwc_dev->fb_fd, FBIOBLANK, FB_BLANK_POWERDOWN);
+ if (ret)
+ LOGW("failed to blank disolay");
+
+ ret = ioctl(hwc_dev->fb_fd, FBIOBLANK, FB_BLANK_UNBLANK);
+ if (ret)
+ LOGW("failed to blank disolay");
+
/* get debug properties */
/* see if hwc is enabled at all */