Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jLk9k-0007io-Fm for mharc-grub-devel@gnu.org; Tue, 07 Apr 2020 05:04:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55307) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLk9Q-0007ZN-Oe for grub-devel@gnu.org; Tue, 07 Apr 2020 05:04:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jLk9O-0005cO-Ju for grub-devel@gnu.org; Tue, 07 Apr 2020 05:04:07 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:47849 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jLk9O-0005bW-GT for grub-devel@gnu.org; Tue, 07 Apr 2020 05:04:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586250246; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3LoCIfbmoIQMrevDDy35XGvXK2I/wsIubYdUScIiVDE=; b=bwZWAczFEasjsbxPaJvapTKEiAlr5fUdGedghpVl6AlIML0djdIW9ZZA5fCzsOL/70EXpi H7RTmUynEu65F2dxNMCVF5fokYJzGezr3FEbHj2RsgrKIwA0XnMGUb88Fx1MsyoKi5nx0i rYWUVaogmn8LzeDU05KmB+zFAHBoJVE= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-365-XYu30SzKMq-W95v2K-Y3NA-1; Tue, 07 Apr 2020 05:03:59 -0400 X-MC-Unique: XYu30SzKMq-W95v2K-Y3NA-1 Received: by mail-wr1-f71.google.com with SMTP id h14so1419723wrr.12 for ; Tue, 07 Apr 2020 02:03:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7o7LcEvqZ7mZlFnFVOlLOZhy7vEiQvGQC15DQZbJ2z8=; b=XPRDI8q/+pcAiOkVxHCuBgGakKOQRmaKgaALcOAOaYIABhgN5uOQZTjbH/nwB10rOo KPWv4pmc7X40dbiIjSTWx9rb4PkB0TrtJAfQA9rhR0enlIYMWjAf7c75zOeECq7w+Z2s +0Oy96th5mURvI2/zOFzaR9DyCofC4+t4mE8N9c0RjYgQq4Lyay3tYVQXNBYlCqPOTF1 U6UF2f4xllMk+a/uYs18+22Hdj0C9T8pW2WAb4Bb233VnVNsIFUmV/B2yF8uL1DZCjHt pPKOQeh8YUBh+Xim9hAkGv8z6F/o0TeF11zi1jvJa78NolexBB/lbsVJ5c9yOuZIGPix xhAg== X-Gm-Message-State: AGi0PubQYvXHRyXtNJJSYmoZuPDDDYfwUo4+eLkCZ5Dh+hJGSk+2oOjr hDnBjaOMC+ApNVP9s2PQSxxjMxYpWg0COn+xPtLeK3W4YFE9p/ow8HyN9q6qmjLX3VlCqqSiLgd +cw/hJFiLGFA= X-Received: by 2002:adf:fc45:: with SMTP id e5mr1527526wrs.427.1586250238529; Tue, 07 Apr 2020 02:03:58 -0700 (PDT) X-Google-Smtp-Source: APiQypJI2465vatsznsDhCJYgWJWa1ZUjpWBqknBqinUtkYUyxtf2ZwcXOfsX9niCPUrFGiWfSzc+A== X-Received: by 2002:adf:fc45:: with SMTP id e5mr1527499wrs.427.1586250238186; Tue, 07 Apr 2020 02:03:58 -0700 (PDT) Received: from minerva.home ([2a01:c50f:ab80:6700:527f:85b3:5615:ff0b]) by smtp.gmail.com with ESMTPSA id o13sm7805444wrm.74.2020.04.07.02.03.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Apr 2020 02:03:57 -0700 (PDT) From: Javier Martinez Canillas To: grub-devel@gnu.org Cc: Hans de Goede , Daniel Kiper , Javier Martinez Canillas Subject: [PATCH v2 0/6] Improvements to EFI console and terminal drivers for Flicker Free Boot Date: Tue, 7 Apr 2020 11:03:45 +0200 Message-Id: <20200407090351.50921-1-javierm@redhat.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.81 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Apr 2020 09:04:19 -0000 Hello, This patch series was split from a previously posted patch-set [0]. It cont= ains improvements for the EFI console and terminal drivers that allows to avoid = the switch to text-mode until is needed. This is part of the patches we have in Fedora to support the Flicker Free B= oot feature [1], which allows to have a seamless boot experience with no graphi= cal transitions that aren't necessary. More info can be found in Hans' blog [2,= 3]. We have additional patches for this feature, for example template changes t= hat makes hiding the menu only when the previous boot was successful, and to ma= ke GRUB less noisy and not print unnecessary output. But those will be posted = in the future once the paches on this set land. [0]: https://lists.gnu.org/archive/html/grub-devel/2020-03/msg00152.html [1]: https://fedoraproject.org/wiki/Changes/FlickerFreeBoot [2]: https://hansdegoede.livejournal.com/19224.html [3]: https://hansdegoede.livejournal.com/20632.html Best regards, Javier Changes in v2: - Mention in commit message that logic is unchanged after patch #1. - Add better explanation about why the change in patch #1 is needed. - Also mention in commit message that logic is unchanged after patch #2. - Explain why the helper function needs to be available for other modules. - Move patch #2 earlier in the patch-set since is a proparatory change. - Explain why the getkeystatus() handler is needed for the EFI console driv= er. - Code style cleanups. - Fix commit message that had left overs from when F8 was used instead of F= 4. - Update documentation to explain that F4 and SHIFT are used now besides ES= C. - Also fix comments to reflect that F4 is used now and use proper style. Hans de Goede (5): kern/term: Make grub_getkeystatus helper function available everywhere efi/console: Add grub_console_read_key_stroke() helper function efi/console: Implement getkeystatus() support efi/console: Do not set text-mode until we actually need it kern/term: Accept ESC, F4 and holding SHIFT as user interrupt keys Javier Martinez Canillas (1): efi/console: Move grub_console_set{colorstate,cursor} higher in the file docs/grub.texi | 32 ++--- grub-core/commands/keystatus.c | 18 --- grub-core/commands/sleep.c | 2 +- grub-core/kern/term.c | 39 ++++++ grub-core/normal/menu.c | 2 +- grub-core/term/efi/console.c | 241 ++++++++++++++++++++++----------- include/grub/term.h | 6 +- 7 files changed, 225 insertions(+), 115 deletions(-) --=20 2.25.1