diff options
| author | Ivan Hu <ivan.hu@canonical.com> | 2019-05-10 17:50:12 +0800 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2020-07-23 20:53:24 -0400 |
| commit | 55163bc82c5179adb109c3d8b982c2689d68b4c9 (patch) | |
| tree | dad40850e3844145bc51c7a54ff6eb59ffe56852 /MokManager.c | |
| parent | 9f80be9f16a854e3946568fa92edebe26eb79e78 (diff) | |
| download | efi-boot-shim-55163bc82c5179adb109c3d8b982c2689d68b4c9.tar.gz efi-boot-shim-55163bc82c5179adb109c3d8b982c2689d68b4c9.zip | |
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 <ivan.hu@canonical.com>
Upstream-commit-id: cf05af6d899
Diffstat (limited to 'MokManager.c')
| -rw-r--r-- | MokManager.c | 2 |
1 files changed, 2 insertions, 0 deletions
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(); |
