diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 00000000..fc6a1518 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @nullmoth diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml new file mode 100644 index 00000000..61620cd4 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -0,0 +1,22 @@ +name: Something went wrong +description: 1401 or the Mac app failed, or did something you did not expect. +body: + - type: input + id: report + attributes: + label: Report ID + description: Press Send logs in 1401 (Windows) or the 1401 Mac app and paste the ID it gives you, like NM-ABCD1234. + validations: + required: true + - type: textarea + id: what + attributes: + label: What happened + description: In a few sentences of your own, what you did, what you expected, and what you saw instead. + validations: + required: true + - type: input + id: machine + attributes: + label: Your PC + description: Board or laptop model, CPU and GPU. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 00000000..0086358d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: true diff --git a/.github/ISSUE_TEMPLATE/hardware.yml b/.github/ISSUE_TEMPLATE/hardware.yml new file mode 100644 index 00000000..90c23a63 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/hardware.yml @@ -0,0 +1,27 @@ +name: My hardware is not supported +description: 1401 refuses or mishandles a CPU, GPU, board or laptop. +body: + - type: input + id: report + attributes: + label: Report ID + description: From Send logs in 1401, if it got that far. + - type: input + id: machine + attributes: + label: Your PC + description: Board or laptop model, CPU, GPU, and Wi-Fi card if you know it. + validations: + required: true + - type: textarea + id: what + attributes: + label: What 1401 did + description: Which step stopped, and what it said. + validations: + required: true + - type: textarea + id: known + attributes: + label: Known to work elsewhere + description: Links to a working OpenCore setup or driver for this hardware, if you know one. diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..f5544c65 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,29 @@ +name: Tests + +on: + pull_request: + push: + branches: + - main + workflow_dispatch: + +permissions: + contents: read + +jobs: + unit: + runs-on: macos-15 + timeout-minutes: 20 + env: + PYTHONDONTWRITEBYTECODE: '1' + steps: + - name: Check out the change + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + with: + persist-credentials: false + # Full history: some tests compare against an earlier commit as their negative control. + fetch-depth: 0 + - name: Show the Python in use + run: python3 --version + - name: Unit tests + run: python3 -m unittest discover -s tests -t . -p 'test_*.py' diff --git a/.github/workflows/windows-candidate.yml b/.github/workflows/windows-candidate.yml index 65c2cd85..eb465294 100644 --- a/.github/workflows/windows-candidate.yml +++ b/.github/workflows/windows-candidate.yml @@ -79,7 +79,7 @@ jobs: shell: pwsh run: | & "$env:RUNNER_TEMP/1401-stage/1401/engine/python/python.exe" -B tools/check_windows_package.py --stage "$env:RUNNER_TEMP/1401-stage" --repo "$env:GITHUB_WORKSPACE" --cache "$env:RUNNER_TEMP/1401-cache" --output "$env:RUNNER_TEMP/windows-verification.json" - if ($LASTEXITCODE -ne 0) { throw 'Windows packaged verification failed.' } + if ($LASTEXITCODE -ne 0) { & "$env:RUNNER_TEMP/1401-stage/1401/engine/python/python.exe" -c "import json,sys; d=json.load(open(sys.argv[1])); print(json.dumps({k: d.get(k) for k in ('failed_step', 'regression_tests', 'test_failure_locations')}, indent=1))" "$env:RUNNER_TEMP/windows-verification.json"; throw 'Windows packaged verification failed.' } - name: Create the deterministic candidate archive shell: pwsh run: | diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a21654d..345cddf2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,116 @@ Each release also bundles the NVIDIA driver and Mac app of the same version; see the [driver changelog](https://github.com/nullmoth/nvidia-macos-driver/blob/main/CHANGELOG.md). +## 3.0 +- Experimental: older macOS releases. The macOS picker now also lists macOS 14 Sonoma down to Mac OS X 10.7 Lion, each marked experimental. Their startup files and NVIDIA driver kits were checked against Apple's own files for each release and have not been run on a PC, so expect to send logs. macOS 15 and macOS 26 are unchanged and remain the supported releases. +- Releases below 10.13 are built as 10.13 and then changed for the older release; every change is listed in the build result with where it comes from. A PC that cannot run a release is told why before anything is written (AMD processors need 10.13 or later; a PC with only NVMe disks needs 10.10 or later). +- The stick carries the driver kit for the release it was built for. On these releases the driver is installed from Terminal with two lines the guide gives; the 1401 Mac app needs macOS 15 or later. +- The display driver starts first and the accelerator stays off until you switch it on, so a first start always shows the desktop on the display driver alone. + +## 2.9 +- Mac app: Intel Xe graphics now uses WhateverXe 0.8.0 and WhateverXe Graphics v0.4.1 (thanks b00t0x). New in the supported list: Tiger Lake `9A59 9AC0 9AC9 9AD9 9AF8`, Alder Lake `4626 4628 462A 46A0-46A2 46B0-46B2 46C0-46C2`, Raptor Lake-U `A720 A721`. Requirements are unchanged. +- 1401 for Windows: AMD processors can get IntelMKLFixup (thanks carnations-botanica) so applications built on Intel's Math Kernel Library run. It is an experimental driver: it is added only when "Include experimental drivers" is on. +- 1401 for Windows: the build notice now names community graphics projects that target a GPU in the scan (Radeon 680M beside an NVIDIA card, Meteor Lake and Arrow Lake, Radeon 780M/760M/740M), with author, licence and state. Nothing is downloaded for them. `docs/COMMUNITY-DRIVERS.md` lists every community Intel Xe and AMD graphics project we read, the licence text of each, and what we do with it. +- Radeon `1002:1900` is Phoenix / Hawk Point graphics, not Strix Halo; the notice names it correctly. +- Mac app: a new pane, Experimental drivers and features, with a switch per item and Select all / Deselect all. The builder places NullMoth's own EFI drivers that fit the PC (keyboard backlight on laptops, display audio) into the EFI switched off, and the pane turns each one on or off. +- Mac app: Driver settings window over the driver's settings catalogue, with the card's PCIe link and BAR facts. +- Mac app: Game Mode (off by default) with a menu-bar indicator; a GPU boost switch; a Ryzen laptop power-limit profile. +- Mac app: ARM apps can take an unencrypted iPhone or iPad app (.ipa). +- Every desktop gets SMCSuperIO for fan speeds, AMD ones included; VirtualSMC and its sensor plugins are built from source. +- Root actions resolve their package against the app's own pinned list, never from the page. +- Arrow Lake: a corrected MADT when firmware lists only x2APIC processors (#252, #64); extra processor devices hidden on HX laptops (#141, #110). +- AMD laptops: ALIB fix built per machine, 0xFF000000 MMIO whitelist, SSDT-PLUG tables off, relocation block when the installer needs it. +- DSDT repair: each deferred Scope is guarded, so macOS no longer drops the whole DSDT on some Lenovo and Dell laptops. +- Coffee Lake-H laptops: the firmware page every reported panic named is reserved (#328, #451). +- Resizable BAR: an installed EFI never resizes the GPU window above 8 GB, and the BIOS guide no longer contradicts itself. +- VMD and unusable internal drives are planned for (BIOS path per maker, reversible Windows preparation, external-drive option) instead of stopping the build. +- Full macOS installer option (verified, resumable download) for PCs where the online Recovery install fails. Finish a new macOS 26 install from Recovery when setup cannot draw (#86). +- Apple ID: every PCI Ethernet controller is marked built-in so it is en0. +- USB map import (your own UTBMap.kext), new serial, own recovery image, and own config.plist options. +- After a macOS update that left the driver parked, the Mac app says so (#484), retries the kernel collection build, and turns the driver back on. +- Updates keep your hidden auxiliary boot entries (#371). Vault is set to Optional (#153). +- Send logs: no more hang on "Waiting for your Mac password" (#369, #373, #525); flicker samples, display traces, WindowServer watchdog samples, and failed shaders are included; a per-frame log line can no longer fill the kernel log (#16). +- Clearer stops in the writer: antivirus removing built files, Windows "Access is denied" on the stick, Apple download failures, installer download errors. +- Stick logs name the board and CPU. The first-login report says whether the accelerator offered its Metal plugin. +- Intel Xe support updated (WhateverXe 0.8.0, 60 GPU ids). Community drivers reviewed against their licences. +- AMD/Intel side: H.264 and HEVC decode through Vulkan video where macOS has no hardware decoder, Mesa 26.3.0-rc3. + +## 2.8.1 +- Updates no longer fail when GitHub's downloads are down. If a GitHub download fails, the Mac app (driver updates and its own updates) and 1401 for Windows (the driver package on the stick) fetch the same file from nullmothsystems.com instead. Every file from either place is checked against the release's SHA-256 list and the NullMoth release signature, so a file that differs by one byte is refused. If GitHub's release list itself does not answer, the Mac app reads the release from the site the same way. + +## 2.8 +- 1401 for Windows and the Mac app now bundle NullMoth 2.8: NVIDIA 620, DLSS 4 / 4.5 behind MetalFX (Super Resolution, Frame Generation and Ray Reconstruction), Metal 4, and fixes for crashes and freezes in games with ray tracing and frame generation. See the driver changelog for every change. +- Mac app: the desktop report now says whether the audio driver started at this boot and, if it stood down, why, so a report from a Mac with no sound names the reason. +- Mac app and driver run on macOS 15 and macOS 26. + +## 2.7.2 +- Homebrew on Intel Macs: Homebrew's own installer now refuses Intel Macs. The ARM apps card has a Set up Homebrew button that installs ARM Homebrew in /opt/homebrew, with its packages translated for this Mac, beside Intel Homebrew in /usr/local. `brew` uses the one you pick as primary, and `abrew` and `ibrew` always reach ARM and Intel. +- ARM apps: installing a Homebrew formula translates the commands it puts in bin/ right away; its helper programs are translated the first time something runs them. Parts shared between programs, such as a bundled library, are translated once and reused, so a second program that bundles the same library translates in about a minute instead of more than twelve. +- ARM apps: instructions for CPU features Apple silicon does not have (SM3, SM4, SVE, the random number register) now behave as on Apple silicon instead of stopping the translation. Programs that bundle OpenSSL, such as git's HTTPS helper, translate and work. +- ARM apps: memory that is writable and executable at once is refused, as on Apple silicon, unless it was requested for just-in-time code. +- ARM apps and the driver are built for macOS 15 and macOS 26, and do not run on a later macOS. +- ARM apps: a command that was interrupted while translating is translated again the next time it runs. +- ARM apps: translation fixes for programs with hand-written assembly and interpreters: indirect jumps and calls between them carry the full register state, and a program resumes correctly after an error is thrown. Dot-product instructions that use one element of a register, and pointer-authentication hints, now translate correctly. Apps whose frameworks have spaces in their names, or that keep exception tables in the older DWARF form, translate. +- ARM apps: the shared system page reads the same values a real Apple silicon Mac reports. +- ARM apps: a translated copy of a hardened app stays hardened, and a translated program ignores image and fixup lists from the environment. +- Security: the Mac app's root scripts run from a private copy that root checks against hashes built into the app, so another program cannot swap one while the password prompt is up. +- Security: updates are checked against a signature that names the product and version, and the app refuses a driver or ARM package older than the installed one. +- Windows builds: updated OpCore Simplify (Intel, Wi-Fi, and kext updates). 1401 keeps choosing the NVIDIA settings itself, and stays on itlwm for Intel Wi-Fi. +- Bundles the NVIDIA driver and Mac app 2.7.2. + +## 2.7.1 +- ARM apps: turning ARM apps on keeps /Library/NullMoth readable and repairs it on Macs where 2.7 left it readable by root only, so translated apps start without `sudo chmod 711 /Library/NullMoth`. +- A Mac parked by -nvoff (for example halfway through a driver update) now shows why in the Mac app, with a button to turn the driver back on. +- Real Mac Pro (2019) support (experimental): a Mac Pro started by Apple's own firmware installs the driver without OpenCore. Its settings go in the Mac's NVRAM, and System Integrity Protection must be turned off first (Recovery > Terminal > csrutil disable). Removal takes out only what the install added. +- Real Macs set up with OpenCore Legacy Patcher (such as a Mac Pro 5,1) keep the model OCLP gave them when preparing for macOS 26 Tahoe. + +## 2.7 +- ARM apps (opt-in, experimental): the Mac app has an ARM apps card that installs NullMoth's translator for apps built only for Apple silicon, checks the Mac, and translates, opens, and removes apps. The package is checked against its SHA-256 and the NullMoth release signature before anything is installed. +- 1401 for Windows: tick Also set up ARM apps (opt-in) on a fresh install, and the Mac app offers a one-click finish on first start. +- Writing the stick: 1401 checks that Apple will serve the download before erasing your USB stick. If Apple refuses, the stick is not touched. +- Apple's 406, 405, 408, 425, and 429 answers are retried like server errors, try another route, and the message says Apple refused, not that your network failed. +- A resume that can never succeed (416) stops at once and says why. +- A failed readback names the stick and tells the two causes apart: a failing write (try another port) or a stick that reports a size it does not have (use another stick). +- The read-only message explains the lock switch, and what it means when the stick has none. +- Bundles the NVIDIA driver and Mac app 2.7. + +## 2.6.6 +- Recovery downloads: when Apple's server refuses the file list (403), 1401 asks again with a fresh token. A web page served in place of the file list, and a connection that answers with no data, are now named in the stop message instead of a bare error. +- Writing the stick: when Z: to G: are all taken, 1401 also tries F:, E: and D:, and lists the letters in use if none is free. A stick Windows reports offline now says why and how to bring it online, and a stick that drops off USB after the image is written says so in one line. +- Building: when OpenCore's check finds a driver missing, the stop lists what is in EFI/OC/Drivers. +- Intel PCs that stop at "EB.MM.AKM" with only a few kernel slides free get the BIOS checklist (Above 4G Decoding, CSM off, a smaller iGPU memory). +- Mac app: the stops for "runtime payload requires macOS" and "OpenCore's startup partition could not be confirmed" now name the macOS version and the partition the Mac started from. +- Security: 1401 for Windows installs its own update, and puts a driver or Mac app on the stick, only with a valid NullMoth signature; anything unsigned or changed is refused. +- Security (Mac app): administrator steps no longer write through files another program could swap in your user folder, and driver updates need a valid NullMoth signature. +- Bundles NVIDIA driver 2.6.6. + +## 2.6.5 +- Rebuilding a stick from its boot logs now reaches the kernel's boot arguments. Once one start had stored boot-args in the PC's NVRAM, OpenCore refused every later build's ("ignored, exists"), so added options such as npci=0x2000 never applied until NVRAM was reset by hand (#124, #126). When the logs show no installed macOS on an internal disk, the stick now replaces the stored boot-args; a PC that runs macOS keeps its own and is told to reset NVRAM once. +- If the screen stops inside the touchpad driver's start ("VoodooGPIO... Loading GPIO Data for AMD"), the rebuilt stick leaves the VoodooI2C touchpad stack off; the keyboard keeps working and a USB mouse drives the installer (#124). +- Two kext pairs that do the same job are never both on: USBInjectAll with USBToolBox, and IntelMausi with IntelSnowMausi. Every config in the field reports with the startup crash "element modified after free" had one of these pairs on. 1401 leaves USBInjectAll and IntelSnowMausi off when it builds, and the Mac app's EFI check flags either pair in an existing config and fixes it. +- Mac app: setup no longer picks a Windows (NTFS) partition as the OpenCore partition. An EFI folder copied onto one was chosen, and its config backup failed because macOS cannot write NTFS (nvidia-macos-driver #453). +- Mac app: a driver update can use the driver package from the 1401 download you already have, instead of downloading it again. The file must match the release's SHA-256 exactly (PR #125, thanks developforapple / wangbo). +- Bundles NVIDIA driver 2.6.5. + +## 2.6.4 +- Writing the stick no longer stops with "this is the disk the computer booted from" on PCs whose Windows storage service lists no disks. On that route, 1401 counted the stick's own boot partition as the PC's, and 28 of 29 such writes stopped there. It now refuses the disk holding the partition Windows actually started from. +- When Apple's recovery server answers "400 Bad Request", 1401 asks again over HTTPS. If it still fails, it says what to change (antivirus web scanning, a hotspot or a VPN) instead of showing only the error. +- Mac app: if a Mac's saved kernel panic shows IntelBTPatcher crashing Bluetooth at startup ("IOGMD: not wired"), the next driver update turns that kext off. Bluetooth keeps working through IntelBluetoothFirmware. Seven Tahoe laptops had this panic, one restarting ten times in twenty minutes. +- Mac app: a **HiDPI (Retina) modes** switch. It turns on the driver's larger desktop (boot-arg nvfbhidpi=1) that "looks like" sizes above half the screen need, for example 1920 x 1080 on a 2560 x 1440 screen, including sizes added with BetterDisplay. +- Laptops with AMD Ryzen AI 300 (Strix Point) processors are offered the USB input-lag fix XhciNudge when experimental drivers are on (#121). +- Mac app: the AMD / Intel test driver leaves alone any GPU that Apple's own drivers run. +- Bundles NVIDIA driver 2.6.4. + +## 2.6.3 +- Mac app: Intel Xe graphics for Tiger Lake, Alder Lake and Raptor Lake on macOS 15.8 or 26.7 and later, through b00t0x's WhateverXe (thanks b00t0x). It shows only on the Intel GPUs WhateverXe supports, downloads its parts from the author's GitHub with every file checked, and **Turn it off** puts the config back as it was. +- Mac app: **Allow an app...** under Microphone and camera lets an app such as Discord use the microphone, camera and screen recording. With the driver installed macOS never asks, so those apps got silence. The method follows tccplus by Jeremy Legendre. +- Mac app: when the driver is parked by "Start once without NVIDIA driver" or -nvoff, a **Turn the driver on** button removes only that switch. +- Mac app: the AMD / Intel test driver checks SIP before it downloads anything, and skips a firmware mirror that refuses the download. +- Mac app: Macs using itlwm for Wi-Fi are told to install HeliPort, the app itlwm joins networks through. +- The boot picker's "Start once without NVIDIA driver" also starts that one time without WhateverXe. +- MediaTek RZ616 Bluetooth works: its USB ID gets the firmware entry of its family (#336). +- Bundles NVIDIA driver 2.6.3. + ## 2.6.2 - When the stick does not start macOS, 1401 for Windows now says what to change, in numbered steps, before it offers to send the logs. It reads the stick's logs, the line you type for where the screen stopped, and this PC's scan, and covers: no room in memory to start (EB.MM.AKM), Secure Boot blocking OpenCore's drivers, a stick missing HfsPlus.efi, the Windows entry chosen instead of 1401, a freeze at EXITBS:START (with the settings for your CPU: VT-d on Intel, IOMMU on AMD), a stop at PCI configuration, a black screen with only a cursor after the install, a kernel panic, the prohibited sign, no macOS entry in the menu, an installer that shows no disk (AHCI, VMD) and "waiting for root device". - EFI builds work on Windows accounts whose names are not in English: OpenCore's validator could not read the config from such a folder, and every build there stopped with "ocvalidate issues=0" (115 builds). diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 104bd872..8dea5788 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -17,3 +17,7 @@ descriptions and bug reports are closed without review. - One change per pull request, and say what you tested: your PC, the stick, what you ran and what it printed. - Keep the description short: what was wrong, what you changed, how you tested it. Link the issue. - Run the tests before you open it: `python3 -m unittest discover -s tests -t . -p 'test_*.py'`. +- Sign off every commit (`git commit -s`). It certifies you wrote the change or may submit it under this + repository's licence (Developer Certificate of Origin, ). + +Setting up, the repository map, the full tests and the rules for changes are in `DEVELOPING.md`. diff --git a/DEVELOPING.md b/DEVELOPING.md new file mode 100644 index 00000000..1f7b46ff --- /dev/null +++ b/DEVELOPING.md @@ -0,0 +1,134 @@ +# Developing 1401 + +This is the guide for working on 1401's source. To report a bug, see `CONTRIBUTING.md`. + +## How changes get in + +1401 has one maintainer, who reviews and merges every change. You work in your own fork and send a pull request to +`main`; nothing lands without review. A small pull request with a clear test is merged much faster than a big one. + +1. Fork the repository and clone your fork with full history (`git clone` without `--depth`): some tests compare + against an earlier commit and fail on a shallow clone. +2. Make one change on its own branch. +3. Run the tests (below). They must pass on your machine before you open the pull request. +4. Sign off every commit (`git commit -s`, see "Sign-off" below) and open the pull request with the template filled in. + +## What you need + +| Part | Folder | Runs on | Needs | +|---|---|---|---| +| Engine (scan, build, BIOS guide, stick writer) | `p1401/` | any OS for the tests; Windows in the app | Python 3.12 or newer | +| Windows app (the window) | `windows/App/` | Windows | .NET SDK 8.0.425 (`global.json` pins it), Visual Studio C++ tools for `native/` | +| Mac app (after the install) | `mac/` | macOS 15 or newer | Xcode (Swift 6.3 and 6.4 both build it) | +| UEFI loader (experimental, unused by the app) | `loader/` | QEMU | Rust | +| Upstream engines (pinned copies) | `upstream/` | | do not edit; `PINNED.json` names the commits | + +Most work is in the engine, and the engine's tests need no special hardware. + +## Repository map + +- `p1401/`: the engine. Each step the window runs is a module: `scan.py` (Check this PC), `engine.py` and + `nullmoth.py` (Build the Mac setup and its rules), `guide.py` (Your BIOS steps), `usbwriter.py` (Create the macOS + stick), `report.py` (Send logs). `community_gpu.py` lists other people's GPU drivers and when to mention them. +- `windows/App/`: the C# window. It runs each engine step as `python -u -m ` and shows its output. +- `mac/`: the Mac app that finishes the setup after macOS is installed. `mac/build.sh` builds it and runs its own tests. +- `tests/`: unit tests (`test_*.py`), the hardware corpus (`tests/corpus/`), and the corpus runner (`run_corpus.py`). +- `tools/`: release, packaging and corpus tools. +- `docs/HOW-IT-WORKS.md`: what each step does, in order. Read it before changing a step. + +## Tests + +### Unit tests: no hardware, about 40 seconds + +```bash +python3 -m unittest discover -s tests -t . -p 'test_*.py' +``` + +A few tests are skipped outside Windows or without optional downloads; the skip message says why. These run on every +pull request. + +### The hardware corpus: real machines, offline + +The corpus is a set of public Hardware Sniffer reports from real PCs. Building all of them checks that a change to +the rules does not break a machine that worked before. + +```bash +python3 tests/corpus/fetch.py # download the reports, pinned by commit +python3 tests/run_corpus.py build # build every machine, apply the rules, run ocvalidate +``` + +The fetch and build take about three minutes and about 300 MB in `out/`, and need internet access (the engine +downloads OpenCore and the kexts it picks). Then the engine's own self-tests, which read the built corpus: + +```bash +python3 -m p1401.guide --selftest && python3 -m p1401.apple --selftest && python3 -m p1401.usbwriter --selftest \ + && python3 -m p1401.scan --selftest && python3 -m p1401.nullmoth --selftest +``` + +A self-test that says "can't run" is missing the corpus; fetch and build it first. `python3 -m p1401.selftest` is +behind the engine and fails today (its fake downloads predate the ZIP check in `p1401/archive_download.py`, and two +later arms no longer match the engine); bringing it up to date is an open task. Run the corpus whenever you change +a rule, a kext choice or anything in `p1401/engine.py` or `p1401/nullmoth.py`, and say in the pull request that it +passed. + +## Building + +**Windows app:** + +```powershell +dotnet build windows/App/App.csproj --configuration Release --output build +``` + +`.github/workflows/windows-candidate.yml` is the full packaging run, step by step. + +**Mac app:** + +```bash +bash mac/build.sh /tmp/1401-mac +``` + +It builds and runs the app's own tests first, then the app, in under a minute. `mac/Resources/NullMothSafe.efi` is +checked in; rebuild it only if you change `mac/efi-safe/` (rustup's `x86_64-unknown-uefi` target, then +`cargo build --release --target x86_64-unknown-uefi` in that folder, and copy `nullmoth-safe.efi` over it). The build stops with a `STOP:` line naming the test that failed. Its output is ad-hoc signed and is for testing only; +releases are built and signed by the maintainer. + +## Testing on real hardware + +- **Writing a stick erases it.** Use a spare stick with nothing on it, and check the disk number 1401 shows before you + confirm. +- Never test a change on a machine whose data you cannot lose. A wrong boot setting can leave a PC unable to start + until the BIOS is reset. +- Say in the pull request exactly what you ran it on: the board or laptop model, CPU, GPU, and what you saw. + +## Rules for changes + +- **No Apple code.** Nothing written by Apple goes into this repository: no binaries, no files copied from macOS or + its installers, and nothing generated from Apple's SDK headers. 1401 downloads what it needs from the original + source on the user's machine. +- **Other people's code keeps its licence.** If you add or update third-party code, say where it comes from, pin the + exact version, and add it to `NOTICE.md` and `p1401/licenses.json`. Code with no licence cannot be added; it can only + be linked so the user downloads it from its author. +- **Downloads are pinned.** Anything 1401 downloads names its exact URL, size and SHA-256, and the engine refuses a + file that does not match. +- **No secrets, keys or personal data** in code, tests or fixtures. Hardware reports in the corpus are public ones. +- **Fail loud.** If a step cannot do what it says, it stops and tells the user why. It never carries on as if it had + worked. +- Keep comments plain: explain why the code does what it does. + +## Sign-off + +Every commit must be signed off: `git commit -s` adds a `Signed-off-by:` line with your name and email. It certifies +that you wrote the change, or have the right to submit it, under this repository's licence, as set out in the +Developer Certificate of Origin (). Pull requests with unsigned commits cannot be +merged. + +## Where to start + +Issues labelled `help wanted` are open for anyone. Good first areas: + +- A machine that fails to build: add its public Hardware Sniffer report to the corpus and fix the rule it breaks. +- The BIOS guide (`p1401/guide.py`): missing or wrong steps for a board or laptop you own. +- Bring `p1401/selftest.py` back up to date with the engine (see Tests above). +- Community GPU drivers (`p1401/community_gpu.py`): a driver that is missing, or one whose release has moved on. + +Ask in the issue before starting something large, so two people do not build the same thing. diff --git a/NOTICE.md b/NOTICE.md index 61082ecd..181ccf3e 100644 --- a/NOTICE.md +++ b/NOTICE.md @@ -50,6 +50,34 @@ makes to their output lives in `p1401/` and is recorded per build as a named rul | BluetoothWCN7850 (Qualcomm WCN7850 Bluetooth), by razvanccr | Release `v1.0.0` | **MIT**. Pinned. Added for the USB IDs it matches. | | XhciNudge and KernReserveLow (AMD laptop USB fixes), by MonkaKokosowa | Releases `1.0` | **MIT**. Pinned. Opt-in, for AMD xHCI 1022:161D/161E/15D6/15D7. | | LegionCbmrFix, LegionI2CArrowLake, LegionITEKbdFix, LegionCpuPower, by watchthelight | Releases `1.0.0`, `1.1.0`, `1.0.0`, `0.3.3` | **BSD-3-Clause** (CbmrFix), **ISC** (the others). Pinned. CbmrFix and CpuPower are opt-in. | +| AMDRadeonRDNA4 (AMD RX 9070 / R9700 display driver), by Sunneva N. Mariu (RX4Darwin) | Built by NullMoth from commit `49f7f20` of RX4Darwin/AMDRadeonRDNA4, package `0.1.0` | **BSD-3-Clause**; the package carries its licence (`LICENSE-AMDRadeonRDNA4.txt`). Pinned by size and sha256 (`p1401/amd_rdna4.py`). Opt-in (experimental drivers), only for 1002:7550 and 1002:7551. Display only, no acceleration. | +| WhateverXe (Intel Xe graphics, Mac app, opt-in), by b00t0x | Release `0.8.0` (commit `db438fd`) | **BSD-3-Clause**. Pinned by sha256 in `mac/Resources/nullmoth-setup.sh`; only offered for the Intel GPU IDs it supports. | +| WhateverXe Graphics, its AMFIPass build and its uninstall script, by b00t0x | Release `v0.4.1` and commit `88d64a3` of WhateverXe-Graphics | Downloaded on the user's Mac from the author's GitHub only, each pinned by sha256. Never mirrored or redistributed by NullMoth: the package holds Apple's Intel graphics drivers as adapted by its author. | +| IntelMKLFixup (Intel MKL compatibility for AMD processors), by carnations-botanica | Release `1.0.0` | **GPL-3.0** (`LICENSE` in the repo). Pinned by size and sha256 (`p1401/community.py`); source: the `1.0.0` tag. Opt-in (experimental drivers), AMD processors only. | + +## Community graphics projects read for NullMoth's own drivers + +Nothing in this table is downloaded or shipped by 1401. NullMoth's own drivers use the idea, and where code is reused it +keeps the author's notice and licence. The full list (32 projects, licence and verdict for each, pinned commits) is +`docs/COMMUNITY-DRIVERS.md`. + +| Project | License | What NullMoth takes | +|---|---|---| +| PrimeBridge, by myvoow (https://github.com/myvoow/PrimeBridge) | MIT, Copyright (c) 2026 myvoow. Its author allowed NullMoth to use and link it (stated to the NullMoth maintainers, November 2026) | The method of showing an NVIDIA-rendered desktop on the internal screen of a laptop whose panel belongs to an AMD integrated GPU: copy each frame into the firmware framebuffer, and write straight into it once the iGPU's memory window has been verified. Any code taken from `PrimeBridge-source/` keeps the MIT notice above. Its `NVRMFB-patch/` is NullMoth's own PolyForm code and is not reused. | +| Hackintosh-XPS13Plus-IrisXe-Tahoe, by JulioNectar | Thou Shalt Not Profit License 1.0 | Not included and not hosted. For a Dell XPS 13 Plus the build notice gives the author's archive of one commit, pinned by SHA-256, for the user to fetch from the author's GitHub. | +| WTLIntelGfx (XeGfx), by watchthelight | BSD-2-Clause for the shim, tools and docs; the parts forked from NullMoth stay PolyForm Noncommercial | Reviewed patches for the AMD / Intel test driver (Meteor Lake and Arrow Lake bring-up). | +| nullarc by luuumi-dev, ArrowWhatever by Mountainatic, IrisXe-macos-driver by zep245, vibe-nullmoth-xe3-qemu by ericek111, Meteor-Lake-Xe-LPG-Metal-Graphics by VedCloud, RedNavi by Helemen7 | Per project (`docs/COMMUNITY-DRIVERS.md`) | Read for findings on Radeon 780M, Arrow Lake, Tiger Lake, Panther Lake and Navi 32 bring-up. A patch is merged only where its licence allows it and the author is credited in the commit. | + +### Written again in NullMoth's own code + +Where a community project showed what a machine needs, 1401 carries its own implementation, with its own tests. Nothing +below was copied; the project is named as the source of the finding. + +| Project | What it showed | Where it is in 1401 | +|---|---|---| +| Hackintosh-XPS13Plus-IrisXe-Tahoe, by JulioNectar | A 4 performance + 8 efficiency core Raptor Lake-P laptop freezes right after EXITBS with the efficiency cores on, because the kernel divides the logical-processor count by a core count that is 128 under ProvideCurrentCpuInfo; CPUID leaf 1 reporting 128 fixes it | `p1401/machine_recipes.json` and `policy.py` (`set_cpuid1_logical_per_package`), `tests/test_machine_recipes.py` | +| AMDHelper, by LuneFlu | A Ryzen laptop is helped by a power-limit profile applied at start and refreshed | `mac/Resources/nullmoth-ryzen-power.sh`, `tests/test_ryzen_power.py`. The profile calls RyzenAdj (FlyGoat/RyzenAdj, LGPL-3.0), tag v0.19.0, commit ea71739b4a3e1a0a624dfd1c9c268a31cb2a4182. Upstream has no macOS port, so NullMoth wrote the OS layer (`mac/Resources/ryzenadj-macos/osdep_macos.c`, LGPL-3.0, combined with the unmodified tag; this folder plus the tag is the complete source) and the NMSMN kext it talks to (driver tree, opt-in with nmsmn=1). The pinned build's SHA-256 is in `mac/Resources/ryzenadj.sha256`: 97ade67325c435c158ae0825cb4442d2718f098d2201721fa71c3f19fddbb9f3 (signed ad hoc with the entitlement com.nullmoth.ryzenadj, which the kext requires of its caller; the kext lets only a root process named ryzenadj with that entitlement connect, allows only the SMU mailbox registers, and runs the power-table exchange with the SMU itself and reads the table only inside firmware-reserved memory) | +| AMD_Vanilla, by AMD-OSX | The kernel patches AMD processors need | The build already uses the maintained fork's list, which covers it; `tools/compare_amd_kernel_patches.py` shows that (two of its patches are stale for macOS 26) | ### The download mirror diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 00000000..ee98bc14 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,14 @@ +# Security + +## Reporting a vulnerability + +Report it privately through GitHub: [open a security advisory](https://github.com/nullmoth/1401/security/advisories/new). +Please do not open a public issue for a vulnerability. Include the 1401 version, the macOS version, and the steps that +show the problem. We answer in the advisory thread. + +## Where the driver comes from + +The only official sources are this repository's [releases](https://github.com/nullmoth/nvidia-macos-driver/releases), +the 1401 app (which downloads from those releases), and [nullmothsystems.com](https://nullmothsystems.com). Copies on +other sites or in other repositories are not ours. The 1401 apps check every driver package and app update against a +detached Ed25519 signature made with the NullMoth release key before they install it, and refuse anything unsigned. diff --git a/docs/COMMUNITY-DRIVERS.md b/docs/COMMUNITY-DRIVERS.md new file mode 100644 index 00000000..a37b0a9a --- /dev/null +++ b/docs/COMMUNITY-DRIVERS.md @@ -0,0 +1,202 @@ +# Community drivers for Intel Xe and AMD graphics + +NullMoth does not have to write every graphics driver alone. This page lists every community project for Intel Xe and AMD +graphics that came up in support chats and issues, what its licence lets us do, and what 1401 does with it. It was +written from a clone of each project at the commit shown, not from its README alone. The same data is in +`p1401/community_gpu.py`, and `tests/test_community_gpu.py` fails when they disagree. + +## What 1401 does + +| Kind | Projects | How | +|---|---|---| +| Downloaded from the author, pinned by URL, size and SHA-256 | WhateverXe 0.8.0 and WhateverXe Graphics v0.4.1 (Intel Xe-LP, Mac app opt-in); IntelMKLFixup 1.0.0 (AMD processors, experimental opt-in); the RX 9070 display driver (built by NullMoth from the pinned commit, experimental opt-in) | A project is added only if its licence lets 1401 use it (`p1401/licenses.json`, `tests/test_licenses.py`). Nothing is vendored. Credit and licence are in `NOTICE.md`. | +| Idea built into NullMoth's own driver | PrimeBridge | See "PrimeBridge and the hybrid path" below. | +| Patches reviewed for merge into the AMD / Intel test driver (NMXGPU) and the NVIDIA driver | WTLIntelGfx, ArrowWhatever, NvGfx, nullarc, IrisXe-macos-driver, Meteor-Lake-Xe-LPG-Metal-Graphics, RedNavi | A patch is merged only where its licence allows it and the author is credited in the commit. The checklist is in "What to review" below. | +| Optional download, pinned | XPS13Plus-IrisXe-Tahoe (Thou Shalt Not Profit License) | Free to use, but a distributor must license copies under it, so it is never merged or hosted. On a Dell XPS 13 Plus the build notice gives the author's archive of one commit with its size and SHA-256 for the user to fetch and check. | +| Linked: the author's own release, fetched on the user's machine | nullarc 0.4.0-alpha (Phoenix / Hawk Point, machines with no NVIDIA card), Meteor-Lake-Xe-LPG-Metal-Graphics 0.3.21 (Dell Latitude 5350), Hackintosh-X1Carbon-G11-IrisXe-Tahoe V0.4 (ThinkPad X1 Carbon Gen 11), MyIntelGPU 4.4.121 (A7AC) | Whatever the licence, NullMoth never hosts, bundles or merges these. On a machine whose scan shows the hardware a project targets, the build notice gives the author's release file pinned by URL, size and SHA-256 (`LINKED_DOWNLOADS`), and the user's machine fetches it from the author. | +| Named in the build notice, nothing downloaded | nmx-intel, vibe-nullmoth-xe3-qemu, mothbridge-630 (no licence, all rights reserved, no release); RembrandtGfx (GPL-2.0, no release yet) | The notice links the author's page for the matching GPU. `docs/COMMUNITY-LICENCE-REQUEST.md` is the request to the authors for MIT or PolyForm Noncommercial. | +| Named in the build notice | PrimeBridge, WTLIntelGfx | When the scan shows a GPU the project targets, the notice says who made it, its licence and its state. Nothing is installed. | +| Not used | The rest | The reason is in the table: no licence and no useful driver, a licence we cannot meet, machine-written code, a copy of a project we already use, or not a driver for real hardware. | + +Rules applied to every row: + +- A project with no licence text is all rights reserved, whatever GitHub's label says. Only the LICENSE file counts. Its code is never hosted, bundled or merged. If it has a release for the user's hardware, the build notice links that release (pinned) so the user's machine fetches it from the author; otherwise it is only named, with a link to its author. +- Projects whose licence forbids any use with AI tools (the ChefKiss family: NootedRed and its forks, MetalCyan) are not read or listed here. +- NullMoth is free and noncommercial, and its own licence is PolyForm Noncommercial 1.0.0. A project under the same licence is + compatible: its patches are reviewed for merge into NMXGPU and the driver with the author credited. 1401 itself downloads + only what its licence lets 1401 use and credit. +- Code written by a coding assistant (the repository says so in its README, an assistant-instructions file in the tree, or commit + trailers) is read for the idea and the implementation is written again. This is the rule used for PRs #479 and #524. +- Untrusted code was only read. No script or binary from these repositories was run on any NullMoth machine. + +## All projects read + +The commit is the head of the default branch on the date shown (2026-11-08 for the first read, 2026-11-13 for the census +of every project claiming Tahoe), except WhateverXe and WhateverXe Graphics, where it is the release that 1401 pins. Licence is what the LICENSE text says. + +| Repo | Licence (read from the LICENSE text) | What it is | Verdict | How 1401 uses it, or why not | Commit read | +|---|---|---|---|---|---| +| b00t0x/WhateverXe | BSD-3-Clause | Intel Xe-LP graphics (Tiger, Alder, Raptor Lake) by running Apple's Tiger Lake driver; Lilu plugin | Integrated | release 0.8.0 (this commit) pinned in the Mac app; the Mac app already offered 0.6.1 (commit 68a2427) | `db438fd` (2026-11-08) | +| b00t0x/WhateverXe-Graphics | tools BSD-3 only; payloads not licensed | the graphics payloads WhateverXe needs, as an installer package | Integrated | release v0.4.1 pinned; fetched on the user's Mac from the author only, never mirrored (payloads are Apple's drivers) | `88d64a3` (2026-11-08) | +| carnations-botanica/IntelMKLFixup | GPL-3.0 | in-memory patch so Intel MKL applications run on AMD processors; Lilu plugin | Integrated | release 1.0.0 pinned in p1401/community.py, experimental opt-in, AMD processors only | `b77cd91` (2026-09-20) | +| RX4Darwin/AMDRadeonRDNA4.kext | BSD-3-Clause | RX 9070 / 9070 XT display driver (Lilu plugin over IONDRVFramebuffer), no acceleration | Integrated | already built from this commit and mirrored by NullMoth (p1401/amd_rdna4.py); experimental opt-in | `49f7f20` (2026-10-12) | +| myvoow/PrimeBridge | MIT (source, script, docs); NVRMFB patch is NullMoth's PolyForm code | internal screen of MUX-less Radeon 680M + NVIDIA laptops: forced HDMI head plus a copy into the firmware framebuffer | Idea built into our driver | release 0.4.8 needs NullMoth 2.6.3 exactly (hard-coded NVRMFB offsets); rebuilt in our driver as NMGopFB (AMD panel provider, 2.9) | `8c08c3e` (2026-11-02) | +| Helemen7/RedNavi | BSD-3-Clause | RX 7800 XT (Navi 32) display driver on its own DCN 3.2 kext; developer prototype | Reviewed for merge into NMXGPU / the driver | assistant-aided (263 commits), not installable; read for the DCN bring-up order that NMXGPU's RDNA 3 path needs | `587de1a` (2026-11-08) | +| Mountainatic/ArrowWhatever | PolyForm-NC (patches); MIT (scripts, docs) | ten patches over XeGfx 0.0.44 for Arrow Lake-HX: GGTT zero-copy scanout, 240 Hz HiDPI, Tile4/CCS scanout, colour | Reviewed for merge into NMXGPU / the driver | patches only (no code of its own to fetch); reviewed for NMXGPU and NMIntelFB, scanout ideas feed the hybrid import path | `555fbb2` (2026-11-06) | +| OscarrWu/780m-hackintosh | MIT | Radeon 780M kext with its own PSP/SMU/GMC power-up and RADV Darwin patches, staged bring-up notes | Reviewed for merge into NMXGPU / the driver | MIT and no release yet; its power-up order is reviewed for NMXGPU's RDNA 3 path beside nullarc | `a3a45d9` (2026-11-13) | +| samwu07/xegfx-thinkbook14plus-mtl | BSD-2-Clause | XeGfx on a ThinkBook 14+ 2024 (7D55): GuC band fix, framebuffer move, zero-copy flip, Sequoia 15.8.1 | Reviewed for merge into NMXGPU / the driver | Sequoia only; its GGTT and IOPresentment fixes are reviewed for NMXGPU and NMIntelFB | `f85a4d5` (2026-11-11) | +| taqieallah/ThinkPad-E16-ArrowLake-macOS | BSD-2-Clause | XeGfx on an Arrow Lake-H 255H (7D51): GPU-composited desktop, GGTT flip, deferred ordering, Tahoe | Reviewed for merge into NMXGPU / the driver | no release; its K9b ordering and flip work are reviewed for NMXGPU | `e2115d3` (2026-11-13) | +| watchthelight-labs/NvGfx | PolyForm-NC | fork of our NVIDIA driver (the base of XeGfx) | Reviewed for merge into NMXGPU / the driver | PolyForm Noncommercial is our own licence, so its patches can go back into NMXGPU and NVRM; reviewed there | `04f011e` (2026-10-31) | +| watchthelight-labs/WTLIntelGfx | BSD-2-Clause for shim/tools; PolyForm-NC for the forks of our code | i915 on XNU for Meteor Lake and Arrow Lake (Metal, Vulkan, GPU-composited desktop); renamed from XeGfx | Reviewed for merge into NMXGPU / the driver | its release is one bring-up kext (no accelerator, plugin or installer), so it is not a user package; patches reviewed for NMXGPU | `aac09a4` (2026-11-06) | +| wzh4869/Radeon-680M-Hackintosh | GPL-2.0 | RembrandtGfx: Radeon 680M (rev 02 -> c7 compatibility) with an accelerated Tahoe 26.7.2 desktop, 2560x1600 at 120 Hz, fixed 512 MiB | Reviewed for merge into NMXGPU / the driver | the only iGPU-only 680M route found; no release to fetch, so it is named for 680M machines without an NVIDIA card; its revision fix is reviewed for NMXGPU's Rembrandt path. One RedmiBook Pro 14 | `a34b37d` (2026-11-11) | +| zep245/IrisXe-macos-driver | PolyForm-NC (fork of our tree) | Tiger Lake Iris Xe through i915 + ANV: display, Metal, H.264/AV1 decode, HiDPI; fork of our tree | Reviewed for merge into NMXGPU / the driver | tester-grade, one laptop; overlaps WhateverXe on Tiger Lake. Its video-decode and PSR work is reviewed for NMXGPU | `c71dffc` (2026-11-06) | +| JulioNectar/Hackintosh-XPS13Plus-IrisXe-Tahoe | Thou Shalt Not Profit License 1.0 | Iris Xe on one Dell laptop through NootedGreen plus the XCPM power fix (EFI, build and install scripts) | Optional download, pinned | assistant-written (75 commits) and free to use, but a distributor must license copies under it: never merged into NullMoth code, never hosted; the build notice gives the author's archive pinned by commit and SHA-256 for a Dell XPS 13 Plus | `24450b4` (2026-11-03) | +| dssoftx/Hackintosh-X1Carbon-G11-IrisXe-Tahoe | none | JulioNectar's Tahoe Iris Xe stack ported to the ThinkPad X1 Carbon Gen 11 (Raptor Lake-U A7A1), 26.7.1 25G241 | Linked: fetched from its author on the user's machine | a whole EFI plus post-install package for one laptop; release V0.4 linked for that laptop only, never hosted | `5098a08` (2026-10-26) | +| luuumi-dev/nullarc | MIT or GPL-2.0 (own code); PolyForm-NC (derived from our tree) | Metal on Radeon 780M/760M/740M (Phoenix, Hawk Point) with a 120 Hz display kext and RADV | Linked: fetched from its author on the user's machine | release 0.4.0-alpha linked for machines with no NVIDIA card: its package installs its own NVMTLDriver.bundle, the same path as NullMoth's Metal plugin. Alpha, one machine, assistant-aided (83 commits); patches still reviewed for NMXGPU | `8aba872` (2026-11-09) | +| pongpan-bk/First-Custom-iGPU-Driver-for-Intel-Core-5-120U-on-macOS | none | stand-alone Raptor Lake-U (A7AC) kext | Linked: fetched from its author on the user's machine | no licence (all rights reserved) and assistant-written (README names its coding tool): never hosted or merged; its own installer v4.4.121 is linked for A7AC (author targets macOS 12+, Tahoe not shown) | `cbf8e37` (2026-11-13) | +| VedCloud/Meteor-Lake-Xe-LPG-Metal-Graphics | own licence: Apache-like for the original work only | Meteor Lake i915-on-LinuxKPI port with Metal; 6.8 GB repository with 874 binaries | Linked: fetched from its author on the user's machine | Tahoe Graphics-Audio 0.3.21 (2026-10-30) for the Dell Latitude 5350 (7D45) is linked, fetched from its author; derived from our tree and assistant-aided, so its patches are still only reviewed for NMXGPU, never merged as is | `62de794` (2026-10-30) | +| emirercan3459/nullmoth-nvidia-audio | none | multi-port HDMI/DP audio and volume for NVIDIA GPUs (NMHDA Lilu plugin) | Named in build notice only | no licence (all rights reserved) and assistant-written by its own statement; not named in a build notice because it applies to every NVIDIA card and NMXAudio is the supported audio path | `558dc64` (2026-10-19) | +| ericek111/vibe-nullmoth-xe3-qemu | none | 98 patches making NMXGPU drive a Panther Lake SR-IOV virtual function in a QEMU guest (Metal, GL, Vulkan) | Named in build notice only | no licence (all rights reserved): named in the build notice for Panther Lake, nothing downloaded; patches are not merged until the author grants a licence | `7246d38` (2026-10-18) | +| kitsuneislife/nmx-intel | none | NMIntelFB patches so a Raptor Lake laptop panel shows frames composited on an NVIDIA GPU | Named in build notice only | no licence (all rights reserved) and assistant-written (190 commits): named in the build notice for Raptor Lake-P laptops with an NVIDIA card, nothing downloaded; our own NMIntelFB already has copy and import paths | `b4bb3a0` (2026-10-30) | +| longurara/ArcMTL | none | Meteor Lake 155H (7D55) display + Metal 3 + Vulkan, or a headless Metal device beside the boot GPU, Tahoe and Sequoia | Named in build notice only | no licence and no release; XeGfx already covers 7D55, so it is catalogued and not noticed | `3acbe55` (2026-11-02) | +| nvsaim/mothbridge-630 | none | NVIDIA desktop on the UHD 630 (3E9B) panel of MUX-less Coffee Lake laptops, through NullMoth | Named in build notice only | no licence and no release: named for 3E9B beside an NVIDIA card; our Hybrid laptop mode covers the same job | `89a5348` (2026-11-08) | +| acidanthera/WhateverGreen | BSD-3-Clause | Lilu graphics patches for supported Intel and AMD GPUs | Not used | already in the engine's kext list; WhateverXe replaces it on Xe-LP | `093e76f` (2026-09-27) | +| akiffurkan/WhateverXe-0xA7A0 | BSD-3-Clause | WhateverXe 0.8.2 built for the XPS 13 Plus A7A0 eDP | Not used | machine build of upstream 0.8.2 | `c76768b` (2026-11-13) | +| AMD-OSX/AMD_Vanilla | none | AMD processor kernel patches (patches.plist) | Not used | no licence; 1401 writes its own AMD kernel patches (p1401/kernel_patches.py) | `eaf52ef` (2025-10-17) | +| belugaa-01/whateverxe-patched | BSD-3-Clause | WhateverXe with extra framebuffer patches for a 6-bit eDP panel (Alder Lake-U 46B3); release 0.2.0 | Not used | verified on one i3-1215U only; upstream WhateverXe 0.8.x covers 46B3 and reworks the eDP path | `cb29b1d` (2026-11-13) | +| change-48/xegfx-migrate | none | scratch patch scripts for an XeGfx migration | Not used | no licence; temporary scripts and 132 MB of build output | `eb07530` (2026-11-07) | +| dristotle/WhateverXe-ASUS-F15-eDP | BSD-3-Clause | WhateverXe 0.8.2 eDP test build for a Tiger Lake-H45 ASUS TUF F15 | Not used | machine test build, no release | `90806ab` (2026-11-13) | +| elezorn/whateverxe-tigerlakeh | BSD-3-Clause | fork of WhateverXe for Tiger Lake-H | Not used | the same commit as upstream WhateverXe 0.8.0 | `db438fd` (2026-11-08) | +| Harshshah6/PrimeBridge-nomux-hp-victus | MIT (as PrimeBridge) | fork of PrimeBridge for an HP Victus | Not used | a copy of PrimeBridge, which our NMGopFB already reimplements | `66bbf3b` (2026-11-12) | +| InSnh-Gd/WTLIntelGfx | BSD-2-Clause | fork of watchthelight-labs/WTLIntelGfx | Not used | a copy of the project above (same tree); read once there | `5ffc79f` (2026-11-01) | +| IT-EXPRESS-Bayern/LunarBridge-Hackintosh | GPL-3.0 | Lunar Lake Arc 130V (64A0) research on Tahoe | Not used | its own status: Metal and display blocked | `077fada` (2026-10-12) | +| jkbuha/WhateverXe | BSD-3-Clause | WhateverXe for the XPS 13 Plus 9320 (eDP, hibernate) | Not used | machine branch, no release | `09bd397` (2026-11-13) | +| kevin8717/TongFang-7840HS-Hackintosh | MIT | an EFI that runs nullarc's PhxBringup on a 780M (15BF) under Tahoe 26.7.2 | Not used | a machine EFI; the driver is nullarc, linked above | `6758dda` (2026-11-08) | +| lcrlcr666/WhateverXe-RGB8 | BSD-3-Clause | WhateverXe 0.8.1 with a forced RGB8 switch (upstream issue 74) | Not used | one switch over upstream, no release | `3afef31` (2026-11-13) | +| LuneFlu/AMDHelper | none | Ryzen power-limit helper (ryzenadj wrapper) | Not used | no licence; not a graphics driver; last commit 2024 | `b4cabfb` (2024-10-21) | +| m4j2rpf766-crypto/IntelIGPU-Tahoe | GPL-3.0 | Alder Lake (46A3) display, Metal desktop at ~120 fps on 144 Hz, backlight, HEVC service, GPU stall recovery on Tahoe 25G83 | Not used | source snapshot without the Apple binaries it needs and no release; WhateverXe already covers 46A3 with a release | `9baa4bb` (2026-09-28) | +| ManasSoni-2009/AlderXe | none | WhateverXe mod for Alder Lake-HX | Not used | no licence, no description of what it changes, no release | `e72c2b6` (2026-11-12) | +| medkintos/VP8MetalDecoder | none | VP8/VP9 decode on Metal compute as a VideoToolbox bundle | Not used | not a GPU driver; no licence | `d50764f` (2026-11-05) | +| Minorli/WhateverXe-Next | MIT | WhateverXe research fork on a Tiger Lake 96 EU, Tahoe 26.7.3 | Not used | research only; its author notes GPU queue hangs and forced shutdowns | `c2a6421` (2026-11-13) | +| mschiller890/Hackintosh-X13YogaG2-Iris | none | JulioNectar's stack on a ThinkPad X13 Yoga Gen 2 (Tiger Lake) | Not used | its own README says the Tahoe USB stops at EXITBS:START | `8d88daa` (2026-11-13) | +| NekoMirra/phoenix-hackintosh-toolkit | none | SMU and brightness tools for a Phoenix 8845H laptop | Not used | not a GPU driver; no licence | `32ee330` (2026-11-05) | +| pawan295/AppleIntelTGLDriver.kext | none | Tiger Lake controller skeleton | Not used | no licence; the author states it has no command submission and no Metal | `0da9a50` (2026-07-30) | +| retropineaple/whateverxe-hp-envy-x360 | none | WhateverXe set-up for an HP Envy x360 (46AA) OLED on Tahoe 26.7.1 | Not used | a machine guide; the driver is upstream WhateverXe | `3b52397` (2026-11-11) | +| samranahmad09/WhateverXe-RaptorLakeP | BSD-3-Clause | WhateverXe branch for Raptor Lake-P with native panel, Metal, OpenGL, sleep and wake | Not used | no release; its rplp-accel work is upstream's job | `565252f` (2026-11-11) | +| sgiammori/NootedGreen | none | Lilu plugin running Apple's Tiger Lake driver on Haswell to Raptor Lake | Not used | no licence, work in progress (still panics), no release; reaches users only through JulioNectar's project, which is already an optional download | `95f8189` (2026-05-23) | +| shandftk/RenoirDSBFix | MIT | dual-source-blend hang fix for Renoir under NootedRed | Not used | Sequoia only, and an add-on to a driver 1401 does not use | `8f8e80e` (2026-11-11) | +| taingo936-ui/whateverxe-alderlakes | BSD-3-Clause | WhateverXe fork with an experimental Lenovo LOQ 144 Hz eDP stage | Not used | machine-specific experimental branch of WhateverXe | `2373ede` (2026-11-03) | +| thatisjigen/whateverxe | BSD-3-Clause | fork of WhateverXe | Not used | a mirror of upstream (head by b00t0x), no changes of its own | `d0b7fb6` (2026-11-02) | +| TigerShota/WhateverXe | BSD-3-Clause | WhateverXe 0.7.0 for an Alder Lake-H 48 EU (46A3) 120 Hz panel | Not used | machine build of an older upstream | `25da561` (2026-11-08) | +| tqmane/reims-vgpu | GPL-2.0-or-later OR LGPL-3.0-or-later | virtual GPU for macOS guests in QEMU | Not used | not a driver for real hardware; 1,641 assistant-aided commits | `8f316b5` (2026-11-01) | +| vedprajapatiunitedkingdom-wq/CoreUltraGraphics | none | earlier Meteor Lake attempt by the same author | Not used | no licence file | `05b19dc` (2026-10-17) | +| wallali77666-cyber/iris-xe-macos-driver | none | Tiger Lake scaffold modelled on our tree | Not used | no licence; stubs only (phase D, acceleration, is 'research') | `9bf31c9` (2026-10-18) | +| watchthelight-labs/XeGfx | BSD-2-Clause | the earlier name of WTLIntelGfx | Not used | same commit as WTLIntelGfx | `aac09a4` (2026-11-06) | +| wkin-t/IntelIGPU-Tahoe | GPL-3.0 | fork of IntelIGPU-Tahoe | Not used | the same commit as the project above | `9baa4bb` (2026-11-09) | +| yt42c2mvn2-cmd/nullarc-760m | as nullarc | fork of nullarc for a Radeon 760M laptop | Not used | a fork of the project above | `f08b898` (2026-11-08) | + +The last two WhateverXe forks that look like extra support (`belugaa-01`, `taingo936-ui`) change one or two checks for one +laptop each on top of an older WhateverXe; WhateverXe 0.8.0 reworked the same code (internal panels, Alder Lake-U), so they +were not taken. Open an issue upstream with the panel type if a laptop still fails. + +## Which machines each project applies to + +`p1401/community_gpu.options(report)` reads the PCI IDs of the scanned GPUs ("VVVV-DDDD", upper case). The fingerprints +are the IDs each project documents as running; `tests/test_community_gpu.py` runs them offline. + +| Project | Matches | Result | +|---|---|---| +| WhateverXe | Intel Tiger Lake, Alder Lake, Raptor Lake: the 60 IDs of WhateverXe 0.8.0 (`intel_gpu.WHATEVERXE_IDS`, `App.xeIds` in the Mac app, the list in `nullmoth-setup.sh`; a test keeps the three equal) | The Mac app offers Intel Xe graphics after install (macOS 15.8 and later, 26.7 and later). New in 0.8.0: Tiger Lake `9A59 9AC0 9AC9 9AD9 9AF8`, Alder Lake `4626 4628 462A 46A0-46A2 46B0-46B2 46C0-46C2`, Raptor Lake `A720 A721`. | +| IntelMKLFixup | CPU manufacturer AMD | Added to the EFI as an experimental driver, only when the user turns on experimental drivers. Intel processors never get it. | +| PrimeBridge | `1002-1681` (Radeon 680M) with any NVIDIA GPU in the same scan | Build notice. The author's release works with NullMoth 2.6.3 only; NullMoth 2.9 has the method built in (Mac app, Hybrid laptop mode). | +| WTLIntelGfx (XeGfx) | `8086-7D40 7D41 7D45 7D51 7D55 7D67 7DD1 7DD5` (the Meteor Lake and Arrow Lake IDs its README lists as running) | Build notice. | +| nullarc | `1002-1900 15BF 15C8` (Phoenix, Hawk Point) | Build notice with the pinned release. With an NVIDIA card in the scan the notice says not to install it: its package puts its own `NVMTLDriver.bundle` at the path of NullMoth's Metal driver. | +| Meteor-Lake-Xe-LPG-Metal-Graphics | `8086-7D45` on a board named Latitude 5350 | Build notice with the pinned Tahoe package. | +| Hackintosh-X1Carbon-G11-IrisXe-Tahoe | `8086-A7A1` on a board named X1 Carbon Gen 11 or machine type 21HM / 21HN | Build notice with the pinned EFI release (it replaces the EFI). | +| MyIntelGPU | `8086-A7AC` | Build notice with the author's installer. | +| RembrandtGfx | `1002-1681` with no NVIDIA GPU in the scan | Build notice, link only. | +| mothbridge-630 | `8086-3E9B` with an NVIDIA GPU in the scan | Build notice, link only. | + +A scan with none of these IDs gets no community notice. AMD IDs the engine drives natively (Polaris, Vega, Navi 1x and 2x) +and every NVIDIA card are untouched. + +One correction came out of this: `amd_gpu.py` labelled `1002:1900` "Strix Halo". nullarc's author measured that ID on a +Ryzen 7 7840HS Radeon 780M, which is Phoenix; Strix Halo is `1586`. The label is fixed; the path (basic display) is unchanged. + +## PrimeBridge and the hybrid path + +PrimeBridge (myvoow, MIT) shows the macOS desktop on the internal screen of a laptop whose panel is wired only to an AMD +Radeon 680M, while macOS renders on the NVIDIA GPU through NullMoth. It runs daily on one laptop (Ryzen 5 7535HS, RTX 4050 +Laptop, macOS 26.7.2, NullMoth 2.6.3). + +What it does, from `PrimeBridge-source/` and `NVRMFB-patch/nvfbforce.patch`: + +1. `nvfbforce=1` makes NVRMFB report the first HDMI connector as connected, with a built-in 1920x1080 EDID, when nothing is + plugged into the NVIDIA card. Head 0 then exists, so the accelerator starts. +2. The accelerator copies each composited frame with the CPU into the address NVRMFB gave it (`fKva`). PrimeBridge replaces + that address: first a cached staging buffer (a timer compares rows with a shadow and writes changed rows into the + firmware framebuffer the iGPU is scanning out), then, after a probe, the firmware framebuffer itself. +3. The probe reads `GCMC_VM_FB_OFFSET` through BAR5 to find the iGPU's memory, checks that what it reads there matches what + it wrote through BAR0, times three mappings, and goes direct only if rows take under 3 microseconds. +4. OpenCore's "Fix PAT" patch must be off, because it makes write-combined memory uncached (39.7 microseconds per row + instead of 2.0; the desktop falls back to the staging copy). + +Comparison with NullMoth's hybrid path (`docs/HYBRID-LAPTOPS.md`, `kexts/NVRM/accel/nm_hybrid.h`): + +| | PrimeBridge | NullMoth hybrid (`nmhybrid`) | +|---|---|---| +| Needs a panel driver for the iGPU | No. It uses the framebuffer the firmware left behind. | Yes: `NMIntelFB` (Intel display versions 12 to 20) or the NMXGPU framebuffer (AMD, never run on hardware). | +| AMD iGPU panel | One chip (1681), proven on one laptop | NMXGPU copy path, unproven | +| Intel iGPU panel | Not supported | Copy and, on display versions 12 and 13, an import path with no copy and no tearing | +| Copying | Row diff into staging, or direct write after a probe | Changed-pixel copy against a shadow frame | +| Tearing | Possible (single buffer) | None on the import path | +| Backlight | None | `NMIntelFB` has it; AMD does not | +| Tied to a driver version | NVRMFB 2.6.3 offsets hard-coded | Same tree, no offsets | +| Fake HDMI head | Yes, to make head 0 exist | Not needed: the panel is published as head 4 | + +Conclusion: PrimeBridge does not beat the hybrid path on Intel, where ours has the import path. It does beat it on AMD, where +we have no working panel driver, because it needs none. The fake HDMI head is only needed when no panel head is published; +a generic firmware-framebuffer panel provider that publishes head 4 (a small framebuffer kext modelled on `NMIntelFB`, with +PrimeBridge's boot-framebuffer mapping, MIT) would give every MUX-less laptop the copy path without any iGPU driver, and +the direct-write probe can be added per chip as PrimeBridge does it. This is what was built: `NMGopFB` in the driver tree +(`kexts/NMGopFB`, docs/HYBRID-LAPTOPS.md in the driver repository), behind `nmhybrid`, for the AMD integrated GPUs and RDNA 3 +and 4 cards macOS has no driver for. The Mac app's Hybrid laptop mode installs it in place of `NMIntelFB` when the scan +shows such a GPU. The direct-write probe is not built (staging copy only); it needs the per-chip register offsets and a +laptop to measure on. Nothing has run on hardware: the build notice still names PrimeBridge for its one proven ID. + +### Permission and credit for PrimeBridge + +PrimeBridge's LICENSE is MIT (Copyright (c) 2026 myvoow, with a link to its repository) for `PrimeBridge-source/`, the install +script and the documents. That already permits use, copying, modification and distribution, provided the notice is kept. +Its author also told the NullMoth maintainers that NullMoth may use and link the project (November 2026). The MIT notice is +kept in `NOTICE.md` and goes into any file that uses the project's code. `NVRMFB-patch/` and the shipped `NVRMFB.kext` are +NullMoth's own PolyForm code and are not reused. + +## What to review for NMXGPU + +These projects are forks of NullMoth's tree, or ports of the Linux and FreeBSD drivers it runs. Their patches are the +cheapest source of findings for the AMD / Intel test driver. Hardware these authors tested is hardware we do not own. + +| Project | Where the work is | Licence for merging | +|---|---|---| +| WTLIntelGfx | `shim/`, `xkpi/` (GuC firmware linked into the kext because the auxiliary collection serves no resources; devfs clone minor numbers; ioctls through the accelerator's user client when WindowServer's sandbox refuses `/dev/dri`); `kexts/NMIntelFB` changes | BSD-2 files: merge with credit. PolyForm files: our licence | +| ArrowWhatever | `patches/` 0001-0010 over XeGfx 0.0.44: userptr pin race, GGTT zero-copy scanout with deferred flip, Tile4 and CCS scanout, SLPC floor on late frames | PolyForm: merge with credit; its MIT scripts and docs need only the notice | +| ericek111 (Panther Lake VF) | `patches/` 47 for the driver tree, 50 for xkpi, libdrm 5, Mesa 8, drm-kmod 1, QEMU 4 | No licence: ask the author before merging; until then use `SERIES.md` as a checklist | +| IrisXe-macos-driver (zep245) | Tiger Lake: H.264 and AV1 decode through the video engine, PSR1, RC6, HiDPI, `nmxgtawake=2` for a firmware that stops at `71 vmap` | PolyForm fork of our tree: merge with credit | +| nullarc | Phoenix bring-up (`src/phxbringup`), `PhxAMDFB` backlight, boot-time `doWaitSeq` backoff, RADV patches | Own code MIT or GPL-2.0, derived parts PolyForm; assistant-aided, so reimplement from the findings | +| RedNavi | Navi 32 DCN 3.2 bring-up order, PSP/DMCUB firmware chain | BSD-3 but assistant-aided: reimplement | +| nmx-intel | `source-fixes/0001-0019`, `docs/knowledge/pitfalls.md` | No licence, assistant-written: findings only | +| Meteor-Lake-Xe-LPG-Metal-Graphics | Dell Latitude 5350 bring-up notes | Own licence covers original work only; assistant-aided: findings only | + +## Updating a pin + +1. Read the release notes and the LICENSE text at the new tag; compare the supported IDs and the macOS range. +2. Download on a build machine into an empty folder; compute the SHA-256 and compare it with the author's `SHA256SUMS`. +3. Change the URL, size and hash in one place (`p1401/community.py`, or `mac/Resources/nullmoth-setup.sh` for WhateverXe), + the commit in `p1401/community_gpu.py` and this page, and the version in `NOTICE.md`. +4. Run `python3 -m unittest tests.test_community tests.test_community_gpu tests.test_licenses tests.test_intel_gpu` and + `python3 mac/tools/test_xe_whateverxe.py`. + +WhateverXe moved from 0.6.1 to 0.8.0 this way. Its requirements did not change (Lilu, the modified AMFIPass build, +`csr-active-config` 0x803, `-allow3d -disablegfxfirmware`, macOS 15.8 or 26.7 and later); the AMFIPass file has the same +SHA-256 as before; only the kext, the graphics package and the uninstall script changed. diff --git a/docs/COMMUNITY-LICENCE-REQUEST.md b/docs/COMMUNITY-LICENCE-REQUEST.md new file mode 100644 index 00000000..960f4b63 --- /dev/null +++ b/docs/COMMUNITY-LICENCE-REQUEST.md @@ -0,0 +1,32 @@ +# Licence request for community driver authors + +A short note to send to the authors of the useful projects that have no licence file. Without a licence, copyright law +reserves every right to the author: NullMoth cannot include, download for users, or merge the code, even though it helps +the same people. A one-line LICENSE file fixes that. + +Projects with no licence file today: kitsuneislife/nmx-intel, ericek111/vibe-nullmoth-xe3-qemu, +emirercan3459/nullmoth-nvidia-audio, pongpan-bk/First-Custom-iGPU-Driver-for-Intel-Core-5-120U-on-macOS. + +## Text + +> Hi, and thank you for your work on . Users of NullMoth keep asking about it, and we would like to point them to it +> and, with your permission, build on it with your name on it. +> +> Your repository has no licence file, which means all rights are reserved and nobody, us included, may copy, ship or merge +> the code. Would you add one? Either of these suits us: +> +> - **MIT**: anyone may use and change it as long as your copyright notice stays. +> - **PolyForm Noncommercial 1.0.0** (https://polyformproject.org/licenses/noncommercial/1.0.0): the licence NullMoth itself uses; free for +> everyone to use and change, not for sale. +> +> On GitHub: Add file, Create new file, name it LICENSE; the "Choose a license template" button offers MIT. Nothing else about +> your project changes, and we will credit you in our NOTICE and in the commit. +> +> If you would rather not, that is fine too: we will only link to your page. + +## Notes for the sender + +- Each of these projects states or shows that a coding assistant wrote much of it. A licence from the author does not change + that: we would still read the code for ideas and write our own implementation, unless the author tells us the code is theirs + to license. +- Put the project name in `` and send one message per author. diff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.md index 95194066..591cfcd4 100644 --- a/docs/TROUBLESHOOTING.md +++ b/docs/TROUBLESHOOTING.md @@ -35,6 +35,7 @@ stick made by an old 1401 keeps the old problem until you make it again. | "OS.dmg.root_hash … Err(0xE)" | A stick made by an old 1401, or a recovery image for a different macOS. | Make the stick again with the newest 1401. | | Stops at "PCI configuration" | Usually Resizable BAR or Above 4G Decoding settings. | In the BIOS: Above 4G Decoding on, CSM off. If it still stops, send the stick logs. | | Loops at `AppleKeyStore` after installing the driver, GTX 16 / RTX 20 (Turing) | The card's firmware needed more time before the driver turned the display on. | Fixed in 1.13 (Setup adds `nvrmsettle=10000` on Turing). | +| macOS 26 installed, then a black screen with only the cursor where setup should start | Without a graphics driver macOS 26 cannot draw its first setup screens, and the driver is installed from macOS itself. | Start Recovery from the stick, open Utilities > Terminal and run `sh /Volumes/1401/NullMoth/finish-setup.sh`. It asks for an account name and password, makes the account and skips the setup screens; macOS then starts straight to the desktop, where the 1401 Mac app installs the driver. If `/Volumes/1401` is missing, run `diskutil list`, find the stick's small FAT32 partition (e.g. `disk5s1`) and `diskutil mount disk5s1`. | ## 3. After installing the NVIDIA driver diff --git a/docs/machine-census.md b/docs/machine-census.md new file mode 100644 index 00000000..7c2cac55 --- /dev/null +++ b/docs/machine-census.md @@ -0,0 +1,215 @@ +# Field machine census + +4611 distinct PCs (8097 reporting machines) from Check this PC receipts and build logs, 2026-10-22 to 2026-11-07. Device IDs only. Each device's resolution is measured by replaying a baseline PC with and without it through the real builder (tools/machine_census.py), for macOS 15; macOS 26 differs only where noted. + +## CPU + +Intel Alder Lake-S 760, Intel Alder Lake-H 719, Intel Raptor Lake-S 611, Intel Raptor Lake-HX 572, Intel Comet Lake-S 322, Intel Coffee Lake-S 292, AMD Vermeer 254, Intel Raptor Lake-H 213, AMD Raphael 205, Intel Coffee Lake-U 193, Intel Haswell 192, Intel Tiger Lake-H 177, AMD Granite Ridge 170, AMD Cezanne 165, Intel Arrow Lake-HX 164, AMD Barcelo-R 159, AMD Rembrandt-R 156, Intel Ivy Bridge 148, Intel Coffee Lake-H 136, Intel Unknown 134, Intel Haswell-EP 132, Intel Comet Lake-H 130, Intel Tiger Lake-UP3 129, AMD Dragon Range 116, Intel Kaby Lake 113, Intel Skylake 113, AMD Phoenix 92, Intel Rocket Lake-S 87, AMD Renoir 86, AMD Matisse 85, ... + +## GPU + +479 distinct devices. PCs by outcome: native or none needed 9342, kext 1896, stops the build 88. + +| devices with no driver or that stop the build | PCs | device ID | outcome | +|---|---|---|---| +| Podstawowa karta graficzna Microsoft | 37 | 15AD-0405 | stops the build | +| Microsoft Basic Display Adapter | 23 | 1AE0-A001 | stops the build | +| Microsoft Temel Görüntü Bağdaştırıcısı | 9 | 1B36-0100 | stops the build | +| ZX C-960 | 5 | 1D17-3A04 | stops the build | +| Microsoft 基本显示适配器 | 4 | 1234-1111 | stops the build | +| Parallels Display Adapter (WDDM) | 2 | 1AB8-4005 | stops the build | +| Innosilicon Technologies Fantasy G Series | 2 | 1EC8-9810 | stops the build | +| Red Hat VirtIO GPU DOD controller | 2 | 1AF4-1050 | stops the build | +| Microsoft 基本显示适配器 | 2 | 1A03-2000 | stops the build | +| Citrix Indirect Display Adapter | 2 | 5853-1003 | stops the build | + +## Network + +325 distinct devices. PCs by outcome: kext 8051, native or none needed 5617, no driver (switched off, noted) 818. + +| devices with no driver or that stop the build | PCs | device ID | outcome | +|---|---|---|---| +| Intel(R) Wi-Fi 7 BE200 320MHz | 95 | 8086-272B | no driver (switched off, noted) | +| Qualcomm Atheros QCA61x4A Wireless Network Adapter | 74 | 168C-003E | no driver (switched off, noted) | +| Intel(R) Wi-Fi 7 BE201 320MHz | 70 | 8086-7740 | no driver (switched off, noted) | +| MediaTek Wi-Fi 6 MT7902LEN Wireless LAN Card | 54 | 14C3-7902 | no driver (switched off, noted) | +| Motorcomm YT6801 Gigabit Ethernet Adapter | 47 | 1F0A-6801 | no driver (switched off, noted) | +| Intel(R) 82574L Gigabit Network Connection | 43 | 8086-10D3 | no driver (switched off, noted) | +| Qualcomm Atheros AR956x Wireless Network Adapter | 40 | 168C-0036 | no driver (switched off, noted) | +| Qualcomm FastConnect 7800 Wi-Fi 7 High Band Simultaneous (HB | 33 | 17CB-1107 | no driver (switched off, noted) | +| Qualcomm QCA9377 802.11ac Wireless Adapter | 32 | 168C-0042 | no driver (switched off, noted) | +| Red Hat VirtIO Ethernet Adapter #2 | 27 | 1AF4-1000 | no driver (switched off, noted) | +| Qualcomm FastConnect 6900 Wi-Fi 6E Dual Band Simultaneous (D | 22 | 17CB-1103 | no driver (switched off, noted) | +| Qualcomm Atheros AR946x Wireless Network Adapter | 18 | 168C-0034 | no driver (switched off, noted) | +| MediaTek Wi-Fi 6 MT7920 Wireless LAN Card | 16 | 14C3-7920 | no driver (switched off, noted) | +| Broadcom 802.11g Network Adapter | 15 | 14E4-4315 | no driver (switched off, noted) | +| Realtek RTL8723BE Wireless LAN 802.11n PCI-E NIC | 15 | 10EC-B723 | no driver (switched off, noted) | +| Adattatore per schede Half Mini PCI Express Wireless LAN 11b | 15 | 14E4-4727 | no driver (switched off, noted) | +| Intel(R) Ethernet Connection (24) I219-V | 15 | 8086-57A1 | no driver (switched off, noted) | +| Intel(R) 82567LM Gigabit Network Connection | 14 | 8086-10F5 | no driver (switched off, noted) | +| Qualcomm Atheros AR9485 Wireless Network Adapter | 11 | 168C-0032 | no driver (switched off, noted) | +| Realtek 8821AE Wireless LAN 802.11ac PCI-E NIC | 11 | 10EC-8821 | no driver (switched off, noted) | +| Broadcom 802.11n Network Adapter | 9 | 14E4-4365 | no driver (switched off, noted) | +| MediaTek Wi-Fi 7 MT7927 Wireless LAN Card | 9 | 14C3-7927 | no driver (switched off, noted) | +| Intel(R) PRO/1000 MT Network Connection | 8 | 8086-100E | no driver (switched off, noted) | +| Broadcom NetLink (TM) Gigabit Ethernet | 7 | 14E4-1698 | no driver (switched off, noted) | +| Intel(R) Ethernet Connection (24) I219-LM | 7 | 8086-57A0 | no driver (switched off, noted) | + +## Sound + +666 distinct devices. PCs by outcome: native or none needed 16205, no driver (switched off, noted) 6128. + +| devices with no driver or that stop the build | PCs | device ID | outcome | +|---|---|---|---| +| NVIDIA High Definition Audio | 826 | 10DE-00A7 | no driver (switched off, noted) | +| NVIDIA High Definition Audio | 673 | 10DE-00AD | no driver (switched off, noted) | +| NVIDIA High Definition Audio | 639 | 10DE-009F | no driver (switched off, noted) | +| NVIDIA High Definition Audio | 521 | 10DE-00A0 | no driver (switched off, noted) | +| NVIDIA High Definition Audio | 459 | 10DE-009E | no driver (switched off, noted) | +| NVIDIA High Definition Audio | 268 | 10DE-0093 | no driver (switched off, noted) | +| NVIDIA High Definition Audio | 249 | 10DE-00A6 | no driver (switched off, noted) | +| NVIDIA High Definition Audio | 215 | 10DE-0099 | no driver (switched off, noted) | +| Senary Audio | 194 | 14F1-1F87 | no driver (switched off, noted) | +| NVIDIA High Definition Audio | 180 | 10DE-00A5 | no driver (switched off, noted) | +| NVIDIA High Definition Audio | 178 | 10DE-0080 | no driver (switched off, noted) | +| NVIDIA High Definition Audio | 169 | 10DE-0084 | no driver (switched off, noted) | +| NVIDIA High Definition Audio | 168 | 10DE-0094 | no driver (switched off, noted) | +| AMD Audio Device | 167 | 1022-15E2 | no driver (switched off, noted) | +| NVIDIA High Definition Audio | 146 | 10DE-00AF | no driver (switched off, noted) | +| NVIDIA High Definition Audio | 119 | 10DE-0083 | no driver (switched off, noted) | +| NVIDIA High Definition Audio | 119 | 10DE-009A | no driver (switched off, noted) | +| NVIDIA High Definition Audio | 100 | 10DE-0092 | no driver (switched off, noted) | +| NVIDIA High Definition Audio | 97 | 10DE-0051 | no driver (switched off, noted) | +| NVIDIA High Definition Audio | 92 | 10DE-00AB | no driver (switched off, noted) | +| NVIDIA High Definition Audio | 52 | 10DE-00A4 | no driver (switched off, noted) | +| NVIDIA High Definition Audio | 45 | 10DE-0072 | no driver (switched off, noted) | +| NVIDIA High Definition Audio | 43 | 10DE-00AE | no driver (switched off, noted) | +| NVIDIA High Definition Audio | 43 | 10DE-0060 | no driver (switched off, noted) | +| Urządzenie zgodne ze standardem High Definition Audio | 34 | 15AD-1975 | no driver (switched off, noted) | + +## Bluetooth + +223 distinct devices. PCs by outcome: kext 5115, no driver (switched off, noted) 1053, native or none needed 277. + +| devices with no driver or that stop the build | PCs | device ID | outcome | +|---|---|---|---| +| 英特尔(R) 无线 Bluetooth(R) | 64 | 8087-0037 | no driver (switched off, noted) | +| MediaTek Bluetooth Adapter | 61 | 0489-E111 | no driver (switched off, noted) | +| Realtek Bluetooth Adapter | 55 | 0BDA-5852 | no driver (switched off, noted) | +| Generic Bluetooth Adapter | 44 | 10D7-B012 | no driver (switched off, noted) | +| RZ616 Bluetooth(R) Adapter | 43 | 0489-E0D8 | no driver (switched off, noted) | +| MediaTek Bluetooth Adapter | 42 | 13D3-3596 | no driver (switched off, noted) | +| Realtek Bluetooth Adapter | 40 | 0BDA-C821 | no driver (switched off, noted) | +| Generic Bluetooth Adapter | 33 | A69C-8D81 | no driver (switched off, noted) | +| MediaTek Bluetooth Adapter | 31 | 13D3-3602 | no driver (switched off, noted) | +| Qualcomm Atheros QCA61x4 Bluetooth | 28 | 0CF3-E300 | no driver (switched off, noted) | +| Qualcomm QCA61x4A Bluetooth | 28 | 0CF3-E007 | no driver (switched off, noted) | +| Realtek Bluetooth Adapter | 28 | 0BDA-0852 | no driver (switched off, noted) | +| BARROT Bluetooth Adapter | 26 | 33FA-0001 | no driver (switched off, noted) | +| BARROT Bluetooth 5.4 Adapter | 21 | 33FA-0010 | no driver (switched off, noted) | +| BARROT Bluetooth 6.0 Adapter | 20 | 33FA-0012 | no driver (switched off, noted) | +| Realtek Bluetooth Adapter | 17 | 0BDA-D922 | no driver (switched off, noted) | +| MediaTek Bluetooth Adapter | 16 | 04CA-3804 | no driver (switched off, noted) | +| Qualcomm QCA9377 Bluetooth | 13 | 0CF3-E009 | no driver (switched off, noted) | +| Generic Bluetooth Adapter | 13 | 368B-8D81 | no driver (switched off, noted) | +| Realtek Bluetooth 4.0 Adapter | 12 | 0BDA-B728 | no driver (switched off, noted) | +| Realtek Bluetooth Adapter | 12 | 13D3-3558 | no driver (switched off, noted) | +| Realtek Bluetooth Adapter | 11 | 0BDA-C820 | no driver (switched off, noted) | +| Realtek Bluetooth Adapter | 11 | 0BDA-B023 | no driver (switched off, noted) | +| Generic Bluetooth Adapter | 10 | 0BDA-C761 | no driver (switched off, noted) | +| MediaTek Bluetooth Adapter | 10 | 0489-E139 | no driver (switched off, noted) | + +## Storage Controllers + +415 distinct devices. PCs by outcome: native or none needed 11900, stops the build 2260, kext 574, no driver (switched off, noted) 242. + +| devices with no driver or that stop the build | PCs | device ID | outcome | +|---|---|---|---| +| RST VMD Managed Controller | 894 | 8086-09AB | stops the build | +| Volume Management Device NVMe RAID Controller | 878 | 8086-467F | stops the build | +| Volume Management Device NVMe RAID Controller Intel Corporat | 292 | 8086-A77F | stops the build | +| Volume Management Device NVMe RAID Controller | 87 | 8086-9A0B | stops the build | +| Volume Management Device NVMe RAID Controller Intel Corporat | 83 | 8086-AD0B | stops the build | +| PC611 NVMe Solid State Drive | 70 | 1C5C-1639 | no driver (switched off, noted) | +| 2200S NVMe SSD [Cassandra] | 64 | 1344-5410 | no driver (switched off, noted) | +| PC601 NVMe Solid State Drive | 33 | 1C5C-1627 | no driver (switched off, noted) | +| Optane NVME SSD H10 with Solid State Storage [Teton Glacier] | 32 | 8086-0975 | no driver (switched off, noted) | +| NVMe Optane Memory Series | 23 | 8086-2522 | no driver (switched off, noted) | +| Volume Management Device NVMe RAID Controller Intel Corporat | 21 | 8086-7D0B | stops the build | +| Optane NVME SSD H20 with Solid State Storage [Pyramid Glacie | 20 | 8086-09AD | no driver (switched off, noted) | +| Volume Management Device NVMe RAID Controller | 3 | 8086-201D | stops the build | +| Intel(R) RST VMD Managed Controller B07F | 1 | 8086-B07F | stops the build | +| Intel(R) RST VMD Controller B06F | 1 | 8086-B06F | stops the build | + +## USB Controllers + +216 distinct devices. PCs by outcome: native or none needed 17753. + +## SD Controller + +59 distinct devices. PCs by outcome: kext 789, no driver (switched off, noted) 385, native or none needed 50. + +| devices with no driver or that stop the build | PCs | device ID | outcome | +|---|---|---|---| +| SDA Standard Compliant SD Host Controller | 70 | 17A0-9755 | no driver (switched off, noted) | +| SDA Standard Compliant SD Host Controller | 40 | 1217-8621 | no driver (switched off, noted) | +| Genesys Logic PCIE card reader device | 37 | 17A0-9750 | no driver (switched off, noted) | +| JMicron PCIe SD Host Controller | 21 | 197B-2381 | no driver (switched off, noted) | +| SDA Standard Compliant SD Host Controller | 21 | 1217-8520 | no driver (switched off, noted) | +| Realtek PCIE CardReader | 17 | 10EC-5261 | no driver (switched off, noted) | +| SDA Standard Compliant SD Host Controller | 15 | 1180-0822 | no driver (switched off, noted) | +| JMicron PCIe xD Host Controller | 15 | 197B-2384 | no driver (switched off, noted) | +| JMicron PCIe SD/MMC Host Controller | 15 | 197B-2382 | no driver (switched off, noted) | +| JMicron PCIe MS Host Controller | 15 | 197B-2383 | no driver (switched off, noted) | +| Controller host SD compatibile standard SDA | 14 | 14E4-16BC | no driver (switched off, noted) | +| Contrôleur hôte numérique sécurisé Intel | 11 | 8086-A375 | no driver (switched off, noted) | +| SDA Standard Compliant SD Host Controller | 10 | 197B-2391 | no driver (switched off, noted) | +| Realtek PCIE CardReader | 10 | 10EC-5228 | no driver (switched off, noted) | +| Intel SD 主控制器 | 9 | 8086-9D2B | no driver (switched off, noted) | +| Realtek PCIE CardReader | 8 | 10EC-5264 | no driver (switched off, noted) | +| Alcorlink PCIE Card Reader | 7 | 1AEA-6625 | no driver (switched off, noted) | +| Genesys Logic PCIE card reader device | 6 | 17A0-9767 | no driver (switched off, noted) | +| Intel SD 主控制器 | 5 | 8086-06F5 | no driver (switched off, noted) | +| SDA Standard Compliant SD Host Controller | 3 | 1217-8320 | no driver (switched off, noted) | +| Intel SD 主控制器 | 3 | 8086-02F5 | no driver (switched off, noted) | +| Intel SD 主控制器 | 3 | 8086-31CC | no driver (switched off, noted) | +| Intel SD 主控制器 | 3 | 8086-34F8 | no driver (switched off, noted) | +| SDA Standard Compliant SD Host Controller | 2 | 1217-9863 | no driver (switched off, noted) | +| Realtek PCIE CardReader | 2 | 10EC-5250 | no driver (switched off, noted) | + +## Biometric + +106 distinct devices. PCs by outcome: no driver (switched off, noted) 1514. + +| devices with no driver or that stop the build | PCs | device ID | outcome | +|---|---|---|---| +| Facial Recognition (Windows Hello) Software Device | 801 | name:Facial Recognition (Windows Hello) Software Device | no driver (switched off, noted) | +| Windows Hello Face Software Device | 89 | name:Windows Hello Face Software Device | no driver (switched off, noted) | +| FocalTech Fingerprint Reader | 46 | 2808-A658 | no driver (switched off, noted) | +| Synaptics UWP WBDI | 36 | 06CB-00BD | no driver (switched off, noted) | +| Synaptics FP Sensors (WBF) (PID=0017) | 29 | 138A-0017 | no driver (switched off, noted) | +| ELAN WBF Fingerprint Sensor | 24 | 04F3-0C4B | no driver (switched off, noted) | +| FPC Fingerprint Reader (Disum) | 23 | 10A5-9201 | no driver (switched off, noted) | +| Goodix MOC Fingerprint | 22 | 27C6-659A | no driver (switched off, noted) | +| Goodix fingerprint | 21 | 27C6-5395 | no driver (switched off, noted) | +| FPC Fingerprint Reader (Disum) | 21 | 10A5-9200 | no driver (switched off, noted) | +| Goodix fingerprint | 21 | 27C6-521D | no driver (switched off, noted) | +| Goodix fingerprint | 20 | 27C6-55A2 | no driver (switched off, noted) | +| Goodix fingerprint | 19 | 27C6-550A | no driver (switched off, noted) | +| Goodix fingerprint | 16 | 27C6-55A4 | no driver (switched off, noted) | +| ELAN WBF Fingerprint Sensor | 15 | 04F3-0C4F | no driver (switched off, noted) | +| Goodix MOC Fingerprint | 13 | 27C6-639C | no driver (switched off, noted) | +| ELAN WBF Fingerprint Sensor | 13 | 04F3-0C6E | no driver (switched off, noted) | +| Goodix Fingerprint USB Device | 13 | 27C6-5125 | no driver (switched off, noted) | +| ELAN WBF Fingerprint Sensor | 12 | 04F3-0C1A | no driver (switched off, noted) | +| FPC Fingerprint Reader | 11 | 10A5-D805 | no driver (switched off, noted) | +| Goodix MOC Fingerprint | 10 | 27C6-6594 | no driver (switched off, noted) | +| Synaptics WBDI - SGX | 9 | 06CB-009A | no driver (switched off, noted) | +| FPC Fingerprint Reader (Disum) | 9 | 10A5-A921 | no driver (switched off, noted) | +| FPC Fingerprint Reader | 8 | 10A5-9800 | no driver (switched off, noted) | +| Synaptics FP Sensors (WBF) (PID=003f) | 8 | 138A-003F | no driver (switched off, noted) | + +## Input + +2545 distinct devices. PCs by outcome: native or none needed 29964, kext 55. + diff --git a/mac/GameModeIndicator/main.swift b/mac/GameModeIndicator/main.swift new file mode 100644 index 00000000..76e96a13 --- /dev/null +++ b/mac/GameModeIndicator/main.swift @@ -0,0 +1,35 @@ +// The Game Mode menu-bar indicator. Runs as a per-user agent, shows a game controller in the menu bar while NullMoth's Game Mode +// is on, and nothing otherwise. It reads the same state the policy daemon publishes: the notify key +// com.nullmoth.gamemode.active (1 on, 0 off) and, at start-up, the root-owned file /Library/NullMoth/gamemode-active. +import AppKit +import Foundation +import notify + +final class Indicator: NSObject { + private let item = NSStatusBar.system.statusItem(withLength: NSStatusItem.squareLength) + private var token: Int32 = 0 + + func start() { + NSApp.setActivationPolicy(.accessory) + if let button = item.button { + button.image = NSImage(systemSymbolName: "gamecontroller.fill", accessibilityDescription: "Game Mode is on") + button.toolTip = "Game Mode is on" + } + let menu = NSMenu() + menu.addItem(withTitle: "Game Mode is on", action: nil, keyEquivalent: "") + item.menu = menu + show(FileManager.default.fileExists(atPath: "/Library/NullMoth/gamemode-active")) + notify_register_dispatch("com.nullmoth.gamemode.active", &token, DispatchQueue.main) { [weak self] t in + var state: UInt64 = 0 + notify_get_state(t, &state) + self?.show(state == 1) + } + } + + private func show(_ on: Bool) { item.isVisible = on } +} + +let app = NSApplication.shared +let indicator = Indicator() +indicator.start() +app.run() diff --git a/mac/Resources/NullMothSafe.efi b/mac/Resources/NullMothSafe.efi index 5f504ef9..50f6a7df 100755 Binary files a/mac/Resources/NullMothSafe.efi and b/mac/Resources/NullMothSafe.efi differ diff --git a/mac/Resources/app.js b/mac/Resources/app.js index b87fdbfe..94abd3d2 100644 --- a/mac/Resources/app.js +++ b/mac/Resources/app.js @@ -7,16 +7,109 @@ const S = { mac: null, pkg: "", previewed: false, installed: false, driverUpdate function row(k, v) { return `${esc(k)}${v}`; } function step(n, state) { const li = $("s" + n); li.classList.toggle("done", state === "done"); li.classList.toggle("now", state === "now"); } +// The "ARM apps (opt-in)" card: status (on/off, check, list), busy text, translation progress and every error. +// A.last: the outcome of the last action (an error, or a finished translation). A status refresh follows most actions +// and would otherwise overwrite it, so the refresh shows it above the status once. +const A = { on: false, ok: false, running: false, last: "" }; +function armButtons() { + $("armon").hidden = A.on; $("armoff").hidden = !A.on; $("armchk").hidden = !A.on; + $("armon").disabled = false; + $("armtr").hidden = !A.on; $("armtr").disabled = !(A.on && A.ok) || A.running; + $("armprog").hidden = !A.running; + $("armbrew").hidden = !A.on; $("armbrewgo").disabled = !A.on || A.running; +} +// nm-arm brew status: {"arm": {"installed", "ruby", "programs"}, "intel": {"installed"}} or {"why"} +function armBrewText(b) { + if (!b) return ""; + if (b.why) return `${esc(b.why)}`; + const side = (s, name, cmd) => s && s.installed ? `${name} ready (${cmd})` : `${name} not set up`; + let t = side(b.arm, "ARM Homebrew", "abrew") + " · " + side(b.intel, "Intel Homebrew", "ibrew"); + const p = b.arm && b.arm.programs; + if (p) t += `
Translated programs: ${esc(p.translated || 0)}; waiting for their first run: ${esc(p.stub || 0)}.`; + if (b.arm && b.arm.installed && b.arm.ruby && !b.arm.ruby.launcher) t += `
The ARM Homebrew's Ruby is not prepared yet: run abrew once in Terminal.`; + return t; +} +function gmEvent(d) { + $("gmon").hidden = !!d.installed; $("gmoff").hidden = !d.installed; + $("gmon").disabled = false; $("gmoff").disabled = false; + $("gmr").innerHTML = d.why ? `${esc(d.why)}` + : d.installed ? (d.running ? "On: it switches itself on when a game is full screen." : "Installed but not running: restart the Mac, or turn it off and on.") : ""; +} +function armEvent(d) { + if (d.kind === "status") { + A.on = !!d.installed; A.running = !!d.translating; + const c = d.check || {}; + A.ok = A.on && c.ok === true; + let t = (A.last ? A.last + "
" : "") + (d.note ? `${esc(d.note)}
` : ""); + A.last = ""; + if (!A.on) t += "Off. Nothing is installed."; + else if (c.ok === true) t += `This Mac can run translated apps` + (c.target ? ` (${esc(c.target)})` : "") + "."; + else t += `${esc(c.why || "This Mac did not pass the check.")}`; + // nm-arm check's "note": a sentence for the user when the system seems to hide CPU features (a VM, for example) + if (A.on && c.note) t += `
${esc(c.note)}`; + if (d.listWhy) t += `
${esc(d.listWhy)}`; + $("armr").innerHTML = t; + $("armclt").hidden = !(A.on && c.prerequisites && c.prerequisites.clt === false); + $("armbrewr").innerHTML = A.on ? armBrewText(d.brew) : ""; + const apps = d.apps || []; + $("armapps").innerHTML = !A.on ? "" : apps.length + ? "" + apps.map((a) => ``).join("") + "
${esc(a.name)}
" + : '

No translated apps yet.

'; + armButtons(); + return; + } + if (d.kind === "request") { + // 1401 for Windows asked for ARM apps: open Tools with this card first, the banner on top of it + $("armreqt").textContent = d.text; + $("armreqon").hidden = !d.canRun; + $("armreq").hidden = false; + const tab = document.querySelector('.tab[data-t="tools"]'); + if (tab) tab.click(); + const sec = $("t-tools"), card = $("armcard"), first = sec.querySelector(".card"); + if (first && first !== card) sec.insertBefore(card, first); + card.scrollIntoView({ block: "start" }); + return; + } + if (d.kind === "busy") { A.last = ""; $("armr").textContent = d.text; return; } + if (d.kind === "error") { A.last = `${esc(d.why)}`; $("armr").innerHTML = A.last; armButtons(); return; } + if (d.kind === "progress") { + A.running = true; armButtons(); $("armcancel").disabled = false; + if (typeof d.pct === "number") $("armbar").value = d.pct; else $("armbar").removeAttribute("value"); + $("armmsg").textContent = `${d.app}: ${d.msg || d.stage || ""}`; + return; + } + if (d.kind === "done") { + A.running = false; armButtons(); + if (d.what === "brew") + A.last = d.ok ? `${esc(d.msg || "Homebrew is set up. Open a new Terminal window.")}` + : `Homebrew: ${esc(d.why || "the setup did not finish")}`; + else + A.last = d.ok ? `${esc(d.app)} is translated: it is in Applications > NullMoth ARM.` + : `${esc(d.app)}: ${esc(d.why || "the translation did not finish")}`; + $("armr").innerHTML = A.last; + } +} + function render(m) { S.mac = m; $("ver").textContent = m.version; const card = m.gpus.find((g) => g.supported) || m.gpus.find((g) => g.vendor === "10DE"); const on = m.kexts >= 4 && m.metal.some((n) => /NVIDIA|GeForce|RTX/i.test(n)); + // The facts the kext publishes on the card: the BAR window it got and what the card offers, Above 4G, and the link power state + function nvrmFactRows(m) { + const g = m.gpus.find((x) => x.nvrm && Object.keys(x.nvrm).length); if (!g) return ""; + const f = g.nvrm, mb = (v) => (v === undefined || v === null ? "unknown" : Number(v) >= 1024 ? (Number(v) / 1024) + " GB" : Number(v) + " MB"); + const rb = f["nvrm-rebar"] === "on" ? "on" : f["nvrm-rebar"] === "off" ? "supported, off" : f["nvrm-rebar"] === "none" ? "not offered by the card" : "unknown"; + return row("Memory window (BAR1)", esc(mb(f["nvrm-bar1-mb"])) + " now, " + esc(mb(f["nvrm-bar1-firmware-mb"])) + " from the firmware") + + row("Resizable BAR", esc(rb) + (Number(f["nvrm-rebar-max-mb"]) ? ", up to " + esc(mb(f["nvrm-rebar-max-mb"])) : "") + "; Above 4G Decoding: " + esc(String(f["nvrm-above-4g"] || "unknown"))) + + row("PCIe link power (ASPM)", esc(String(f["nvrm-aspm"] || "unknown"))); + } $("mac").innerHTML = row("macOS", esc(m.macos) + ([15, 26].includes(m.major) ? "" : ' (the driver is for macOS 15 and 26)')) + row("Processor", m.arch === "x86_64" && !m.translated ? "x86_64" : 'Apple silicon - this driver is for Intel Macs and PCs') + row("Graphics", m.gpus.length ? m.gpus.map((g) => esc(g.name) + (g.supported ? (g.tested ? ' listed device, model tested' : ' listed by NVIDIA, model not tested yet') : g.vendor === "10DE" ? ' not supported (needs RTX 20 series or newer)' : "")).join("
") : "none found") + - row("OpenCore", m.opencore ? esc(m.opencore) : 'not detected') + + nvrmFactRows(m) + + row("OpenCore", m.opencore ? esc(m.opencore) : m.nativeMacPro ? 'not needed: Mac Pro (2019) on Apple\'s firmware (experimental, needs SIP off)' : 'not detected') + row("Installed driver package", m.installedDriverVersion ? esc(m.installedDriverVersion) : "No version record") + row("NullMoth driver", on ? 'running (' + esc(m.metal.join(", ")) + ")" : m.kexts >= 4 ? 'loaded, no NVIDIA Metal device yet' : m.files ? 'installed, not running yet' : "not installed"); @@ -27,13 +120,13 @@ function render(m) { else if (!card && (m.hiddenNvidia || []).length) why = `The NVIDIA card (${esc(m.hiddenNvidia.join(", "))}) is on the bus but switched off for macOS, usually by a disable-gpu property in OpenCore's DeviceProperties. Remove it, restart, and open 1401 again.`; else if (!card && /^MacBook/.test(m.hwModel || "")) why = "No NVIDIA card was found. On a laptop the card is often switched off before macOS starts: by the BIOS graphics mode (choose Hybrid/MSHybrid or Discrete, not iGPU only) or by a dGPU-off SSDT in OpenCore's ACPI folder. Fix that, restart, and open 1401 again."; else if (!card || !card.supported) why = "No supported NVIDIA card was found. The driver needs a GeForce RTX 20 series or newer."; - else if (!m.opencore) why = "This Mac does not report OpenCore. The driver's settings live in OpenCore's config, so 1401 will not install without it."; + else if (!m.opencore && !m.nativeMacPro) why = "This Mac does not report OpenCore. The driver's settings live in OpenCore's config, so 1401 will not install without it."; // Keep the checked package available when the driver is already running. const pk = m.packages.find((p) => p.ok === "yes"); if (pk) S.pkg = pk.path; // Tahoe: only from macOS 15, on a Mac the driver can be installed on, with the checked package (it carries both drivers) // (this scan's package, not S.pkg: an ejected disk image must not leave the button pointing at a path that is gone) - $("upd").disabled = !pk || m.major !== 15 || !!why; + $("upd").disabled = !pk || m.major !== 15 || !!why || !!m.nativeMacPro; // a Mac Pro (2019) runs macOS 26 as it is $("updt").innerHTML = m.major === 26 ? "This Mac already runs macOS 26." : why ? "" : pk ? "" : 'Needs the driver package: '; const d3 = $("dl3"); if (d3) d3.onclick = () => post({ act: "download" }); @@ -64,6 +157,9 @@ function render(m) { // whose kexts were loaded was told to restart and allow an extension that was never blocked). if (m.files && !S.installed && m.kexts >= 4) { $("verdict").innerHTML = '

