From 55163bc82c5179adb109c3d8b982c2689d68b4c9 Mon Sep 17 00:00:00 2001 From: Ivan Hu Date: Fri, 10 May 2019 17:50:12 +0800 Subject: MokManager: console mode modification for hi-dpi screen devices There are lots of hi-dpi laptops nowadays, as doing mok enrollment, the font is too small to see. https://bugs.launchpad.net/ubuntu/+source/shim/+bug/1822043 This patch checks if the resolution is larger than Full HD (1920x1080) and current console output columns and rows is in a good mode. Then swith the console output to a better mode. Signed-off-by: Ivan Hu Upstream-commit-id: cf05af6d899 --- MokManager.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'MokManager.c') diff --git a/MokManager.c b/MokManager.c index 30192c16..78da9fd9 100644 --- a/MokManager.c +++ b/MokManager.c @@ -2560,6 +2560,8 @@ EFI_STATUS efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE * systab) setup_rand(); + console_mode_handle(); + efi_status = check_mok_request(image_handle); console_fini(); -- cgit v1.2.3