summaryrefslogtreecommitdiffstats
path: root/include/video
diff options
context:
space:
mode:
authorBernie Thompson <bernie@plugable.com>2011-08-21 13:34:11 -0700
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2011-08-24 10:07:59 +0000
commit58e7c3b00114c48e0879e9fbafd37e0e0c2402cb (patch)
tree372fa4a8702694cc50ba609c6a650c65d8812a18 /include/video
parent3c470f33e6a1df1398143c1f3dd619f675602472 (diff)
downloadlinux-58e7c3b00114c48e0879e9fbafd37e0e0c2402cb.tar.gz
linux-58e7c3b00114c48e0879e9fbafd37e0e0c2402cb.tar.bz2
linux-58e7c3b00114c48e0879e9fbafd37e0e0c2402cb.zip
udlfb: add more comprehensive support for DPMS FB_BLANK_* modes
Fixes earlier problems where monitor would not return from blank Test with any DisplayLink-based USB 2.0 graphics adapter sudo nano /sys/class/graphics/fb?/blank and write out single digit FB_BLANK_* code from include/linux/fb.h Supports on (0), blank (1), suspend (2,3), powerdown (4) Signed-off-by: Bernie Thompson <bernie@plugable.com> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'include/video')
-rw-r--r--include/video/udlfb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/video/udlfb.h b/include/video/udlfb.h
index 69d485a4a026..c41f308c9636 100644
--- a/include/video/udlfb.h
+++ b/include/video/udlfb.h
@@ -50,6 +50,7 @@ struct dlfb_data {
int base16;
int base8;
u32 pseudo_palette[256];
+ int blank_mode; /*one of FB_BLANK_ */
/* blit-only rendering path metrics, exposed through sysfs */
atomic_t bytes_rendered; /* raw pixel-bytes driver asked to render */
atomic_t bytes_identical; /* saved effort with backbuffer comparison */