[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] video: skip 'text' gfxpayload if not supported, to fallback
From: |
Didier Spaier |
Subject: |
Re: [PATCH] video: skip 'text' gfxpayload if not supported, to fallback to default |
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 |
On 10/05/2019 15:24, Mathieu Trudel-Lapierre wrote:
> On Fri, May 10, 2019 at 7:52 AM Didier Spaier <address@hidden> 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!