# Pure UEFI Black Screen: Troubleshooting Legacy Systems and Adding AI Agents at the Firmware Layer

    This article walks through why legacy systems boot successfully on pure UEFI machines yet never produce a display image, and how to diagnose and fix that gap. It separates "boots" from "displays" into verifiable sub-problems, explains the difference between the legacy three-stage BIOS display chain and the UEFI GOP driver model, and presents two remediation paths: giving the GPU a working UEFI GOP as early as possible, or installing a lightweight pre-boot INT 10h shim that converts legacy video calls into GOP operations before the OS kernel takes over. It also includes a compatibility pre-check checklist, the shim's capability limits, and a separate section on safely introducing voice input and LLM agents into the firmware layer, covering the layered execution model, tool whitelisting, confirmation, audit logging, rollback, and privacy red lines. Readers will gain both a practical troubleshooting workflow and a cautious design pattern for firmware-level intelligence.

    1. Background: Why Old Systems “Won’t Light Up the Screen” as CSM Fades Out

    For years, most PCs and servers supported both legacy BIOS boot and UEFI boot. Platforms usually relied on the Compatibility Support Module (CSM) to provide legacy capabilities — INT interrupts, MBR boot, and legacy VGA text mode — so that older operating systems, older GPUs, and older software kept working.

    As Secure Boot, Fast Boot, and general firmware security requirements have tightened, newer platforms increasingly ship without CSM. Some have no legacy boot entry at all. These machines are commonly called “pure UEFI machines.”

    The problem is that some legacy systems are still in active use: industrial software, test environments, legacy development toolchains. On such machines, the failure mode is rarely “the machine won’t power on.” Instead, POST completes, the boot menu appears, disk I/O looks healthy, and the system appears to be running — but the screen never shows an image. Users often have to confirm system state through a serial port, a remote management interface, or an out-of-band management channel. The situation is usually summarized as “it boots, but the screen won’t light up,” and the underlying conflict is a generational mismatch between the boot mechanism and the display services available: legacy systems still call traditional display interfaces such as INT 10h early in startup, while newer platforms have moved to UEFI drivers and the Graphics Output Protocol (GOP).

    This article addresses two questions:

    1. On a pure UEFI environment, how do you correctly attribute a black screen, troubleshoot it layer by layer, and restore the missing display capability?
    2. Once you understand the boot chain and the firmware runtime environment, how do you carefully introduce voice input, natural language interaction, and LLM agents into the firmware layer — and set clear security boundaries for them?

    2. First, Separate Two Things: Booting and Displaying

    The first step in solving a pure UEFI black screen is not to start modifying the OS blindly, but to break “boot failure” into verifiable sub-problems. At least three categories are common:

    Scenario Typical Symptoms Where the Root Cause Sits
    A. Missing boot entry Installation media not detected, or no target system in the boot entries System only provides a 32-bit UEFI boot loader, or the media never generated a UEFI boot entry
    B. Incompatible storage controller Errors during the boot phase, repeated reboots, or the disk not found Controllers such as SATA run in native mode in firmware, and the legacy system lacks the driver
    C. Missing graphics output Disk activity LED, network, and serial output suggest the system may be running, but the screen is black The GPU has no usable UEFI graphics driver, GOP is unavailable, or the display link is broken

    Each scenario calls for a different response. When troubleshooting, check the following first:

    1. Does the boot menu show entries with a “UEFI” prefix?
    2. Does the target system have a 64-bit UEFI boot loader?
    3. Does the firmware setup interface itself display an image, and does the UEFI Shell render correctly?
    4. Inside the UEFI Shell, can you identify the GPU device and find the Graphics Output Protocol (GOP)?
    5. Does the display path pass through adapters, splitters, KVM switches, or other intermediate devices?

    To narrow things down quickly, three questions are enough:

    • How do you tell whether a pure UEFI black screen is a display problem? Start with the firmware setup interface. If the firmware UI shows an image but the screen goes black after entering the OS, focus on GOP, GPU firmware, the display link, and early OS loading. If the firmware UI shows no image either, investigate the GPU, the video connectors, and any adapter devices first.
    • When is INT 10h needed? Only when the GPU has no usable GOP, and the legacy system’s boot loader or early kernel display logic still calls INT 10h, and the platform cannot have its GPU replaced. In that case, evaluating a compatibility shim makes sense.
    • When should you replace the GPU? If the firmware UI produces no output, if the UEFI Shell cannot find GOP, if flashing GPU firmware carries too much risk, or if the workload requires stable production operation, prefer replacing the GPU with one that natively supports UEFI rather than forcing a compatibility layer into service.

    3. Root Cause Analysis: From Legacy INT 10h to UEFI GOP

    The traditional BIOS display stack usually depends on a three-stage chain:

    • Firmware stage: The GPU’s VBIOS completes hardware initialization and leaves behind a legacy VGA-compatible text buffer and font resources.
    • Boot stage: The boot loader switches modes and outputs characters or graphics through INT 10h interrupts; for higher resolutions it may also use VBE.
    • OS stage: The kernel and the GPU driver progressively take over the display.

    UEFI uses a different driver model. The GPU must be initialized through a UEFI driver and then expose GOP to firmware. The operating system and boot loaders use GOP to query the resolution, set modes, or draw images via block pixel transfer. The critical condition is that the GPU firmware must contain a valid UEFI graphics driver. If the GPU has only a legacy VBIOS and no UEFI driver module, pure UEFI firmware may be unable to establish GOP at all, leaving that GPU with no usable output.

    So many “won’t install, won’t light up” problems are not defects in the legacy system itself. They arise because once UEFI boot is in play, resources such as INT 10h, legacy interrupt vectors, and the VGA text buffer are no longer guaranteed to exist — yet the system may still call them during early startup to produce display output. Three factors make this gap hard to close:

    • Early in boot, the GPU driver is not loaded yet, so the system can only rely on the basic display capability the firmware provides.
    • Some legacy boot loaders may issue INT 10h calls directly from a real-mode or 16-bit environment.
    • Platforms differ in how much they preserve compatibility for legacy interrupts and legacy graphics modes.

    When the internals of the legacy system cannot be modified, there are two practical directions: make the GPU expose UEFI GOP capability as early as possible, or have an adapter layer in the boot chain translate the critical INT 10h calls into GOP operations before the OS takes over the display.

    4. Solution One: Give the GPU UEFI Graphics Capability Early

    This is the most fundamental approach and the cheapest to maintain.

    1. Prefer GPUs that natively support UEFI. Modern GPU firmware generally includes a UEFI driver; problems mostly appear with older models.
    2. Prefer the platform’s integrated graphics. If the processor has integrated graphics and the motherboard provides a video output, switch output to the iGPU.
    3. Update GPU firmware cautiously. Some vendors ship firmware that adds or updates the UEFI driver, but flashing carries the risk of a failed update. Follow the vendor’s procedure and make sure power delivery is stable.
    4. Avoid opaque adapter devices. GPU adapter cards, splitters, and KVM switches can block the data exchange needed for UEFI driver initialization, causing intermittent black screens.

    When troubleshooting, use the device and protocol enumeration commands provided by the firmware inside the UEFI Shell to check whether GOP is attached to the GPU device. If GOP cannot be found, the problem is almost certainly on the GPU or GPU firmware side. For production environments, prefer hardware combinations that are easier to maintain over complex compatibility layers.

    5. Solution Two: Fill in INT 10h Before the OS Takes Over

    If the GPU genuinely has no UEFI graphics driver and cannot be replaced, the only remaining option is to bridge the gap before the “baton” is handed over. Add a lightweight pre-boot adapter layer to the boot chain that converts the critical INT 10h calls into GOP operations before the OS kernel takes control of the screen.

    5.1 What the Adapter Layer Must Do, and Its Prerequisites

    The adapter layer is not a general-purpose switch, and it cannot be assumed to install successfully on any pure UEFI platform. It requires at least the following conditions, and it should not be treated as a universal step if they are not met:

    1. The boot chain can enter a 16-bit real-mode or compatible real-mode execution environment.
    2. The adapter layer installs before ExitBootServices, so it does not depend on firmware runtime services that are unavailable after boot services are exited.
    3. The interrupt vector table or interrupt descriptor table can be modified safely.
    4. The framebuffer address is already mapped and remains reliably accessible while the adapter layer executes.
    5. GOP state — mode number, resolution, pixel format, framebuffer size — has been saved.
    6. The OS boot loader accepts the call entry the adapter layer provides, or can enter it.

    The main work of the adapter layer breaks down as follows:

    Key Stage What It Means
    Locate GOP Use the UEFI protocol lookup mechanism to find the Graphics Output Protocol
    Save state Record the framebuffer base address, size, resolution, mode number, and pixel format
    Establish a call entry Prepare a 16-bit call entry with appropriate privileges and hook INT 10h safely
    Translate functions Convert basic calls such as character output and mode queries into GOP or framebuffer operations
    Compat fallback Return explicit error codes for unsupported functions instead of failing silently

    5.2 Common INT 10h Functions and How They Map to GOP

    The table below describes generic call semantics; actual behavior varies by system implementation.

    INT 10h Function Meaning Typical Adapter-Layer Handling
    AH=00h Set video mode Switch between text and graphics modes Usually does not perform a real mode switch; records the internal mode and returns success
    AH=03h Read cursor position Query cursor position Returns the internally maintained cursor coordinates
    AH=0Eh Character output Output characters one at a time Draws the glyph into the framebuffer at the current cursor position
    AH=0Fh Read current mode Query mode and column count Returns the internally recorded mode number and column count
    AH=13h Display string Output a string Optional; the sample in this article does not implement it and returns an error code, or forwards to AH=0Eh character by character

    For AH=00h, a real mode switch should generally be avoided for two reasons. First, repeated mode queries and mode sets early in boot cause flickering or inconsistent state. Second, UEFI mode numbers have no uniform mapping to legacy mode numbers. The safer approach is to keep the current resolution, account for the requested mode internally, and report “success” to the caller.

    For AH=13h, if the adapter layer cannot guarantee the full semantics, it should return an explicit error code rather than leaving the table description out of sync with the implementation. If string output is genuinely required, the layer can call the AH=0Eh logic character by character internally, but it still has to handle attribute bytes, bounds, and cursor movement.

    5.3 Illustrative Implementation: Pseudocode, Not Compilable Code

    The pseudocode below only illustrates call order and key logic. It cannot be compiled or run as-is. A real implementation must account for the platform, compiler, boot environment, and the 16-bit interrupt calling convention.

    1. function InstallLegacyVideoShim:
    2. Gop = LocateProtocol(GOP)
    3. if Gop does not exist:
    4. return EFI_UNSUPPORTED
    5. Save the following state:
    6. FrameBufferBase
    7. FrameBufferSize
    8. HorizontalResolution
    9. VerticalResolution
    10. PixelsPerScanLine
    11. Mode
    12. if the current environment does not support installing 16-bit real-mode interrupts:
    13. return EFI_UNSUPPORTED
    14. if the install timing is not before ExitBootServices:
    15. return EFI_UNSUPPORTED
    16. Install the 16-bit call stub and hook interrupt vector 0x10
    17. print: "Legacy video shim installed: INT 10h -> GOP"
    18. return EFI_SUCCESS
    19. function Int10ShimHandler:
    20. Read from the current 16-bit interrupt frame:
    21. AX
    22. DI
    23. any required segment registers or stack information
    24. functionNumber = AH
    25. if functionNumber == 0x00:
    26. internalMode = AL
    27. internalColumns = default columns selected for that mode
    28. cursorColumn = 0
    29. cursorRow = 0
    30. do not perform a real mode switch
    31. return success
    32. else if functionNumber == 0x03:
    33. return internal cursor column and cursor row
    34. else if functionNumber == 0x0E:
    35. character = AL
    36. if character == carriage return:
    37. cursorColumn = 0
    38. else if character == line feed:
    39. increment cursorRow
    40. cursorColumn = 0
    41. else if character is a control character:
    42. ignore
    43. else:
    44. draw the character into the framebuffer using the 8x16 font
    45. increment cursorColumn
    46. if cursorColumn exceeds the column count:
    47. wrap to the next line
    48. else if functionNumber == 0x0F:
    49. return internal mode number and column count
    50. else if functionNumber == 0x13:
    51. return an error code, or forward character by character to the AH=0Eh logic as needed
    52. else:
    53. return an explicit error code
    54. Restore FLAGS, CS, and IP according to interrupt return rules
    55. Exit using an interrupt return rather than a normal near return

    This pseudocode deliberately avoids fixed stack offsets, because different compilers, calling conventions, and execution modes place registers in different positions. Production environments must test every platform individually.

    5.4 Why This Works, and Where Its Limits Lie

    From the system’s point of view, the adapter layer restores services that were “naturally present” in legacy boot environments. From the boot chain’s point of view, it follows a general engineering principle: a compatibility layer belongs at the lowest level of the dependency graph, not scattered across every layer above it.

    But it is not a universal fix, and its boundaries must be stated clearly:

    • It can only cover basic functions such as text output.
    • Complex graphics operations are hard to emulate completely.
    • Mode switching may be unstable, and arguably should not be implemented at all.
    • High resolutions, Unicode glyphs, attribute colors, and scroll regions may be unsupported.
    • Early-stage code runs on bare metal with no process isolation and no memory protection, so a single out-of-bounds access can break the boot.
    • Different systems call INT 10h at different times and expect different registers and return values, so each case must be verified individually.

    Before starting, assess the need. If the system installs and boots fine and only the boot menu fails to display, you can simply auto-boot the default entry, or modify configuration with a text editor included on the USB stick. Not every scenario requires a visible boot menu.

    6. Compatibility Self-Check Before You Start

    Check How to Verify What to Do If It Fails
    Firmware boot mode Look for a CSM option and whether it exists or is enabled If CSM has been removed entirely, drop the legacy boot approach
    System bitness Check whether the installation media contains a 64-bit boot loader If only 32-bit is available, switch to a 64-bit build or keep a legacy environment
    Media boot entry Check whether the boot menu shows an entry with a UEFI prefix Recreate the installation media with UEFI boot support
    GPU UEFI graphics support Does the firmware UI or UEFI Shell produce output? Is GOP attached in the Shell? Prefer a GPU that supports UEFI, or enable the iGPU
    GPU firmware version Compare against the UEFI support information published by the GPU vendor If an update is needed, follow the vendor procedure carefully
    Storage controller mode Inspect the firmware settings for SATA and similar controllers If the legacy system lacks a native driver, switch to compatibility mode before installing
    Secure Boot Check the setting’s state If legacy boot is unsigned, do not casually disable Secure Boot in production; disable it only temporarily in an isolated validation environment, restore it afterwards, and assess the Secure Boot risk
    Display link Inspect adapter cards, splitters, KVM devices, and similar equipment Eliminate intermediate devices before localizing the problem further
    Observation channel Confirm serial or remote management interfaces are available Address any gap first so later troubleshooting is possible
    Rollback plan Confirm firmware backups, default configuration, recovery media, and stable power Back up first, then perform high-risk operations

    Disabling Secure Boot reduces the system’s ability to verify unsigned boot components, may expand the attack surface, and may affect boot flows that depend on signature mechanisms. Secure Boot should therefore only be disabled temporarily in isolated or validation scenarios, and restored once the problem is identified. In production, prefer signing, enrolling trusted components, or moving to a supported system.

    7. Extending to the Firmware Layer: Voice Input and LLM Agents

    Once “can it display” is solved, the next question is “is it pleasant to use.” Traditional BIOS and UEFI setup interfaces have deep menu hierarchies, the UEFI Shell accepts only typed commands, and pre-boot diagnosis and repair rely heavily on experience. Introducing voice input and natural language interaction at the firmware layer — so a user can complete a configuration step with a single sentence — has obvious value.

    7.1 Layered Architecture and Execution Boundaries

    Firmware-level intelligent interaction splits into four layers:

    1. Input layer: keyboard, voice, out-of-band management, or commands issued from the OS side.
    2. Understanding and reasoning layer: converts natural language into structured intent, optionally involving an LLM.
    3. Execution layer: may only call controlled firmware services or predefined commands, backed by a whitelist and a second confirmation step.
    4. Feedback and audit layer: screen display, spoken feedback, operation logs, and result export.

    The execution layer needs the most restraint. Firmware runs at the highest privilege level and can access hardware and memory directly. If a model is allowed to generate arbitrary instructions or arbitrary memory accesses, the risk multiplies.

    7.2 The Voice Input Path

    Built-in firmware audio capture works from power-on, but you have to implement audio link initialization, buffer management, and interrupt handling yourself. External firmware voice capture is performed on the OS or out-of-band management side and then passed into firmware; development cost is lower and model choice is more flexible, but it depends on external components.

    Whichever path you choose, three principles apply: prefer local processing to minimize audio leaving the device; obtain explicit authorization and prompt the user before recording; and keep a switch so voice input can be disabled at any time.

    7.3 Model Deployment and a Minimum Verifiable Flow

    Firmware-stage resources are limited, so keeping a full-size model resident is usually unrealistic. Options include a built-in small model, loading an external model file, or offloading inference to the OS or the cloud. A more conservative approach is to let the model only select tools from an approved command list and fill in their parameters.

    A minimum verifiable flow should include tool definitions, a whitelist, confirmation fields, and an audit log. A tool schema might look like this:

    1. {
    2. "name": "set_boot_order",
    3. "description": "Set the firmware boot order",
    4. "parameters": {
    5. "device": "string",
    6. "position": "integer"
    7. },
    8. "risk_level": "medium",
    9. "confirm_required": true
    10. }

    When the execution layer receives a request, it performs four checks in sequence:

    1. Is the tool on the whitelist?
    2. Are the parameter types and value ranges valid?
    3. Does the risk level require human confirmation?
    4. Is the request written to the audit log?

    The audit log should contain at least: timestamp, input summary, recognized intent, tool name, parameters, risk level, confirmation result, execution result, and error code. Denials should return a readable reason, for example:

    1. {
    2. "status": "denied",
    3. "reason": "tool_not_in_whitelist",
    4. "message": "The current firmware does not allow changing the boot order"
    5. }

    8. Security and Maintainability: Red Lines at the Firmware Layer

    • Least privilege: the agent should receive only the minimum capability needed for the task, and high-risk operations such as firmware variable writes and firmware flashing must not be exposed by default.
    • Second confirmation and rollback: high-risk operations require human confirmation, and rollback paths such as factory defaults, default configuration loading, or dual firmware backups must be retained.
    • Input validation: validate the length, format, and value ranges of both speech recognition results and text input to guard against prompt injection.
    • Trusted model provenance: built-in models and resource files should have their origin and integrity verified so they cannot be swapped out or tampered with.
    • Observability: record the input, intent, execution result, and result code of every interaction for auditing and post-incident review.
    • Privacy compliance: voice data is sensitive information and should be collected under principles of legality, legitimacy, necessity, and good faith, with minimal collection by default.

    If complex reasoning has to run in the cloud, you can combine general-purpose or compliant cloud capabilities — for example object storage for model files, a container platform to host the inference service, a logging service to collect invocation records, and monitoring and alerting to track availability. The specific selection should be evaluated against compliance requirements, cost, and operational capability.

    9. Conclusion

    From “a legacy system that won’t light up the screen under pure UEFI” to “voice interaction and LLM agents at the firmware layer,” the two topics span very different stacks, yet they follow the same thread: understand the underlying mechanisms, fill capability gaps at the right layer, and always set boundaries around risk.

    The first lesson is accurate attribution: booting and displaying are two separate problems and must be traced layer by layer. The second is filling in the lowest-level service: the INT 10h adapter layer works precisely because it sits at the bottom of the dependency chain, rather than patching things piecemeal across every layer. The third is delegating capability cautiously: the “smarter” firmware becomes, the more execution authority should be confined to a whitelist, with confirmation authority returned to the human.

    For practitioners, start with a spare old machine: first confirm the state of the firmware interface and GOP in a pure UEFI environment, then decide whether an adapter layer or a GPU swap is needed. If you go on to experiment with firmware-level agents, design the whitelist, confirmation flow, audit logging, and rollback first. Once you understand the boot chain, the display protocols, and the firmware runtime environment, compatibility problems become far less daunting — and the traditionally weak window before the OS boots opens up new engineering space.