diff options
author | Rob Clark <robdclark@gmail.com> | 2012-10-07 08:30:31 -0500 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2012-10-07 08:30:31 -0500 |
commit | 7cb364856cbeca22931f1b7d9d0781200440c9b8 (patch) | |
tree | 4ebe2e9ed2e1b6ededa6dd72e05c27e4908595a9 | |
parent | c174fc90ad4699660fbeac0048cc2d4560e6366e (diff) |
driver: hack to make sure backlight gets enabled
The msm fbdev driver is made of fail. It forgets to enable the
backlight. Panning the display is enough to kick it so that we
can actually see what is on the screen.
-rw-r--r-- | src/msm-driver.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/msm-driver.c b/src/msm-driver.c index d99abfa..c296447 100644 --- a/src/msm-driver.c +++ b/src/msm-driver.c @@ -393,6 +393,15 @@ MSMPreInit(ScrnInfoPtr pScrn, int flags) return FALSE; } + /* msm-fb is made of fail.. need to pan otherwise backlight + * driver doesn't get kicked and we end up with backlight off. + * Makes perfect sense. + */ + pMsm->mode_info.yoffset = 1; + if (ioctl(pMsm->fd, FBIOPAN_DISPLAY, &pMsm->mode_info)) { + ERROR_MSG("could not pan on %s: %s", dev, strerror(errno)); + } + switch(pMsm->mode_info.bits_per_pixel) { case 16: depth = 16; |