diff options
author | Ange Kevin Amlaman | 2020-07-30 04:21:24 +0000 |
---|---|---|
committer | Ange Kevin Amlaman | 2020-07-30 04:21:24 +0000 |
commit | 82db91a22e73d03116b35d6efe0a302d76265e06 (patch) | |
tree | dd0c2eb519b06031487d9a1181cab3fe47114b45 /0013-bootsplash.patch | |
parent | 6e2e67672f4260f7193da5e4b31cdb2ead42ad4d (diff) | |
download | aur-82db91a22e73d03116b35d6efe0a302d76265e06.tar.gz |
updated to 5.7.10
Diffstat (limited to '0013-bootsplash.patch')
-rw-r--r--[-rwxr-xr-x] | 0013-bootsplash.patch | 57 |
1 files changed, 18 insertions, 39 deletions
diff --git a/0013-bootsplash.patch b/0013-bootsplash.patch index e8cd479312be..add68e7b275c 100755..100644 --- a/0013-bootsplash.patch +++ b/0013-bootsplash.patch @@ -1,42 +1,21 @@ -diff --git a/drivers/tty/vt/keyboard.c b/drivers/tty/vt/keyboard.c -index f4166263bb3a..a248429194bb 100644 ---- a/drivers/tty/vt/keyboard.c -+++ b/drivers/tty/vt/keyboard.c -@@ -47,6 +47,8 @@ +diff --git a/drivers/video/fbdev/core/fbcon.c b/drivers/video/fbdev/core/fbcon.c +index 9a39a6fcfe98..8a9c67e1c5d8 100644 +--- a/drivers/video/fbdev/core/fbcon.c ++++ b/drivers/video/fbdev/core/fbcon.c +@@ -1343,6 +1343,16 @@ static void fbcon_cursor(struct vc_data *vc, int mode) + int y; + int c = scr_readw((u16 *) vc->vc_pos); - #include <asm/irq_regs.h> - -+#include <linux/bootsplash.h> ++ /* ++ * Disable the splash here so we don't have to hook into ++ * vt_console_print() in drivers/tty/vt/vt.c ++ * ++ * We'd disable the splash just before the call to ++ * hide_cursor() anyway, so this spot is just fine. ++ */ ++ if (oops_in_progress) ++ bootsplash_disable(); + - extern void ctrl_alt_del(void); - - /* -@@ -1353,6 +1355,28 @@ static void kbd_keycode(unsigned int keycode, int down, int hw_raw) - } - #endif + ops->cur_blink_jiffies = msecs_to_jiffies(vc->vc_cur_blink_ms); -+ /* Trap keys when bootsplash is shown */ -+ if (bootsplash_would_render_now()) { -+ /* Deactivate bootsplash on ESC or Alt+Fxx VT switch */ -+ if (keycode >= KEY_F1 && keycode <= KEY_F12) { -+ bootsplash_disable(); -+ -+ /* -+ * No return here since we want to actually -+ * perform the VT switch. -+ */ -+ } else { -+ if (keycode == KEY_ESC) -+ bootsplash_disable(); -+ -+ /* -+ * Just drop any other keys. -+ * Their effect would be hidden by the splash. -+ */ -+ return; -+ } -+ } -+ - if (kbd->kbdmode == VC_MEDIUMRAW) { - /* - * This is extended medium raw mode, with keys above 127 + if (fbcon_is_inactive(vc, info) || vc->vc_deccm != 1) |