1 Star 0 Fork 16

Sevever/grub2_oc

forked from OpenCloudOS Stream/grub2 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0020-vbe-blacklist-preferred-1440.patch 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
nilusyi 提交于 2024-04-07 16:45 +08:00 . update patches
From a7fc83bc477e453ee221dacdf2911573ac645f30 Mon Sep 17 00:00:00 2001
From: nilusyi <[email protected]>
Date: Mon, 1 Apr 2024 15:06:59 +0800
Subject: [PATCH 020/272] vbe blacklist preferred 1440
Blacklist 1440x900x32 from preferred mode handling until a
better solution is available. This mode causes problems on
many Thinkpads.
Signed-off-by: Michael Chang <[email protected]>
---
grub-core/video/i386/pc/vbe.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/grub-core/video/i386/pc/vbe.c b/grub-core/video/i386/pc/vbe.c
index a0bb9af09..801ae9470 100644
--- a/grub-core/video/i386/pc/vbe.c
+++ b/grub-core/video/i386/pc/vbe.c
@@ -1054,6 +1054,15 @@ grub_video_vbe_setup (unsigned int width, unsigned int height,
|| vbe_mode_info.y_resolution > height)
/* Resolution exceeds that of preferred mode. */
continue;
+
+ /* Blacklist 1440x900x32 from preferred mode handling until a
+ better solution is available. This mode causes problems on
+ many Thinkpads.
+ */
+ if (vbe_mode_info.x_resolution == 1440 &&
+ vbe_mode_info.y_resolution == 900 &&
+ vbe_mode_info.bits_per_pixel == 32)
+ continue;
}
else
{
--
2.41.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sevever/grub2_oc.git
[email protected]:sevever/grub2_oc.git
sevever
grub2_oc
grub2_oc
master

搜索帮助