]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: force mode set at lid open time
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 10 Sep 2009 22:28:03 +0000 (15:28 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 10 Sep 2009 23:10:00 +0000 (16:10 -0700)
commitb67e986c0dc3f4e812ad1b326be338aa25ac2119
treecac0b3068c8c85319f54d8ca8f43af040a6666c9
parentacc6fe923b31c5f209ad16108cace7296c6d384f
drm/i915: force mode set at lid open time

Some laptop platforms will disable pipes and/or planes at lid close time
and not restore them when the lid is opened again.  So catch the lid
event, and if the lid was opened, force a mode restore.

Fixes fdo bug #21230.

Acked-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/Kconfig
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_lvds.c