# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/xf86-video-r128/hotfix-no-vbios.patch # Copyright (C) 2024 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- Fix X not crashing on Apple PowerMacs w/o mapped VBIOS. Start to tweak DVI output support, though DDC data does not yet come back? --- xf86-video-r128-6.13.0/src/r128_output.c.vanilla 2024-11-03 17:36:23.783436402 +0100 +++ xf86-video-r128-6.13.0/src/r128_output.c 2024-11-03 19:57:45.053590548 +0100 @@ -343,10 +344,7 @@ if (r128_output->type == OUTPUT_VGA) { MonType = MT_CRT; } else { - if ((*MonInfo)->rawData[0x14] & 0x80) - MonType = MT_DFP; - else - MonType = MT_CRT; + MonType = MT_DFP; } } @@ -477,12 +479,13 @@ /* non-x86 platform */ if (!info->VBIOS) { if (info->isDFP) { - /* XXX assume LVDS on mobility chips */ - otypes[0] = OUTPUT_LVDS; + /* TODO: assume LVDS on mobility chips only, DVI otherwise */ + otypes[0] = OUTPUT_DVI; // LVDS otypes[1] = OUTPUT_VGA; } else { otypes[0] = OUTPUT_VGA; } + return; } bios_header = R128_BIOS16(0x48);