Received: from list by lists.gnu.org with archive (Exim 4.71) id 1hP5nO-0002m8-6g for mharc-grub-devel@gnu.org; Fri, 10 May 2019 09:42:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hP5nL-0002kM-MF for grub-devel@gnu.org; Fri, 10 May 2019 09:42:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hP5nK-0007eV-Kt for grub-devel@gnu.org; Fri, 10 May 2019 09:42:39 -0400 Received: from edit.o2switch.cloud ([109.234.163.95]:38266) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hP5nK-0007dT-5N for grub-devel@gnu.org; Fri, 10 May 2019 09:42:38 -0400 X-MailPropre-MailScanner-From: didier@slint.fr X-MailPropre-MailScanner-SpamScore: s X-MailPropre-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=1.2, required 5, autolearn=disabled, DKIM_INVALID 0.10, DKIM_SIGNED 0.10, URIBL_BLOCKED 1.00) X-MailPropre-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-MailPropre-MailScanner-ID: 5A6A51007CE.A6427 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=v1JaMthCuijeasMBeDYvnxRPbjEveQBQKFSV35Ik15M=; b=iDGuf55EiSr8xmOokFr5jyX7f1 LRyCc+ZbPI+w2/MQsYHzmOjKlo+6wW12WFBjguthzWopQNTbkWC/gSGZ31gYZvJtMl+jSVshrgk21 ACSrkIWkImsIYlXiis+vYcX8qWh8dJdcMZ+xveit4nCDsNyTa3wWEf48U+lLJHxKRXvs=; Subject: Re: [PATCH] video: skip 'text' gfxpayload if not supported, to fallback to default To: The development of GNU GRUB , Mathieu Trudel-Lapierre Cc: Mathieu Trudel-Lapierre , Daniel Kiper References: <20190429175702.4010-1-mathieu.trudel-lapierre@canonical.com> <20190510113849.uqz2x6uhjsvkbn3l@tomti.i.net-space.pl> <0611a659-ed7c-a176-26fd-fd08067ce1af@slint.fr> From: Didier Spaier Openpgp: preference=signencrypt Message-ID: Date: Fri, 10 May 2019 15:42:32 +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: 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.95 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 13:42:40 -0000 On 10/05/2019 15:24, Mathieu Trudel-Lapierre wrote: > On Fri, May 10, 2019 at 7:52 AM Didier Spaier wrote: >> >> 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? >> > > In grub.cfg; you can check if you're on the right platform by checking > > $grub_platform > > On UEFI, it will read "efi". Thanks!