https://bugzilla.novell.com/show_bug.cgi?id=404619
User jon.novell@alcopop.org added comment
https://bugzilla.novell.com/show_bug.cgi?id=404619#c8
--- Comment #8 from Jon Dowland 2008-07-03 09:18:50 MDT ---
Is the following patch sufficient to disable the vt switching? I tried it and
it also did not work:
diff -ruN suspend-0.8/s2ram-main.c suspend-0.8-jmtd/s2ram-main.c
--- suspend-0.8/s2ram-main.c 2007-12-31 18:50:12.000000000 +0000
+++ suspend-0.8-jmtd/s2ram-main.c 2008-07-03 16:15:25.000000000 +0100
@@ -83,11 +83,12 @@
if (ret)
goto out;
-
+#if 0
/* switch to console 1 first, since we might be in X */
active_console = fgconsole();
printf("Switching from vt%d to vt1\n", active_console);
chvt(1);
+#endif
ret = s2ram_hacks();
if (ret)
@@ -96,11 +97,13 @@
s2ram_resume();
out:
+#if 0
/* if we switched consoles before suspend, switch back */
if (active_console > 0) {
printf("switching back to vt%d\n", active_console);
chvt(active_console);
}
+#endif
return ret;
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.