Skip to content

Simple EFI application to disable the dGPU on certain Intel MacBooks, useful for disabling defective dGPU on 2011 MacBook Pros.

License

Notifications You must be signed in to change notification settings

BnuuySolutions/SetGfxMode

Repository files navigation

UEFI:SIMPLE - EFI development made easy

A simple UEFI "Hello World!" style application that can:

  • be compiled on either on Windows or Linux (using Visual Studio 2013 or MinGW-w64).
  • be compiled for either x86_32 or x86_64 UEFI targets
  • be tested on the fly, through a QEMU+OVMF UEFI virtual machine.

Prerequisites

Sub-Module initialization

For convenience, the project relies on the gnu-efi library (but not on the gnu-efi compiler itself), so you need to initialize the git submodules:

git submodule init
git submodule update

Compilation and testing

If using Visual Studio, just press F5 to have the application compiled and launched in the QEMU emulator.

If using MinGW-w64, issue the following from a command prompt:

make qemu

Note that in both cases, the debug process will download the current version of the EDK2 UEFI firmware and run your application against it in the QEMU virtual UEFI environment.
In case the download fails, you can download the latest from: http://tianocore.sourceforge.net/wiki/OVMF and extract the OVMF.fd as OVMF_x86_32.fd or OVMF_x86_64.fdin the top directory.

About

Simple EFI application to disable the dGPU on certain Intel MacBooks, useful for disabling defective dGPU on 2011 MacBook Pros.

Resources

License

Stars

Watchers

Forks

Packages

No packages published