[PATCH v2] efi: Set text-mode console resolution to maximum supported

2022-05-06 Thread Glenn Washburn
On some buggy EFI firmwares, GRUB is started with the console resolution set to the maximum but the output console EFI object has the mode set as 0, which is the minimum supported mode of 80x25 characters. This causes strange behavior at the GRUB shell where output can fill the screen, but the prom

Re: [PATCH v2] efi: Set text-mode console resolution to maximum supported

2022-05-06 Thread Gerd Hoffmann
Hi, > v2: Fix to query each mode instead of just the current mode Oh, right, that is another one ... > + /* Set text-mode resolution to maximum supported */ > + o = grub_efi_system_table->con_out; > + for (i=0, columns_max=0, rows_max=0, mode_max=0; i < o->mode->max_mode; > i++) > +if