Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jOfFp-0006qv-6n for mharc-grub-devel@gnu.org; Wed, 15 Apr 2020 06:26:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43645) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOfFm-0006km-C1 for grub-devel@gnu.org; Wed, 15 Apr 2020 06:26:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOfFk-0005hA-W2 for grub-devel@gnu.org; Wed, 15 Apr 2020 06:26:46 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:43095 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jOfFk-0005go-Rx for grub-devel@gnu.org; Wed, 15 Apr 2020 06:26:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586946404; 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=zVKo3aQMopwKj4OaZ9gqpW8AgYhv8s2L57WnoH7YF0k=; b=DFmUDUDiQnQklDoaqz82mx9fhUtFqgbePNZ1L6bGIlyLqDOluJwjF870G4XMXSIXXdFmb1 CzXxcYK17qpb4mFw7hAybtHoHy3GyL1EaGI4HieZj+N1fADTRFh0cLGDksSaFx1GjS50V3 VtQeyvVjlQBeDvW4pbHoC2c21Uu5vgs= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-186-XMwGG3hfOwO_McnGbqxkyQ-1; Wed, 15 Apr 2020 06:26:36 -0400 X-MC-Unique: XMwGG3hfOwO_McnGbqxkyQ-1 Received: by mail-wr1-f70.google.com with SMTP id s11so5469255wru.6 for ; Wed, 15 Apr 2020 03:26:36 -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=WT2Q9/ie+/Pu7NS9fKlaZ+J+WYLwPSYY+Nl70bUvxTU=; b=m6p04s3TvJMjDNFnZ6fBBRc2EwvGlX6NBRYyCTWFLQ6puEbEDQy2KNWNqkeEGm2Nqr flOjeooF4O5PnCWdiev8Q3pKLjm+GzqKO2w5jum333Q3Ipw+v+2aM/ojKIojg6oIMFwi /R0wosA9CX35KNzK+UeIzQGfLQEMLoC6jhKlY/fuAqkL+mKDfu89ATOzbqNygiYAXMUD KsBBn8LI0tiUYACTyLzbShQfkJ5nBXxfNAhoufET0m9qN1HGNIEC/Z+0xW1Tzxf8zrLV KOKVN88w3QVIytLIR+gZjabU91kxnHQie/kF9uKQJr8jBhKCrI5YF0Tu8jYzJREh/rmd uHzg== X-Gm-Message-State: AGi0PubJMPpzhR7C9xlMw/5o1tuzh4Klj7E0jhtFDkibi9z7bBxlkPSb VpwFVEUv4VxQoIA+V3EHfAcJYQKyFqD9PzNltvcu6TOvNG0lecgZg/g/hMeiZ8mytcUhVWLmj1u LWvTqUcklgz4= X-Received: by 2002:adf:a21a:: with SMTP id p26mr28370006wra.102.1586946394763; Wed, 15 Apr 2020 03:26:34 -0700 (PDT) X-Google-Smtp-Source: APiQypJ6snBJfAGO/gcJMLbfAnUisv1/hJIVqNSG2aKEZ6iojCXHHrmIAkzhfUi1pNIK3K3sSF9L/g== X-Received: by 2002:adf:a21a:: with SMTP id p26mr28369983wra.102.1586946394494; Wed, 15 Apr 2020 03:26:34 -0700 (PDT) Received: from minerva.redhat.com ([2a01:c50f:ab80:6700:527f:85b3:5615:ff0b]) by smtp.gmail.com with ESMTPSA id n124sm22803517wma.11.2020.04.15.03.26.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Apr 2020 03:26:33 -0700 (PDT) From: Javier Martinez Canillas To: grub-devel@gnu.org Cc: Hans de Goede , Daniel Kiper , Javier Martinez Canillas Subject: [PATCH v3 0/6] Improvements to EFI console and terminal drivers for Flicker Free Boot Date: Wed, 15 Apr 2020 12:26:16 +0200 Message-Id: <20200415102622.1890550-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] X-Received-From: 205.139.110.120 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: Wed, 15 Apr 2020 10:26:47 -0000 Hello, This is a v3 of a patch-set that contains improvements for the EFI console = and terminal drivers that allows to avoid the switch to text-mode until is need= ed. 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. [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 v3: - Make grub_console_read_key_stroke() return GRUB_ERR_NONE instead of 0. - Make grub_prepare_for_text_output() return GRUB_ERR_NONE instead of 0. - Code style cleanups. - Fix a left over in the documentation. 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 | 33 ++--- 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 | 244 ++++++++++++++++++++++----------- include/grub/term.h | 6 +- 7 files changed, 228 insertions(+), 116 deletions(-) --=20 2.25.1