updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / uswsusp-fbsplash / s2disk-no-chvt1.patch
blobffc0c51491b61c77d1d07bb0b4eb59a7e2374011
1 diff -ru src.orig/suspend-utils-1.0/fbsplash_funcs.c src//suspend-utils-1.0/fbsplash_funcs.c
2 --- src.orig/suspend-utils-1.0/fbsplash_funcs.c 2011-03-07 00:24:15.000000000 +0100
3 +++ src//suspend-utils-1.0/fbsplash_funcs.c 2011-03-09 18:08:08.685624046 +0100
4 @@ -109,8 +109,10 @@
6 fbsplashr_tty_silent_cleanup();
8 +/* avoid switching to ugly tty1
9 if (!was_silent && fbsplash_is_silent())
10 fbsplash_set_verbose(0);
11 +*/
13 fbsplashr_theme_free(theme);
14 theme = NULL;
15 diff -ru src.orig/suspend-utils-1.0/suspend.c src//suspend-utils-1.0/suspend.c
16 --- src.orig/suspend-utils-1.0/suspend.c 2011-03-07 00:24:15.000000000 +0100
17 +++ src//suspend-utils-1.0/suspend.c 2011-03-09 18:14:27.518957363 +0100
18 @@ -1839,11 +1839,13 @@
19 if (fd < 0)
20 return fd;
22 +/* avoid switching to ugly tty1 - allways switch to unused vt and clear
23 tiocl[0] = TIOCL_GETKMSGREDIRECT;
24 if (!ioctl(fd, TIOCLINUX, tiocl)) {
25 if (tiocl[0] > 0)
26 vt = tiocl[0];
28 +*/
30 clear_vt = 0;
31 error = ioctl(fd, VT_GETSTATE, &vtstat);