updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / uswsusp-fbsplash / s2ram-chvt63.patch
blobda48dc55fac070d71b85d65d6b08661ebab232fd
1 --- src.orig/suspend-utils-1.0/s2ram-main.c 2011-03-07 00:24:15.000000000 +0100
2 +++ src//suspend-utils-1.0/s2ram-main.c 2011-03-09 18:02:32.922290700 +0100
3 @@ -93,10 +93,11 @@
4 if (ret)
5 goto out;
7 - /* switch to console 1 first, since we might be in X */
8 + /* switch to console 63 first, since we might be in X,
9 + * but don't want to see the console first */
10 active_console = fgconsole();
11 - printf("switching from vt%d to vt1... ", active_console);
12 - if (chvt(1))
13 + printf("switching from vt%d to vt63... ", active_console);
14 + if (chvt(63))
15 printf("succeeded\n");
16 else
17 printf("failed\n");