[syslinux] best resolution detection

Gene Cumm gene.cumm at gmail.com
Tue Apr 16 09:18:44 PDT 2013


On Tue, Apr 16, 2013 at 4:05 AM, Shuduo Sang <sangshuduo at gmail.com> wrote:
> Hi list,
>
> Sorry if anyone had asked this. I know syslinux use 640x480 as default
> resolution or use resolution be defined in menu.cfg. Does anyone know
> there is a way to detect best resolution? If not, is this feature
> planned to add?

The Syslinux core knows nothing about VESA and doesn't care about it.
However, I am left to assume you really mean vesamenu.c32.  At this
time, there is no autoscanning capability.  As a user/contributor, I'd
much rather see an additional fallback before the scanning (ie set
"MENU RESOLUTION 1024 768" then fallback to 640x480 if a suitable mode
fails/can't be found).

However, any fallback/scan at this time would completely break your
use of "MENU BACKGROUND" (if you use it) currently as the image must
match the actual screen size (resolution is technically a misnomer but
a common misuse).  To not break, that would involve either scaling the
image or cropping/filling (cropping if dropping size, filling with the
appropriate "MENU COLOR" background color for the screen element).
Cropping/filling would likely be significantly easier to implement and
process.

--
-Gene


More information about the Syslinux mailing list