summarylogtreecommitdiffstats
path: root/0407-bootsplash.patch
diff options
context:
space:
mode:
authorJeka2022-10-26 14:14:45 +0300
committerJeka2022-10-26 14:14:45 +0300
commit5e6f6fec39965f5452c3b1617f8a4387c9986bc0 (patch)
treec90d21e00a66dc00fe428c2bd5af95a846c694d0 /0407-bootsplash.patch
downloadaur-5e6f6fec39965f5452c3b1617f8a4387c9986bc0.tar.gz
release kernel 6.0.4
Diffstat (limited to '0407-bootsplash.patch')
-rw-r--r--0407-bootsplash.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/0407-bootsplash.patch b/0407-bootsplash.patch
new file mode 100644
index 000000000000..3f82eb0b9296
--- /dev/null
+++ b/0407-bootsplash.patch
@@ -0,0 +1,42 @@
+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
+@@ -49,6 +49,8 @@
+
+ #include <asm/irq_regs.h>
+
++#include <linux/bootsplash.h>
++
+ /*
+ * Exported functions/variables
+ */
+@@ -1413,6 +1415,28 @@ static void kbd_keycode(unsigned int key
+ }
+ #endif
+
++ /* 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