[Gta04-owner] [PATCH] OMAP: DSS: DPI: disable vt-switch on suspend/resume.

NeilBrown neilb at suse.de
Wed Feb 25 10:37:08 CET 2015

These devices do not need to return to non-graphic console
for suspend, so disable that option.
This means there is less work to do in the suspend/resume cycle,
making it smoother and cheaper.

Signed-off-by: NeilBrown <neil at brown.name>

Hi Tomi,
 I wonder if you would consider this patch too.  It works for me and
removes pointless vt switching.  I assume no-one would need or want that
switching on suspend/resume but I guess I cannot be certain.

Maybe a module-parameter could be used if there was any uncertainty.


diff --git a/drivers/video/fbdev/omap2/dss/dpi.c b/drivers/video/fbdev/omap2/dss/dpi.c
index f83e7b030249..4a29bab4ade3 100644
--- a/drivers/video/fbdev/omap2/dss/dpi.c
+++ b/drivers/video/fbdev/omap2/dss/dpi.c
@@ -32,6 +32,7 @@
 #include <linux/string.h>
 #include <linux/of.h>
 #include <linux/clk.h>
+#include <linux/suspend.h>
 #include <video/omapdss.h>
@@ -798,6 +799,8 @@ static int omap_dpi_probe(struct platform_device *pdev)
+	/* No need to vt_switch in suspend/resume */
+	pm_set_vt_switch(0);
 	return 0;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 811 bytes
Desc: OpenPGP digital signature
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20150225/179755d5/attachment.asc>

More information about the Gta04-owner mailing list