diff --git a/src/os/uefi/arch/x86_64/mod.rs b/src/os/uefi/arch/x86_64/mod.rs index 1b3f69aa44b8be9428e539d4921acaf1eb04b58d..3dab3c687e3c117c245dcd3aa72ebd03b28ef6a4 100644 --- a/src/os/uefi/arch/x86_64/mod.rs +++ b/src/os/uefi/arch/x86_64/mod.rs @@ -219,7 +219,20 @@ impl Os< }, Err(err) => { log::warn!("Failed to get EFI EDID: {:?}", err); - None + + // Fallback to the current output resolution + match Output::one() { + Ok(output) => { + Some(( + output.0.Mode.Info.HorizontalResolution, + output.0.Mode.Info.VerticalResolution, + )) + }, + Err(err) => { + log::error!("Failed to get output: {:?}", err); + None + } + } } } }