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? Cheers, Shuduo
On 04/16/2013 01:05 AM, Shuduo Sang 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? >It is a bit hard, because even if the relevant BIOS calls are implemented, most video BIOSes have a fixed list of largely archaic resolutions. -hpa
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
On Tue, Apr 16, 2013 at 10:08 PM, H. Peter Anvin <hpa at zytor.com> wrote:> On 04/16/2013 01:05 AM, Shuduo Sang 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? >> > > It is a bit hard, because even if the relevant BIOS calls are > implemented, most video BIOSes have a fixed list of largely archaic > resolutions. > > -hpa >grub2 can use VESA BIOS extensions to get supported resolution list. Although there be possible mistake BIOS grub meet and make grub fallback. If syslinux has this feature we may reduce resolution switching and reduce screen flash or visual artifacts at last.> > _______________________________________________ > Syslinux mailing list > Submissions to Syslinux at zytor.com > Unsubscribe or set options at: > http://www.zytor.com/mailman/listinfo/syslinux > Please do not send private replies to mailing list traffic. >