updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / uswsusp-fbsplash / s2disk-keep-vt16.patch
bloba88c9f7ed44878af416d77dbc0ecb78571042152
1 diff -ru src.orig//suspend-utils-1.0/suspend.c src//suspend-utils-1.0/suspend.c
2 --- src.orig//suspend-utils-1.0/suspend.c 2011-08-04 15:11:21.987197928 +0200
3 +++ src//suspend-utils-1.0/suspend.c 2011-08-04 15:12:29.263868275 +0200
4 @@ -1866,6 +1866,9 @@
5 fd = open(vt_name, O_RDWR);
6 if (fd < 0)
7 return fd;
8 +// If already on default Fbsplash VT, don't change away from it
9 +if (*orig_vc != 16)
11 error = ioctl(fd, VT_ACTIVATE, vt);
12 if (error) {
13 suspend_error("Could not activate the VT %d.", vt);
14 @@ -1878,6 +1881,7 @@
15 fflush(stderr);
16 goto Close_fd;
20 if (clear_vt) {
21 char *msg = "\33[H\33[J";