Skip to content

Commit 2dd46c9

Browse files
MingcongBaichenx97
authored andcommitted
grub.d: 00-header: disable graphical output for MacBook6,2
MacBook Pro 15'' (Mid-2010, MacBookPro6,2) are known to have broken graphical terminal output. Use console output for this model. Signed-off-by: Mingcong Bai <[email protected]>
1 parent 136f9eb commit 2dd46c9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

util/grub.d/00_header.in

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,17 @@ EOF
234234
;;
235235
esac
236236

237+
cat << EOF
238+
# Hardware quirks:
239+
#
240+
# MacBook Pro 15'' (Mid-2010, MacBookPro6,2) are known to have broken
241+
# graphical terminal output. Use console output for this model.
242+
smbios --type 1 --get-string 5 --set system_model
243+
if [ "x$system_model" = "xMacBookPro6,2" ]; then
244+
terminal_output console
245+
fi
246+
EOF
247+
237248
if [ "x$gfxterm" = x1 ]; then
238249
if [ "x$GRUB_THEME" != x ] && [ -f "$GRUB_THEME" ] \
239250
&& is_path_readable_by_grub "$GRUB_THEME"; then

0 commit comments

Comments
 (0)