Repository navigation
Install the FaceTime HD camera driver on Intel Macs that have one - #12067
Conversation
The Broadcom 1570 has no in-tree driver. Detect PCI 14e4:1570 and install facetimehd firmware, calibration data, and the DKMS module so new and existing Omarchy Macs get /dev/video0 after setup or omarchy update. The packaged facetimehd-dkms must be built from patjak/facetimehd after 54fb8f2; AUR 0.7.0.2 still calls strncpy and fails to compile on Linux 7.2.
|
Confirmed working on another supported Intel Mac, with one packaging update that may simplify this PR. Test system:
Installed and tested:
DKMS built successfully for The PR body's warning about stable AUR Strong support for the PCI-ID-gated install and migration. The exact package set proposed here works on MacBookAir6,2 and produces real 720p video, not just a loaded module. |
|
Hi, I was working on PR #13192 which partially fixed this, but was late. I have an A1466 with the Broadcom 14e4:1570 camera available for testing. The camera has already been verified manually on this machine: /dev/video0 appears and mpv captures 1280×720 at 30 fps. Once the package is available in [omarchy], I can validate it through a normal omarchy update. |
|
Tested on a MacBookPro12,1 (Early 2015 13"), On packaging: AUR On Small note: the migration doesn't Happy to validate through |
|
Follow-up to the recent camera reports: I ran
Fresh hardware retest on MacBookAir6,2, PCI
This validates current capture and the already-installed migration path. A fresh package installation through a normal The reboot observation matches the code at this revision: neither the install script nor migration calls One packaging detail for the remaining validation: this revision's |
|
Reviewed at 8bb9e8e against What was checked. On a disposable Omarchy VM (7.2.5-3-omarchy),
What that means if it merged today:
None of this is a defect in this branch's code. It is an ordering dependency on packaging in another repository, which is the maintainer's call. That includes redistributing Apple's camera firmware, and which Smaller points, not pushed:
Competing PRs. #11381 (older) targets the same camera. It installs from the AUR with Hardware. The camera itself could not be reproduced on a VM. The reports above from @drbree82 and @calebl were made with packages they built themselves, not from this head through Second opinion: Codex Medium reviewed the same head. It agreed on the package dependency and on #11381's root-install gap (independence not guaranteed). It found on its own the ISO build failure, which I then confirmed in the omarchy-iso builder, and the missing module load. It also suggested making Next: this waits on the maintainer to publish the facetimehd packages in |
|
Follow-up to the October 7 packaging review at unchanged head The dependency is still visible in the available metadata: The earlier AUR/DKMS and camera-capture reports demonstrate that the hardware can work, but do not validate this PR's fresh binary-repository installation path. I have not repeated a physical Mac capture in this follow-up or run the installer on unrelated hardware. Which package proposal should hardware testers follow for the coordinated install/update check? Once the binary packages are available, the remaining useful test is a normal install/update on |
|
The head is unchanged since the review above (8bb9e8e), so this only covers what is new: #12686, and whether #12686 is not a reason to close this one. It carries this PR's change and adds an Apple DMI vendor check before the PCI match ( Still blocked on packaging. Who checked it: Codex Medium compared all four PRs separately, without being told my answer. It reached the same conclusion and found the migration-retry test in #12686 without being pointed to it. Independence is not guaranteed. It also re-read this head against the current Next: this waits on the maintainer to publish the facetimehd packages, then on a hardware test of this head through |
Apple's license for the camera's firmware and calibration files says they may not be copied or redistributed, so [omarchy] cannot publish facetimehd-firmware or facetimehd-data and the ISO cannot cache them. The leaf now installs facetimehd-dkms, which is GPL, and facetimehd-firmware-fetcher, which downloads the files from Apple on the Mac itself and checks each against a pinned hash. Its service retries at boot, so an install with no network gets the camera on the first boot that has one. Each part is asked for only when pacman -T says nothing installed provides it, under its current name or the older bcwc-pcie ones. omarchy-pkg-add hands every name to pacman -S once any one is missing, so a Mac running an AUR driver would otherwise be asked to install facetimehd-dkms beside it, which conflicts, and fail the migration on every update. The migration asks for a reboot when it installed something, since the module only loads at boot, starts the fetch rather than leaving it for that boot, and takes a current timestamp. Its checks leave the test, which covers the leaf the migration sources, since a migration runs once and its test stops guarding anything. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Opus 5.5 High <[email protected]>
[Medium impact] The reviewed changes appear safe to merge; no new actionable issue was established. SummaryAdds FaceTime HD camera support for Intel Macs with the Broadcom
The earlier request for migration tests was withdrawn after omarchybot explained the testing approach and manual checks.
|
| run_leaf 1 | ||
| grep -Fxq $'omarchy-pkg-add\tfacetimehd-dkms\tfacetimehd-firmware-fetcher' "$calls" || | ||
| fail "leaf installs the DKMS module and the firmware fetcher" "$(cat "$calls")" | ||
| grep -Fxq "$fetcher_enabled" "$calls" || | ||
| fail "leaf enables the fetch for a first boot with a network" "$(cat "$calls")" | ||
| pass "leaf installs the DKMS module and the firmware fetcher, and enables the fetch" |
There was a problem hiding this comment.
These tests run the install leaf but never run migrations/1795284903.sh. They miss the reboot flag and service start that existing installs depend on, so those steps can break while the tests still pass. Add migration cases for matching hardware, already-installed packages, unmatched hardware, and package-install failure. Check the reboot flag and service-start calls.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
Not changed. Omarchy's migration guide says not to add tests for a migration under test/ (agents/skills/migrations.md: "It runs once per machine and is frozen once it ships, so the test stops guarding anything. If a migration needs logic worth testing, put that logic in a bin/ command the migration calls and test the command"), and the migration's checks were removed from this test for that reason. What it does beyond the leaf is set reboot-required when the leaf selected packages and start the fetch; both were exercised on a disposable Omarchy VM against real pacman, where the migration installed both packages, set the flag and started the service, which fetched the firmware. The leaf it sources, which holds the logic, is what facetimehd-test.sh covers. Checked by Claude Opus 5.5.
There was a problem hiding this comment.
Got it — that makes sense. I wasn't aware of Omarchy's migration testing policy. If the migration sources a tested leaf and the one-time orchestration (flag + service start) was verified manually on a real system, that aligns with the project's approach of not adding tests for frozen, single-run migration scripts.
Based on your explanation, shall I remember this as a rule: "Do not flag missing tests for migrations under test/; Omarchy's policy is to test reusable logic (bin/ commands, install leaves) separately and verify the migration orchestration manually on real systems, since migrations run once per machine and are frozen after shipping"?
|
Reviewed the changes at a82c4bd against I classified this as a hardware compatibility fix, but the classification model, |
The installer works offline, so the firmware is never fetched during the install: facetimehd-firmware-fetcher.service downloads it once the Mac has a network. Co-Authored-By: Claude Opus 5.5 <[email protected]>
facetimehd deadlocks the kernel's hibernation freeze. Unloading it from a system-sleep hook cannot help when an app has the camera open, because the unload is refused and systemd ignores a failing sleep hook, so hibernation went ahead and hung. omarchy-system-sleep-facetimehd now runs before and after the hibernating sleep units, from drop-ins the leaf installs: it unloads the driver, or fails the unit, which cancels the sleep, and notifies the person at the seat which app to close. After the sleep it loads the driver again if it unloaded it. The leaf installs the guard on every Mac with the camera, including one that keeps an AUR driver, and asks for the fetcher whenever nothing provides the firmware itself: calibration from the AUR facetimehd-data is left alone by the fetcher rather than standing in for firmware.bin. The manual says how hibernation behaves and how to retry the fetch. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Codex XHigh <[email protected]>
…e's first boot facetimehd-firmware-fetcher loads the camera driver once it has the firmware. The hibernation guard now unloads and reloads it under the same /run/lock/facetimehd.lock, and leaves its marker at the path the fetcher reads, so a fetch finishing mid-sleep cannot put the driver back before hibernating. An image's first boot runs the leaf after boot has queued its units, so enabling the fetch left it for the next boot; there it starts now, as the Bluetooth leaf starts its service. The manual says hibernation on a critical battery and suspend-then-hibernate are refused too, and describes the fetch's retries rather than promising a time. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Codex XHigh <[email protected]>
…the driver The guard left no trace when the driver was not loaded, so a firmware fetch finishing between pre and the freeze could load it and hibernation went ahead with it. pre now marks the sleep in progress under the shared lock whatever it finds, and records separately whether it unloaded the driver; a fetch that finishes meanwhile asks for the load, and post makes it with the restore it owes. The manual names the driver's own refusal of ordinary suspend while the camera is open, and that a changed download stops the retries. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Codex XHigh <[email protected]>
The guard loaded the driver on wake for a fetch that finished mid-sleep and dropped the request if that load failed, leaving nothing to retry it. The fetcher now keeps its activation pending through the sleep, and post starts its service, which loads and verifies the camera and retries until it works. A driver post fails to reload becomes that pending activation too. post waits for the shared lock rather than going on without it, since the fetcher holds it only while it loads the driver. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Codex XHigh <[email protected]>
…loaded A module loads even when its device fails to probe, so post took a successful modprobe for a working camera. It now waits briefly for the 1570 to be bound and to register a video device, and hands a camera that does not come back to the fetcher as pending activation, as it already did a module that would not load. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Codex XHigh <[email protected]>
The hibernating sleep units give ExecStopPost 5 s, and post waited for the camera to come back and for the driver lock without bound, so systemd killed it mid-wait and left the sleep marked in progress with nothing restored. The drop-in raises the units' stop timeout to 30 s, post waits at most 10 s for the lock and 2 s for the camera, and anything longer is the fetcher's: a camera not back yet, or a lock it could not get, becomes pending activation and starts the fetcher, with the shared markers left untouched when post holds no lock. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Codex XHigh <[email protected]>
|
Read the updated head aa8c505 against I classified this as a hardware compatibility fix, but the configured classification model, |
|
I pushed commits on top of yours, up to aa8c505. The packages this needed can't be published as they were, so the change now installs a driver plus a firmware fetcher, and guards hibernation. What was wrong
What changed here
What was checked On disposable Omarchy VMs running
The VMs have no camera, so nothing has run against real hardware. Capture rests on @murdawkmedia's and @calebl's reports above, which used the same driver line. Who checked it Claude Opus 5.5 did the work. Opus 5.5 High reviewed the first design, and Codex XHigh reviewed the whole of it over seven rounds. Most of the changes above answer Codex's findings rather than agree with mine, and its last round found nothing left to fix. Independence between the models is not guaranteed. Next This waits on the maintainer: #3215 publishes first, and omacom/omarchy-iso#498 keeps the two packages off aarch64 builds. Then a test on a real 1570 Mac through |
…acom#12067) * Install the FaceTime HD camera driver on Intel Macs that have one The Broadcom 1570 has no in-tree driver. Detect PCI 14e4:1570 and install facetimehd firmware, calibration data, and the DKMS module so new and existing Omarchy Macs get /dev/video0 after setup or omarchy update. The packaged facetimehd-dkms must be built from patjak/facetimehd after 54fb8f2; AUR 0.7.0.2 still calls strncpy and fails to compile on Linux 7.2. * Fetch the FaceTime HD firmware from Apple rather than shipping it Apple's license for the camera's firmware and calibration files says they may not be copied or redistributed, so [omarchy] cannot publish facetimehd-firmware or facetimehd-data and the ISO cannot cache them. The leaf now installs facetimehd-dkms, which is GPL, and facetimehd-firmware-fetcher, which downloads the files from Apple on the Mac itself and checks each against a pinned hash. Its service retries at boot, so an install with no network gets the camera on the first boot that has one. Each part is asked for only when pacman -T says nothing installed provides it, under its current name or the older bcwc-pcie ones. omarchy-pkg-add hands every name to pacman -S once any one is missing, so a Mac running an AUR driver would otherwise be asked to install facetimehd-dkms beside it, which conflicts, and fail the migration on every update. The migration asks for a reboot when it installed something, since the module only loads at boot, starts the fetch rather than leaving it for that boot, and takes a current timestamp. Its checks leave the test, which covers the leaf the migration sources, since a migration runs once and its test stops guarding anything. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Opus 5.5 High <[email protected]> * Say the camera firmware arrives once the Mac is online The installer works offline, so the firmware is never fetched during the install: facetimehd-firmware-fetcher.service downloads it once the Mac has a network. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Refuse hibernation while the FaceTime HD camera is in use facetimehd deadlocks the kernel's hibernation freeze. Unloading it from a system-sleep hook cannot help when an app has the camera open, because the unload is refused and systemd ignores a failing sleep hook, so hibernation went ahead and hung. omarchy-system-sleep-facetimehd now runs before and after the hibernating sleep units, from drop-ins the leaf installs: it unloads the driver, or fails the unit, which cancels the sleep, and notifies the person at the seat which app to close. After the sleep it loads the driver again if it unloaded it. The leaf installs the guard on every Mac with the camera, including one that keeps an AUR driver, and asks for the fetcher whenever nothing provides the firmware itself: calibration from the AUR facetimehd-data is left alone by the fetcher rather than standing in for firmware.bin. The manual says how hibernation behaves and how to retry the fetch. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Codex XHigh <[email protected]> * Share the driver lock with the fetcher and start the fetch on an image's first boot facetimehd-firmware-fetcher loads the camera driver once it has the firmware. The hibernation guard now unloads and reloads it under the same /run/lock/facetimehd.lock, and leaves its marker at the path the fetcher reads, so a fetch finishing mid-sleep cannot put the driver back before hibernating. An image's first boot runs the leaf after boot has queued its units, so enabling the fetch left it for the next boot; there it starts now, as the Bluetooth leaf starts its service. The manual says hibernation on a critical battery and suspend-then-hibernate are refused too, and describes the fetch's retries rather than promising a time. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Codex XHigh <[email protected]> * Mark every hibernating sleep in progress, not only one that unloaded the driver The guard left no trace when the driver was not loaded, so a firmware fetch finishing between pre and the freeze could load it and hibernation went ahead with it. pre now marks the sleep in progress under the shared lock whatever it finds, and records separately whether it unloaded the driver; a fetch that finishes meanwhile asks for the load, and post makes it with the restore it owes. The manual names the driver's own refusal of ordinary suspend while the camera is open, and that a changed download stops the retries. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Codex XHigh <[email protected]> * Resume the fetcher's activation on wake instead of loading for it The guard loaded the driver on wake for a fetch that finished mid-sleep and dropped the request if that load failed, leaving nothing to retry it. The fetcher now keeps its activation pending through the sleep, and post starts its service, which loads and verifies the camera and retries until it works. A driver post fails to reload becomes that pending activation too. post waits for the shared lock rather than going on without it, since the fetcher holds it only while it loads the driver. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Codex XHigh <[email protected]> * Check the camera came back after the sleep, not only that the driver loaded A module loads even when its device fails to probe, so post took a successful modprobe for a working camera. It now waits briefly for the 1570 to be bound and to register a video device, and hands a camera that does not come back to the fetcher as pending activation, as it already did a module that would not load. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Codex XHigh <[email protected]> * Keep the wake step within the sleep unit's stop budget The hibernating sleep units give ExecStopPost 5 s, and post waited for the camera to come back and for the driver lock without bound, so systemd killed it mid-wait and left the sleep marked in progress with nothing restored. The drop-in raises the units' stop timeout to 30 s, post waits at most 10 s for the lock and 2 s for the camera, and anything longer is the fetcher's: a camera not back yet, or a lock it could not get, becomes pending activation and starts the fetcher, with the shared markers left untouched when post holds no lock. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Codex XHigh <[email protected]> --------- Co-authored-by: omarchybot <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Codex XHigh <[email protected]>
What
Detect the Broadcom FaceTime HD PCIe webcam (
14e4:1570) and installfacetimehd-firmware,facetimehd-data, andfacetimehd-dkmsduring hardware setup. A migration covers existing installs.This is the 720p camera in 2013–2015 Intel Macs (this machine is a MacBookPro12,1). There is no in-tree driver.
Packaging
facetimehd-dkmsis not in[omarchy]yet. Please add it to the ISO/repo from current patjak/facetimehd master (after54fb8f2), not AUR0.7.0.2.Linux 7.2 removed
strncpyfrom the kernel API. AUR0.7.0.2still calls it infthd_v4l2.cand DKMS fails onlinux-omarchy7.2 with:Upstream already guards that call for kernels >= 4.2. I compiled
c5c7facagainst7.2.5-3-omarchyon this MacBook and it built cleanly.Also cache
facetimehd-firmwareandfacetimehd-data(already listed inomarchy-other.packages).Test plan
test/shell.d/facetimehd-test.sh./test/clifacetimehd-dkmsfrom current git is in[omarchy]14e4:1570,modinfo facetimehdand/dev/video0after install oromarchy update