Received: from list by lists.gnu.org with archive (Exim 4.71) id 1hP45L-0006Xs-3r for mharc-grub-devel@gnu.org; Fri, 10 May 2019 07:53:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hP45I-0006Xe-7D for grub-devel@gnu.org; Fri, 10 May 2019 07:53:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hP45H-00065X-6b for grub-devel@gnu.org; Fri, 10 May 2019 07:53:04 -0400 Received: from many.o2switch.cloud ([109.234.163.77]:46043) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hP45G-0005lC-Mw for grub-devel@gnu.org; Fri, 10 May 2019 07:53:03 -0400 X-MailPropre-MailScanner-From: didier@slint.fr X-MailPropre-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.2, required 5, autolearn=disabled, DKIM_INVALID 0.10, DKIM_SIGNED 0.10) X-MailPropre-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-MailPropre-MailScanner-ID: 27DAE100824.A522C X-MailPropre-MailScanner-Information: Please contact the ISP for more information DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=slint.fr; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version :Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=xrdlTScEmWPKbtQyeVjBbJ18cL8t3VL0cse52UNuqLY=; b=q3gXqDtl+eflGBVc7nzl1izZKE qrhJ/00IYCI1ylF3vzr9qYlinyT+0n4lRjIIHFFPbilAv/gXxUItH49Y/DUocoCpSkfDrRFEE4bEB +lTd1GHQXuYUC1/a8B3nCsizO4Q0NXzXrH6TIiynaZYd0WV8uGNpoWvL/q8mzGe5eRZY=; Subject: Re: [PATCH] video: skip 'text' gfxpayload if not supported, to fallback to default To: The development of GNU GRUB , Daniel Kiper , Mathieu Trudel-Lapierre Cc: Mathieu Trudel-Lapierre References: <20190429175702.4010-1-mathieu.trudel-lapierre@canonical.com> <20190510113849.uqz2x6uhjsvkbn3l@tomti.i.net-space.pl> From: Didier Spaier Openpgp: preference=signencrypt Message-ID: <0611a659-ed7c-a176-26fd-fd08067ce1af@slint.fr> Date: Fri, 10 May 2019 13:52:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190510113849.uqz2x6uhjsvkbn3l@tomti.i.net-space.pl> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - fox.o2switch.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - slint.fr X-Get-Message-Sender-Via: fox.o2switch.net: authenticated_id: didier@slint.fr X-Authenticated-Sender: fox.o2switch.net: didier@slint.fr X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 109.234.163.77 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 May 2019 11:53:05 -0000 On 10/05/2019 13:38, Daniel Kiper wrote: > On Mon, Apr 29, 2019 at 01:57:02PM -0400, Mathieu Trudel-Lapierre wrote: >> On UEFI, 'text' gfxpayload is not supported, but we still reach parse_modespec >> with it, which will obviously fail. Fortunately, whatever gfxpayload is set, >> we still still have the 'auto' default to fall back to. Allow getting to this >> fallback by not trying to parse 'text' as a modespec. >> >> This is because 'text' correctly doesn't parse as a modespec, and ought to have >> been ignored before we got to that point, just like it is immediately picked if >> we're running on a system where 'text' is a supported video mode. As an aside, in a grub.cfg intended for both legacy and UEFI booting, can I condition setting either 'vga=normal' or 'gfxpayload=text' depending on the context detected by grub? If yes, how? Best, Didier