The driver is loaded, but macOS shows no NVIDIA Metal device yet.

On a laptop whose built-in screen is wired to the Intel or AMD graphics (no MUX switch), the NVIDIA card draws only the displays plugged into its own HDMI or DisplayPort: connect one there and restart. Otherwise restart once; if it stays this way, use Send logs.

'; + } else if (m.files && !S.installed && m.driverOsMajor && m.driverOsMajor !== m.major) { + // macOS was updated after the driver was set up (1401 #484): the new system parked the old kernel collection + $("verdict").innerHTML = `

macOS was updated from ${esc(String(m.driverOsMajor))} to ${esc(String(m.major))} after the driver was set up, so the driver is not running.

It has to be set up again for this macOS: use the four steps below with a driver package that supports macOS ${esc(String(m.major))}. Your OpenCore settings stay as they are.

`; } else if (m.files && !S.installed) { $("verdict").innerHTML = '

The driver is installed but not running.

Restart. If macOS blocked a system extension, allow it in Privacy & Security, then restart once more.

'; } else { @@ -170,6 +266,7 @@ const NM = { }; window.NM = NM; +$("cfgpick").onclick = () => post({ act: "pickconfig" }); const efi = () => ($("efirow").hidden ? "auto" : $("efi").value); $("efi").onchange = () => { S.previewed = false; @@ -192,8 +289,43 @@ $("vbon").onclick = () => post({ act: "verbose", on: true, efi: efi() }); $("vboff").onclick = () => post({ act: "verbose", on: false, efi: efi() }); $("blon").onclick = () => post({ act: "backlight", on: true, efi: efi() }); $("bloff").onclick = () => post({ act: "backlight", on: false, efi: efi() }); +$("hdon").onclick = () => post({ act: "hidpi", on: true, efi: efi() }); +$("hdoff").onclick = () => post({ act: "hidpi", on: false, efi: efi() }); $("gpuon").onclick = () => post({ act: "gputest", on: true, efi: efi() }); $("gpuoff").onclick = () => post({ act: "gputest", on: false, efi: efi() }); +$("hybcopy").onclick = () => post({ act: "hybrid", level: "copy", pkg: S.pkg || "", efi: efi() }); +$("hybimport").onclick = () => post({ act: "hybrid", level: "import", pkg: S.pkg || "", efi: efi() }); +$("hyboff").onclick = () => post({ act: "hybrid", level: "off", efi: efi() }); +// Select all and Deselect all only tick and untick; nothing changes until Apply +for (const [id, on] of [["expall", true], ["expnone", false]]) $(id).onclick = () => { for (const c of document.querySelectorAll(".expitem")) c.checked = on; }; +$("expapply").onclick = () => post({ act: "experimental", items: Array.from(document.querySelectorAll(".expitem")).filter((c) => c.checked).map((c) => c.dataset.id), efi: efi() }); +$("boston").onclick = () => post({ act: "gpuboost", op: "on", pkg: S.pkg || "", efi: efi() }); +$("bostoff").onclick = () => post({ act: "gpuboost", op: "off", efi: efi() }); +$("bostrm").onclick = () => post({ act: "gpuboost", op: "remove", efi: efi() }); +$("bostat").onclick = () => post({ act: "gpuboost", op: "status" }); +const ryNum = (id) => Number($(id).value); +$("ryzon").onclick = () => post({ act: "ryzenpower", on: true, stapm: ryNum("ryst"), slow: ryNum("rysl"), fast: ryNum("ryfa"), temp: ryNum("rytm"), pkg: S.pkg || "", efi: efi() }); +$("ryzstat").onclick = () => post({ act: "ryzenpower", status: true, efi: efi() }); +$("ryzoff").onclick = () => post({ act: "ryzenpower", on: false, efi: efi() }); +$("xeon").onclick = () => post({ act: "xe", on: true, efi: efi() }); +$("xeoff").onclick = () => post({ act: "xe", on: false, efi: efi() }); +$("armon").onclick = () => { $("armon").disabled = true; post({ act: "arm", op: "on" }); }; +$("armoff").onclick = () => post({ act: "arm", op: "off" }); +$("armreqon").onclick = () => { $("armreq").hidden = true; $("armon").disabled = true; post({ act: "arm", op: "on", from: "windows" }); }; +$("armreqno").onclick = (e) => { e.preventDefault(); $("armreq").hidden = true; post({ act: "arm", op: "notNow" }); }; +$("gmon").onclick = () => { $("gmon").disabled = true; $("gmr").textContent = "Waiting for your Mac password..."; post({ act: "gm", op: "on" }); }; +$("gmoff").onclick = () => { $("gmoff").disabled = true; $("gmr").textContent = "Waiting for your Mac password..."; post({ act: "gm", op: "off" }); }; +$("armchk").onclick = () => post({ act: "arm", op: "check" }); +$("armclt").onclick = () => post({ act: "arm", op: "clt" }); +$("armtr").onclick = () => { $("armtr").disabled = true; post({ act: "arm", op: "translate" }); }; +$("armbrewgo").onclick = () => { $("armbrewgo").disabled = true; post({ act: "arm", op: "brew", pick: $("armbrewpick").value, primary: $("armbrewprim").value }); }; +$("armcancel").onclick = () => { $("armcancel").disabled = true; $("armmsg").textContent = "Cancelling..."; post({ act: "arm", op: "cancel" }); }; +$("armapps").onclick = (e) => { + const b = e.target.closest("button[data-op]"); + if (b) post({ act: "arm", op: b.dataset.op, name: b.dataset.name, path: b.dataset.path }); +}; +post({ act: "arm", op: "status" }); +post({ act: "gm", op: "status" }); $("teston").onclick = () => post({ act: "tester", on: true }); $("testoff").onclick = () => post({ act: "tester", on: false }); $("earlyon").onclick = () => post({ act: "early", on: true }); @@ -201,6 +333,7 @@ $("earlyoff").onclick = () => post({ act: "early", on: false }); post({ act: "early" }); $("efichk").onclick = () => { $("efichk").disabled = true; $("efichkr").textContent = "Reading the EFI..."; $("efiout").textContent = ""; post({ act: "checkEfi" }); }; $("tccg").onclick = () => { $("tccr").textContent = "Pick the app..."; post({ act: "tccGrant" }); }; +$("settings").onclick = () => post({ act: "settings" }); $("gpumap").onclick = () => { $("gpumap").disabled = true; $("gpumapr").textContent = "Starting..."; post({ act: "gpumap" }); }; $("priv").onclick = (e) => { e.preventDefault(); post({ act: "privacy" }); }; $("logs").onclick = (e) => { e.preventDefault(); post({ act: "logs" }); }; @@ -295,6 +428,8 @@ NM.on = (m) => { $("earlyon").hidden = m.data.on; $("earlyoff").hidden = !m.data.on; return; } + if (m.event === "arm") { armEvent(m.data); return; } + if (m.event === "gm") { gmEvent(m.data); return; } if (m.event === "tester") { $("testr").innerHTML = m.data.ok ? `${m.data.on ? "Joined: a report goes out after each restart." : "Left: nothing runs any more."}` : `${esc(m.data.why)}`; @@ -341,6 +476,13 @@ NM.on = (m) => { : `${esc(m.data.why || "The EFI could not be mounted.")}`; return; } + if (m.event === "configPicked") { + const o = document.createElement("option"); o.value = "config:" + m.data.path; o.textContent = "config file: " + m.data.path; + $("efi").appendChild(o); $("efi").value = o.value; return; + } + if (m.event === "scan" && Array.isArray(m.data.experimentalOn)) for (const c of document.querySelectorAll(".expitem")) c.checked = m.data.experimentalOn.includes(c.dataset.id); + if (m.event === "scan" && $("vmdpane")) $("vmdpane").hidden = !m.data.vmdOrRaid; + if (m.event === "boostStatus") { $("bostr").textContent = m.data.text; return; } if (m.event === "tccStatus") { $("tccr").innerHTML = m.data.text ? `${esc(m.data.text)}` : ""; return; } if (m.event === "gpumapStatus") { $("gpumapr").textContent = m.data.text; if (m.data.done) $("gpumap").disabled = false; return; } if (m.event === "logsDone") { @@ -356,9 +498,15 @@ NM.on = (m) => { if (m.event === "scan" && m.data.itlwmNeedsHeliPort) { setTimeout(() => $("verdict").insertAdjacentHTML("beforeend", '

Wi-Fi: this Mac\'s Intel Wi-Fi runs on itlwm, which joins networks through its own app, HeliPort, not the Wi-Fi menu. Download HeliPort from github.com/OpenIntelWireless/HeliPort/releases, move it to Applications, open it, and pick your network there. To start it with the Mac, turn on Launch at Login in its menu.

'), 0); } - if (m.event === "scan" && m.data.safemode && m.data.record) { + // 2.7.1: shown for every Mac started with -nvoff, not only ones with an install record. 10 of 34 "driver did not come + // up" reports on 2.7 were parked this way with no way back on screen; setup finds the booted OpenCore partition itself. + if (m.event === "scan" && m.data.autologinByApp && $("autologin")) { + $("autologin").hidden = false; + $("autologinoff").onclick = () => post({ act: "autologinoff" }); + } + if (m.event === "scan" && m.data.safemode) { setTimeout(() => { - $("verdict").insertAdjacentHTML("afterbegin", '

This Mac started with the NVIDIA driver switched off: -nvoff is in the boot arguments. 1401 puts it there while macOS updates, and some people add it after a black screen. To turn the driver back on, click Turn the driver on, then restart. If the screen went black with the driver on, send the logs first (Send logs to NullMoth, below). To take the driver out for good, click Remove the driver below.

'); + $("verdict").insertAdjacentHTML("afterbegin", '

This Mac started with the NVIDIA driver switched off: -nvoff is in the boot arguments. 1401 puts it there while macOS updates, and some people add it after a black screen. If you prepared for the macOS 26 update, update macOS now from System Settings and the driver comes back by itself after it. To turn the driver back on without updating, or if it stayed off after the update, click Turn the driver on, then restart. If the screen went black with the driver on, send the logs first (Send logs to NullMoth, below). To take the driver out for good, click Remove the driver below.

'); $("nvon").onclick = () => { $("nvon").disabled = true; post({ act: "osupdate", cancel: true, efi: efi() }); }; }, 0); } diff --git a/mac/Resources/index.html b/mac/Resources/index.html index 119ef811..dfe638bc 100644 --- a/mac/Resources/index.html +++ b/mac/Resources/index.html @@ -42,7 +42,7 @@

Your Mac, mapped

  • Install. Backs up your OpenCore config, makes exactly the changes listed, installs the driver, and adds 1401: Remove NVIDIA driver to your boot picker.
  • Restart. If macOS says a system extension was blocked, open Privacy & Security, click Allow, and restart once more.
  • - +