diff --git a/CONFIG.md b/CONFIG.md index 23fbe3b8..b146cbfe 100644 --- a/CONFIG.md +++ b/CONFIG.md @@ -97,8 +97,8 @@ Miscellaneous: named `Arch Linux`). If unspecified, it is `1`. * `remember_last_entry` - If set to `yes`, remember last booted entry. (UEFI only). -* `graphics` - If set to `no`, force CGA text mode for the boot menu, else use - a video mode. Ignored with Limine UEFI. +* `graphics` - If set to `no`, force text mode for the boot menu, else use + a video mode. * `wallpaper` - Path to a file to use as a wallpaper. BMP, PNG, and JPEG formats are supported. There can be multiple of this option, in which case the wallpaper will be randomly selected from the provided options. diff --git a/common/menu.c b/common/menu.c index d7263aa8..f6974860 100644 --- a/common/menu.c +++ b/common/menu.c @@ -1009,6 +1009,15 @@ noreturn void _menu(bool first_run) { #endif serial_str != NULL && strcmp(serial_str, "yes") == 0; +#if defined (UEFI) + if (!serial) { + char *graphics_str = config_get_value(NULL, 0, "GRAPHICS"); + if (graphics_str != NULL && strcmp(graphics_str, "no") == 0) { + serial = true; + } + } +#endif + #if defined (BIOS) if (serial) { char *baudrate_s = config_get_value(NULL, 0, "SERIAL_BAUDRATE");