+
+function ventoy_max_resolution {
+ #Skip this for VM
+ smbios -t 1 -s 0x05 --set=system_product;
+ for vtPdt in "VMware" "VirtualBox"; then
+ if vt_str_casebegin "$system_product" "$vtPdt"; then
+ return
+ fi
+ fi
+
+ vt_enum_video_mode
+ vt_get_video_mode 0 vtCurMode
+ terminal_output console
+ set gfxmode=$vtCurMode
+ terminal_output gfxterm
+}
+