[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DXY4G8NSVB59K8B6S2AQNP":3,"skill-same:01M7DXY4G8NSVB59K8B6S2AQNP":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":45,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M7DXY4G8NSVB59K8B6S2AQNP","macbook-linux-maintenance",null,"Legacy MacBook Linux fixes: GPU wedge, reboot hang, thermal.","lukemcqueen\u002Fsteadfaste-fleet","lukemcqueen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F405240?v=4","01M757MHPAGRXTJAT46SKZP98R","Luke McQueen","01M757MHPZ573KP8DT9GB8SBQ7",4,"MIT","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fmacbook-linux-maintenance\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: macbook-linux-maintenance\nversion: 1.0.0\ncategory: devops\ndescription: \"Legacy MacBook Linux fixes: GPU wedge, reboot hang, thermal.\"\nauthor: Esther\nlicense: MIT\nplatforms: [linux]\nmetadata:\n  hermes:\n    tags: [macbook, linux, gpu, thermal, nvidia, reboot, hardware]\n    related_skills: [linux-performance-diagnostics]\n---\n\n# MacBook on Linux — Maintenance Class\n\n## When to Use\n\n- A legacy Apple laptop on Linux is slow, hot, loud, or hangs on shutdown\u002Freboot;\n  load average ~1000; 4K display stuck at 30Hz.\n- A GPU-driver install\u002Fswap on a MacBook went wrong, or `dkms status` shows a\n  driver branch that should not be there.\n- You need to identify an Apple laptop's real model\u002Fyear from DMI data or a serial.\n- Desktop automation on a locked-screen Linux session (input goes to the lock grab).\n- Changing the display mode or its persistence (any of the `~\u002F.xprofile`, `~\u002F.config\u002Fautostart\u002F`, or lightdm conf layers) — load this FIRST for the mode\u002Fheat trade-offs and which layer needs the user's sudo.\n- A host that is \"hot\" with no obvious cause — read the thermal section before touching anything.\n- The operator reports the machine made a **strange noise**, was loud, or \"just\n  came back\" — run the noise triage (§5b) before touching hardware or blaming a\n  crash; the answer is usually an event in the logs, not a fault.\n\nUse when a legacy Apple laptop (2012-era MacBookPro10,1 and siblings) running\nLinux reports: load average ~1000, \"graphics slow\", shutdown\u002Freboot hangs,\n4K stuck at 30Hz, or a GPU-driver swap gone wrong. Proven live 2026-08-31 on\nthe fleet's 2012 15\" retina (MacBookPro10,1). Overlaps `linux-performance-diagnostics`\n(which covers general perf diagnosis); this skill is the Apple-hardware-specific\nplaybook.\n\n## 1. Identify the machine — don't trust the seller\n\n```bash\ncat \u002Fsys\u002Fclass\u002Fdmi\u002Fid\u002Fproduct_name      # MacBookPro10,1 = June-2012 15\" retina\ncat \u002Fsys\u002Fclass\u002Fdmi\u002Fid\u002Fbios_date         # a 2022 date = EFI *update* date, NOT manufacture\nlscpu | grep 'Model name'               # i7-3720QM (Ivy Bridge) = 2012 silicon\nlsblk -o NAME,SIZE,MODEL                # SATA SSD only → 2014\u002F15 MBPs have NO SATA\n```\n\n- 2014\u002F2015 15\" models are `MacBookPro11,4\u002F11,5` (Haswell i7-4870HQ + GT 750M\u002FR9,\n  PCIe SSD) — a SATA-only machine cannot be one.\n- **Apple serial decode** (old 11-12 char format): char 4 = year letter\n  (`H\u002FJ`=2012, `K\u002FL`=2013, `M\u002FN`=2014, `P\u002FQ`=2015, H1\u002FH2 halves); chars 5-6 = week.\n  `C02Jxxxxxx` → Foxconn, 2012H2. Root-gated in sysfs; read from the bottom case\n  or `sudo dmidecode -s system-serial`.\n- Sellers routinely misread the 2022-era EFI firmware build as the manufacture date.\n\n## 2. GPU wedge \u002F load storm\n\nSignature: `cat \u002Fproc\u002Floadavg` ≈ 1000 with ~3 running; `ps -eo stat | sort | uniq -c`\nshows 1000+ `D` (all kworkers on CPU0); `dmesg | grep ttm_validate` shows\n`nouveau ... validate: -12`; shutdown log shows `drm_fb_helper_damage_work hogged\nCPU >10000us`.\n\nRoot cause: **nouveau on GK107 with 983MB VRAM** driving a hi-res multi-monitor\ndesktop + Chromium apps → TTM memory manager wedges → kworker storm. Only a\nreboot clears it.\n\nMap outputs to GPUs first (decides driver-swap safety):\n`readlink -f \u002Fsys\u002Fclass\u002Fdrm\u002Fcard*-*\u002Fdevice` — on this MBP all real outputs are\nNVIDIA (01:00.0); Intel (00:02.0) has only a phantom VGA.\n\n## 3. Reboot hang (kernel never powers off)\n\nsystemd reaches `reboot.target` \u002F `Sending SIGTERM`, journal stops, machine sits.\nTwo causes: the GPU wedge at shutdown + **missing the Mac reboot quirk** — Apple\nEFI needs the PCI reboot method:\n\n```bash\nsudo sed -i 's\u002FGRUB_CMDLINE_LINUX_DEFAULT=\"quiet splash\"\u002FGRUB_CMDLINE_LINUX_DEFAULT=\"quiet splash reboot=pci\"\u002F' \u002Fetc\u002Fdefault\u002Fgrub\nsudo update-grub\n```\nFallback `reboot=kbd` if it still hangs. Verify: `grep reboot \u002Fetc\u002Fdefault\u002Fgrub`.\n\n## 4. Display: 4K stuck at 30Hz\n\nGT 650M HDMI is **1.4** → 4K caps at 30Hz. Monitor EDID offers\n`2560x1440 @ 59.95` — switch for 2× smoothness:\n`DISPLAY=:0 xrandr --output HDMI-1 --mode 2560x1440 --rate 59.95`\nPersist via `~\u002F.config\u002Fautostart\u002F\u003Cname>.desktop`. 4K@60 needs a DP cable.\n\nIf the display is UNUSED (SSH-only host), prefer 1080p to cut GPU heat: set\n`1920x1080@60` in **all three layers** — `~\u002F.xprofile` (session),\n`~\u002F.config\u002Fautostart\u002F*.desktop` (session), and\n`\u002Fetc\u002Flightdm\u002Flightdm.conf.d\u002F*.conf` with\n`display-setup-script=\u002Fusr\u002Fbin\u002Fxrandr --output HDMI-1 --mode 1920x1080 --rate 60`\n(greeter). `xrandr` against the live greeter fails from SSH (root X cookie in\n`\u002Fvar\u002Frun\u002Flightdm\u002Froot\u002F:0`, unreadable to the agent) — user runs the sudo\n`install` for the lightdm conf; it applies at next greeter start.\n\n## 5. Thermal: dried-paste signature + bounded load test\n\nIdle package 63-67 °C with the heatsink sensor (TC0F) at 65-74 °C at load \u003C1 is\nthe dried-paste signature — a healthy chassis reads nearer 50 °C — and the fans\ntypically will NOT be off their floor. `intel_powerclamp` injecting idle on top\nof that means the kernel is throttling before any real work arrives. Confirm it\nwith a bounded load test; never infer it from a single reading.\n\n**Run `scripts\u002Fthermal-load-probe.sh`** (packaged with this skill) rather than\nhand-typing the loop: it samples fans \u002F package \u002F heatsink \u002F load \u002F core freq \u002F\nCPU PSI across baseline → load → recovery and tees a transcript you can commit\nas evidence. Rules that make the run safe and its result mean something:\n\n- **Derive the abort threshold from the hardware first.** Read `temp1_crit`\n  (105 °C on MBP10,1) and abort below it — the script defaults to crit − 6 °C.\n  An unbounded CPU load on a 2012 laptop can reach thermal shutdown and take the\n  host off the fleet mid-test.\n- **The harness refuses a foreground `&`** — start the probe with\n  `terminal(background=true, notify=true)`, then wait for the `thermal-probe end`\n  marker in a second, bounded foreground call and `cat` the artifact. Do not\n  hand-poll the sensors and call the result a curve; samples taken seconds apart\n  prove nothing.\n- **Read the baseline before the peak.** If the \"baseline\" sample is already hot\n  (92 °C with the kernel already injecting idle is a real case), the run measures\n  the thermal CEILING, not a cold-start ramp — say which one it is instead of\n  presenting the peak as a rise from rest.\n- **Killing the workers is part of the procedure** — the recovery curve is the\n  evidence that the cooling loop still modulates, so sample it too.\n- **Fan health is the MOVEMENT, not the number.** Both fans tracking each other\n  and each reaching its own max is a healthy loop; a fan stuck at 0, or one\n  pinned at max while the other sits at idle, is the hardware fault.\n\nMeasured on MBP10,1: 8× `yes` for 120 s pinned fan1 at 5940\u002F5940 and fan2 at\n~5499\u002F5499 within 15 s, package plateaued 87-92 °C, and core frequency held\n~3.4 GHz — the throttle is `intel_powerclamp` idle injection, NOT a clock drop,\nso do not look for falling MHz as proof of throttling. Fans at 100% to hold\n90 °C is also exactly the \"crazy noise\" an operator reports (§5b). Recovery:\nfans 5941 → ~4300 and package 92 → 70 °C in ~45 s, back to fan minimum and\n67 °C in ~7 min. Needing full fan for 90 °C at that load, on top of a hot idle,\nis the re-paste call (pentalobe bottom case, dust fins, fresh paste on CPU+GPU).\n\n**Fan RPM has two possible sources — check both.** `sensors` lists fans only\nwhile applesmc has a hwmon device registered; on kernels where that\nregistration is deprecated it prints temps and NO fan lines. The fans are always\nreadable on the platform device: `cat \u002Fsys\u002Fdevices\u002Fplatform\u002Fapplesmc.768\u002Ffan1_input`\n(plus `fan2_input`, `fan1_min`, `fan1_max` — fan1 2160-5940, fan2 2000-5499 on\nthis host). Never report \"fans healthy\" off a `sensors` run that showed no fan lines.\n**Temps and thresholds follow the same rule — read the nodes, not `sensors`:**\nheatsink \u002F CPU-proximity is `...\u002Ftemp5_input` (TC0F), the package is\n`\u002Fsys\u002Fclass\u002Fhwmon\u002Fhwmon1\u002Ftemp1_input` (coretemp) with `temp1_max` and `temp1_crit`\nbeside it for the limits. `fan*_safe` returns \"Invalid argument\" and is NOT a\nreadable limit; `fan*_output` holds the last manually written value, not the live\nspeed — a probe that reports either invents a number.\n\n## 5b. Strange-noise \u002F loud-fan triage — answer from logs before hardware\n\nWhen the operator says the machine made a strange noise, the answer is almost\nnever an alarm: establish WHICH event the noise belongs to, then read the fans.\n\n1. **Same boot?** `uptime` + `journalctl --list-boots --no-pager`. A boot\n   boundary inside the reported window means the noise was the BOOT — a cold\n   boot drives both fans toward max while journald recovers and the container +\n   cron stack starts (Docker, clickhouse, minio, ollama and the cron-bridge\n   services pegged this host for ~10 minutes after a cold start).\n2. **Read the END of the previous boot:** `journalctl -b -1 -k --no-pager -n 40`.\n   BOUND it — a bare `journalctl -b -1` dump exceeded a 180s timeout; use `-k`,\n   `-n N`, or `--since\u002F--until` windows instead.\n3. **Hang-in-suspend vs clean shutdown** — both look like \"it was off\":\n   - `systemd-logind: Suspend key pressed short` then `PM: suspend entry (deep)`\n     as the FINAL journal line = suspended on the sleep key;\n   - the next boot reporting `system.journal corrupted or uncleanly shut down,\n     renaming and replacing` = the power was CUT, never resumed.\n   A journal that stops at suspend entry with no resume line = hung suspend,\n   then hard power-off. On a fleet host that is a silent outage: state the\n   wall-clock gap and name the crons\u002Fbackups that fell inside it — a standby\n   host that drops out of the fleet unattended is the finding, not the noise.\n4. **Sample the fans twice, a minute apart, with `cat \u002Fproc\u002Floadavg` beside\n   them.** A ramp while load is FLAT is the fan fighting a bad thermal path\n   (dried paste, §5), not load. TC0F (`...\u002Ftemp5_input`) is the CPU\u002FGPU heatsink\n   proximity sensor; ~74 °C at load ~1.7 is the dried-paste signature.\n5. **Rule out audio before blaming hardware** —\n   `cat \u002Fproc\u002Fasound\u002Fcard0\u002Fpcm0p\u002Fsub0\u002Fstatus` (`closed` = nothing playing),\n   `pgrep -a orca`, `pgrep -a speech-dispatcher` (a stray screen-reader toggle\n   is the \"machine started talking\" case, §7). Closed ALSA + empty pgrep output\n   removes software audio as the source and lets you say so.\n6. **Report the mechanism, not just a number:** fans at N of max RPM with load\n   flat and heatsink ~T °C, plus the boot\u002Fsuspend event that started it. Offer\n   the next step (re-paste, or disabling suspend so the host cannot drop out)\n   instead of stopping at the reading.\n\n## 6. nvidia proprietary driver — the 470\u002F535\u002F580 shim chain (Ubuntu 24.04)\n\nKepler (GK107) needs the **470** branch; 535\u002F580 modules do not initialize it.\nUbuntu 24.04 gotcha: `nvidia-driver-470` metapackage `Depends: nvidia-driver-535`\n→ `Depends: nvidia-driver-580` — it's a **userspace shim**, not the Kepler\nmodule. The real module ships only in **`nvidia-dkms-470`** (which depends on\n`nvidia-dkms-535` as a base; both build, 470 wins by install order). Driver-version\nlibs co-install; an alternatives mechanism selects the active one.\n\n- Before ANY reboot with an nvidia stack installed: **check `dkms status`** —\n  expect `nvidia\u002F470.256.02 ... installed`. A 580 module + the nouveau blacklist\n  already in initramfs = black-screen risk on next boot.\n- Defuse a wrong 580 install: purge 580\u002F535\u002F470 metapackages, `sudo dkms remove\n  nvidia\u002F580.173.02 --all`, `update-initramfs -u`, then install\n  `nvidia-driver-470 nvidia-dkms-470` + select 470 via alternatives — only while\n  physically at the machine (display recovery may be needed).\n- Safe fallback that already covers the reboot hang: stay on nouveau + `reboot=pci`.\n\n## 7. Locked-screen desktop automation (computer-use interplay)\n\nWhen the desktop session is locked (screensaver): `computer_use` captures still\nrender (compositor) but injected input goes to the lock screen's grab — clicks\n\"succeed\" with no effect. Detect via `cinnamon-screensaver-command -t` or a\nfull-screen capture showing the lock UI. Never bypass the lock; instead:\n- Use the app's own side-channel — e.g. a login QR the OWNER scans with their\n  phone: capture the app window, locate the QR by white-pixel density scan,\n  crop, upscale 3×, deliver via `MEDIA:`. (QR codes expire ~60s; re-capture.)\n- Or ask the user to unlock.\n- A click aimed at the app while locked can land on the lock screen's\n  accessibility icon and toggle **Orca screen reader** ON — if the machine\n  \"starts talking\": kill `orca` + `speech-dispatcher` and clear\n  `org.gnome.desktop.a11y.applications screen-reader-enabled` + the Cinnamon key.\n\n## 9. Display blanking (login screen): gmux backlight + setpci bridge fix\n\nMacBookPro10,1: the internal LCD backlight is routed through Apple's gmux\ncontroller. On kernel 6.x the `apple_gmux` driver exposes a sysfs interface at\n`\u002Fsys\u002Fclass\u002Fbacklight\u002Fgmux_backlight\u002F` but the hardware does NOT respond to\nit — writes to `bl_power` and `brightness` return 0\u002Fsucceed silently but the\nbacklight stays on 100%. `xset dpms force off` also succeeds but has no effect\non the internal display (external HDMI monitors are unaffected).\n\n### Root cause\n\nThe gmux registers are IO-port-mapped (0x700-0x7fe) behind a PCI bridge that\nisn't configured to decode them. Writing `BRIDGE_CONTROL` register clears the\nbridge's I\u002FO decode restriction:\n\n```bash\nsudo setpci -H1 -s 00:01.00 BRIDGE_CONTROL=0\n```\n\nAfter this one command, the gmux responds to both sysfs and X DPMS commands.\n\n### Verify\n\n```bash\n# After fix: sysfs actually turns backlight off\u002Fon\necho 4 | sudo tee \u002Fsys\u002Fclass\u002Fbacklight\u002Fgmux_backlight\u002Fbl_power   # off\necho 0 | sudo tee \u002Fsys\u002Fclass\u002Fbacklight\u002Fgmux_backlight\u002Fbl_power   # on\n```\n\n**Confirm the off state with `actual_brightness`, not `bl_power` or\n`brightness`** — `brightness` keeps the user's set value (e.g. 860\u002F1023) after\npower-off and `bl_power=4` alone just echoes the write back;\n`cat ...\u002Factual_brightness` dropping to 0 is the only sysfs proof the hardware\naccepted it (and per the NOT-do list, pair it with the user's visual\nconfirmation).\n\n**No wattage instrument on this machine** — AC-powered, no `power_now` in\nsysfs, battery current reads 0A. Judge power changes by package temp + fan\nRPM deltas, taken at matched load (`uptime` before\u002Fafter), and expect 10-15\nmin of settling before a before\u002Fafter comparison means anything; a single\ntransient spike (e.g. +10°C right after a change with flat CPU load) is not\nevidence the change caused it.\n\n**Unused display still costs power while 'black'** — an enabled output with\nbacklight at 0 still keeps the GPU in D0\u002Factive (scanout) and out of low-power\nstates; the greeter (slick-greeter + Xorg) rendering it accounts for ~1% CPU.\nFull savings need the output off or the greeter stopped — weigh that against\nlosing the local login path (SSH stays as recovery; a plugged-in HDMI monitor\nworks regardless of eDP-1 state because HDMI is the NVIDIA GPU's output and\neDP-1 the Intel's).\n\n### Making it permanent at the login screen\n\nAdd to the LightDM `greeter-setup-script` (runs as root before greeter starts):\n\n```bash\n# \u002Fusr\u002Flocal\u002Fbin\u002Flightdm-screen-blank (called via greeter-setup-script in lightdm.conf.d)\nsetpci -H1 -s 00:01.00 BRIDGE_CONTROL=0 >\u002Fdev\u002Fnull 2>&1\nsleep 2\nxset s blank\nxset s 30\nxset dpms 30 30 30\nexit 0\n```\n\nThen reference it in `\u002Fetc\u002Flightdm\u002Flightdm.conf.d\u002F70-screen-off.conf`:\n```\n[Seat:*]\ngreeter-setup-script=\u002Fusr\u002Flocal\u002Fbin\u002Flightdm-screen-blank\n```\n\n**Critical:** suppress ALL output from `setpci` with `>\u002Fdev\u002Fnull 2>&1` — any\nstdout\u002Fstderr from the greeter-setup-script causes the greeter to fail.\nAlso avoid the `-v` (verbose) flag for the same reason.\n\n### Making it permanent system-wide\n\nAdd to `\u002Fetc\u002Frc.local` or a oneshot systemd service:\n\n```\nsetpci -H1 -s 00:01.00 BRIDGE_CONTROL=0\n```\n\n### Revert\n\nReboot clears the bridge register — the setting is runtime only. No persistent\nside effects.\n\n### What NOT to do\n\n- **Do not** install polling loops (`xprintidle`), background daemons, or\n  `brightnessctl`\u002F`vbetool` to work around this. The bridge fix is the correct\n  hardware-level solution.\n- **Do not** add kernel boot parameters (`acpi_backlight=native\u002Fvendor`,\n  `apple_gmux.backlight=0`, `modprobe.blacklist=apple_gmux`) — these make the\n  backlight interface disappear entirely or break GPU switching without fixing\n  anything.\n- **Do not** write scripts that `sleep 30; echo 4 > bl_power` — the backlight\n  won't respond without the bridge fix regardless of approach.\n- **Do not** claim the fix works until the user has visually confirmed the\n  backlight turns off. The driver reports success silently even when the\n  hardware ignores the command.\n- **Do not** use `setpci -v` (verbose flag) in a `greeter-setup-script` --\n  any output from the script causes the greeter to fail. Always redirect\n  all output: `>\u002Fdev\u002Fnull 2>&1`.\n- **Do not** use `disown` to background a process from a `greeter-setup-script` --\n  `greeter-setup-script` runs under `\u002Fbin\u002Fsh` (dash on Debian\u002FUbuntu), and\n  `disown` is a bash builtin. Use `setsid` instead.\n\n### References\n\n- `references\u002Fgmux-backlight-macbookpro10-1.md` — full session transcript,\n  error messages, and the debugging path that led to this fix.\n- Arch Wiki: Mac\u002FTroubleshooting, Backlight\n- Launchpad bug #1243897\n\n---\n\n## 8. Trackpad: bcm5974 \"urb failed: -19\" drop-outs\n\nSignature: `dmesg` shows `bcm5974 ... trackpad urb failed: -19` + `could not\nread from device`, trackpad re-enumerates (`input50\u002Fevent11`), cursor freezes\nbriefly. Root cause: **USB autosuspend on the PARENT HUBS**, not the trackpad —\nthe device itself is already `power\u002Fcontrol=on`; the Intel `8087:0024` and\nMicrochip `0424:2512` hubs on `auto` suspend\u002Fresume and the driver's wake\nURB fails (-19).\n\nFix (persistent, needs sudo): a udev rule pinning the trackpad AND both parent\nhubs to `control=on`, keyed on **vendor:product**, never the sysfs path. After\ninstalling rules for a NEW device class, verify the rule actually fires with\n`udevadm test` (or `udevadm info -q property`) before claiming the fix — a\nrule that doesn't match silently leaves autosuspend on and the symptom returns.\n\n```\n# \u002Fetc\u002Fudev\u002Frules.d\u002F99-trackpad-no-autosuspend.rules\nACTION==\"add\", SUBSYSTEM==\"usb\", ATTR{idVendor}==\"05ac\", ATTR{idProduct}==\"0262\", ATTR{power\u002Fcontrol}=\"on\"\nACTION==\"add\", SUBSYSTEM==\"usb\", ATTR{idVendor}==\"0424\", ATTR{idProduct}==\"2512\", ATTR{power\u002Fcontrol}=\"on\"\nACTION==\"add\", SUBSYSTEM==\"usb\", ATTR{idVendor}==\"8087\", ATTR{idProduct}==\"0024\", ATTR{power\u002Fcontrol}=\"on\"\n```\n\n- Verify with `udevadm test \u002Fsys\u002Fbus\u002Fusb\u002Fdevices\u002F\u003Cpath>` — it prints the\n  applied rules; a 99- rule OVERRIDES the distro's `60-autosuspend.rules`.\n- **`udevadm trigger` fires `change` events — `ACTION==\"add\"` rules do NOT\n  re-run.** Apply live via `sudo udevadm trigger --action=add --subsystem-match=usb`,\n  or just reboot (rules apply at enumeration).\n- **Vendor:product matching survives bus renumbering.** After reboot the\n  trackpad moved `4-1.8.2` → `2-1.8.2` (bus number changed); the rule still\n  matched. Never hardcode the `4-1.8.2`-style path in the rule.\n- Boot-time `-19`\u002F`mode switch failed` bursts at enumeration are benign probe\n  noise (device registers right after); the harmful pattern is REPEATED\n  drop-outs + re-enumeration cycles during suspend\u002Fresume.\n- If errors recur even with hubs pinned: worn trackpad ribbon cable — hardware\n  reseat\u002Freplace, nothing software fixes.\n\n## Verification\n\nAfter any change: `xrandr --current` (mode\u002Frate), `dkms status` (module version),\n`sensors | grep Package` (idle temp — but read fan RPM from\n`\u002Fsys\u002Fdevices\u002Fplatform\u002Fapplesmc.768\u002Ffan*_input`, because `sensors` may list no\nfan lines at all, §5b), a clean reboot (with `reboot=pci` present in\n`\u002Fetc\u002Fdefault\u002Fgrub`).\n","# MacBook on Linux — Maintenance Class\n\n## When to Use\n\n- A legacy Apple laptop on Linux is slow, hot, loud, or hangs on shutdown\u002Freboot;\n  load average ~1000; 4K display stuck at 30Hz.\n- A GPU-driver install\u002Fswap on a MacBook went wrong, or `dkms status` shows a\n  driver branch that should not be there.\n- You need to identify an Apple laptop's real model\u002Fyear from DMI data or a serial.\n- Desktop automation on a locked-screen Linux session (input goes to the lock grab).\n- Changing the display mode or its persistence (any of the `~\u002F.xprofile`, `~\u002F.config\u002Fautostart\u002F`, or lightdm conf layers) — load this FIRST for the mode\u002Fheat trade-offs and which layer needs the user's sudo.\n- A host that is \"hot\" with no obvious cause — read the thermal section before touching anything.\n- The operator reports the machine made a **strange noise**, was loud, or \"just\n  came back\" — run the noise triage (§5b) before touching hardware or blaming a\n  crash; the answer is usually an event in the logs, not a fault.\n\nUse when a legacy Apple laptop (2012-era MacBookPro10,1 and siblings) running\nLinux reports: load average ~1000, \"graphics slow\", shutdown\u002Freboot hangs,\n4K stuck at 30Hz, or a GPU-driver swap gone wrong. Proven live 2026-08-31 on\nthe fleet's 2012 15\" retina (MacBookPro10,1). Overlaps `linux-performance-diagnostics`\n(which covers general perf diagnosis); this skill is the Apple-hardware-specific\nplaybook.\n\n## 1. Identify the machine — don't trust the seller\n\n```bash\ncat \u002Fsys\u002Fclass\u002Fdmi\u002Fid\u002Fproduct_name      # MacBookPro10,1 = June-2012 15\" retina\ncat \u002Fsys\u002Fclass\u002Fdmi\u002Fid\u002Fbios_date         # a 2022 date = EFI *update* date, NOT manufacture\nlscpu | grep 'Model name'               # i7-3720QM (Ivy Bridge) = 2012 silicon\nlsblk -o NAME,SIZE,MODEL                # SATA SSD only → 2014\u002F15 MBPs have NO SATA\n```\n\n- 2014\u002F2015 15\" models are `MacBookPro11,4\u002F11,5` (Haswell i7-4870HQ + GT 750M\u002FR9,\n  PCIe SSD) — a SATA-only machine cannot be one.\n- **Apple serial decode** (old 11-12 char format): char 4 = year letter\n  (`H\u002FJ`=2012, `K\u002FL`=2013, `M\u002FN`=2014, `P\u002FQ`=2015, H1\u002FH2 halves); chars 5-6 = week.\n  `C02Jxxxxxx` → Foxconn, 2012H2. Root-gated in sysfs; read from the bottom case\n  or `sudo dmidecode -s system-serial`.\n- Sellers routinely misread the 2022-era EFI firmware build as the manufacture date.\n\n## 2. GPU wedge \u002F load storm\n\nSignature: `cat \u002Fproc\u002Floadavg` ≈ 1000 with ~3 running; `ps -eo stat | sort | uniq -c`\nshows 1000+ `D` (all kworkers on CPU0); `dmesg | grep ttm_validate` shows\n`nouveau ... validate: -12`; shutdown log shows `drm_fb_helper_damage_work hogged\nCPU >10000us`.\n\nRoot cause: **nouveau on GK107 with 983MB VRAM** driving a hi-res multi-monitor\ndesktop + Chromium apps → TTM memory manager wedges → kworker storm. Only a\nreboot clears it.\n\nMap outputs to GPUs first (decides driver-swap safety):\n`readlink -f \u002Fsys\u002Fclass\u002Fdrm\u002Fcard*-*\u002Fdevice` — on this MBP all real outputs are\nNVIDIA (01:00.0); Intel (00:02.0) has only a phantom VGA.\n\n## 3. Reboot hang (kernel never powers off)\n\nsystemd reaches `reboot.target` \u002F `Sending SIGTERM`, journal stops, machine sits.\nTwo causes: the GPU wedge at shutdown + **missing the Mac reboot quirk** — Apple\nEFI needs the PCI reboot method:\n\n```bash\nsudo sed -i 's\u002FGRUB_CMDLINE_LINUX_DEFAULT=\"quiet splash\"\u002FGRUB_CMDLINE_LINUX_DEFAULT=\"quiet splash reboot=pci\"\u002F' \u002Fetc\u002Fdefault\u002Fgrub\nsudo update-grub\n```\nFallback `reboot=kbd` if it still hangs. Verify: `grep reboot \u002Fetc\u002Fdefault\u002Fgrub`.\n\n## 4. Display: 4K stuck at 30Hz\n\nGT 650M HDMI is **1.4** → 4K caps at 30Hz. Monitor EDID offers\n`2560x1440 @ 59.95` — switch for 2× smoothness:\n`DISPLAY=:0 xrandr --output HDMI-1 --mode 2560x1440 --rate 59.95`\nPersist via `~\u002F.config\u002Fautostart\u002F\u003Cname>.desktop`. 4K@60 needs a DP cable.\n\nIf the display is UNUSED (SSH-only host), prefer 1080p to cut GPU heat: set\n`1920x1080@60` in **all three layers** — `~\u002F.xprofile` (session),\n`~\u002F.config\u002Fautostart\u002F*.desktop` (session), and\n`\u002Fetc\u002Flightdm\u002Flightdm.conf.d\u002F*.conf` with\n`display-setup-script=\u002Fusr\u002Fbin\u002Fxrandr --output HDMI-1 --mode 1920x1080 --rate 60`\n(greeter). `xrandr` against the live greeter fails from SSH (root X cookie in\n`\u002Fvar\u002Frun\u002Flightdm\u002Froot\u002F:0`, unreadable to the agent) — user runs the sudo\n`install` for the lightdm conf; it applies at next greeter start.\n\n## 5. Thermal: dried-paste signature + bounded load test\n\nIdle package 63-67 °C with the heatsink sensor (TC0F) at 65-74 °C at load \u003C1 is\nthe dried-paste signature — a healthy chassis reads nearer 50 °C — and the fans\ntypically will NOT be off their floor. `intel_powerclamp` injecting idle on top\nof that means the kernel is throttling before any real work arrives. Confirm it\nwith a bounded load test; never infer it from a single reading.\n\n**Run `scripts\u002Fthermal-load-probe.sh`** (packaged with this skill) rather than\nhand-typing the loop: it samples fans \u002F package \u002F heatsink \u002F load \u002F core freq \u002F\nCPU PSI across baseline → load → recovery and tees a transcript you can commit\nas evidence. Rules that make the run safe and its result mean something:\n\n- **Derive the abort threshold from the hardware first.** Read `temp1_crit`\n  (105 °C on MBP10,1) and abort below it — the script defaults to crit − 6 °C.\n  An unbounded CPU load on a 2012 laptop can reach thermal shutdown and take the\n  host off the fleet mid-test.\n- **The harness refuses a foreground `&`** — start the probe with\n  `terminal(background=true, notify=true)`, then wait for the `thermal-probe end`\n  marker in a second, bounded foreground call and `cat` the artifact. Do not\n  hand-poll the sensors and call the result a curve; samples taken seconds apart\n  prove nothing.\n- **Read the baseline before the peak.** If the \"baseline\" sample is already hot\n  (92 °C with the kernel already injecting idle is a real case), the run measures\n  the thermal CEILING, not a cold-start ramp — say which one it is instead of\n  presenting the peak as a rise from rest.\n- **Killing the workers is part of the procedure** — the recovery curve is the\n  evidence that the cooling loop still modulates, so sample it too.\n- **Fan health is the MOVEMENT, not the number.** Both fans tracking each other\n  and each reaching its own max is a healthy loop; a fan stuck at 0, or one\n  pinned at max while the other sits at idle, is the hardware fault.\n\nMeasured on MBP10,1: 8× `yes` for 120 s pinned fan1 at 5940\u002F5940 and fan2 at\n~5499\u002F5499 within 15 s, package plateaued 87-92 °C, and core frequency held\n~3.4 GHz — the throttle is `intel_powerclamp` idle injection, NOT a clock drop,\nso do not look for falling MHz as proof of throttling. Fans at 100% to hold\n90 °C is also exactly the \"crazy noise\" an operator reports (§5b). Recovery:\nfans 5941 → ~4300 and package 92 → 70 °C in ~45 s, back to fan minimum and\n67 °C in ~7 min. Needing full fan for 90 °C at that load, on top of a hot idle,\nis the re-paste call (pentalobe bottom case, dust fins, fresh paste on CPU+GPU).\n\n**Fan RPM has two possible sources — check both.** `sensors` lists fans only\nwhile applesmc has a hwmon device registered; on kernels where that\nregistration is deprecated it prints temps and NO fan lines. The fans are always\nreadable on the platform device: `cat \u002Fsys\u002Fdevices\u002Fplatform\u002Fapplesmc.768\u002Ffan1_input`\n(plus `fan2_input`, `fan1_min`, `fan1_max` — fan1 2160-5940, fan2 2000-5499 on\nthis host). Never report \"fans healthy\" off a `sensors` run that showed no fan lines.\n**Temps and thresholds follow the same rule — read the nodes, not `sensors`:**\nheatsink \u002F CPU-proximity is `...\u002Ftemp5_input` (TC0F), the package is\n`\u002Fsys\u002Fclass\u002Fhwmon\u002Fhwmon1\u002Ftemp1_input` (coretemp) with `temp1_max` and `temp1_crit`\nbeside it for the limits. `fan*_safe` returns \"Invalid argument\" and is NOT a\nreadable limit; `fan*_output` holds the last manually written value, not the live\nspeed — a probe that reports either invents a number.\n\n## 5b. Strange-noise \u002F loud-fan triage — answer from logs before hardware\n\nWhen the operator says the machine made a strange noise, the answer is almost\nnever an alarm: establish WHICH event the noise belongs to, then read the fans.\n\n1. **Same boot?** `uptime` + `journalctl --list-boots --no-pager`. A boot\n   boundary inside the reported window means the noise was the BOOT — a cold\n   boot drives both fans toward max while journald recovers and the container +\n   cron stack starts (Docker, clickhouse, minio, ollama and the cron-bridge\n   services pegged this host for ~10 minutes after a cold start).\n2. **Read the END of the previous boot:** `journalctl -b -1 -k --no-pager -n 40`.\n   BOUND it — a bare `journalctl -b -1` dump exceeded a 180s timeout; use `-k`,\n   `-n N`, or `--since\u002F--until` windows instead.\n3. **Hang-in-suspend vs clean shutdown** — both look like \"it was off\":\n   - `systemd-logind: Suspend key pressed short` then `PM: suspend entry (deep)`\n     as the FINAL journal line = suspended on the sleep key;\n   - the next boot reporting `system.journal corrupted or uncleanly shut down,\n     renaming and replacing` = the power was CUT, never resumed.\n   A journal that stops at suspend entry with no resume line = hung suspend,\n   then hard power-off. On a fleet host that is a silent outage: state the\n   wall-clock gap and name the crons\u002Fbackups that fell inside it — a standby\n   host that drops out of the fleet unattended is the finding, not the noise.\n4. **Sample the fans twice, a minute apart, with `cat \u002Fproc\u002Floadavg` beside\n   them.** A ramp while load is FLAT is the fan fighting a bad thermal path\n   (dried paste, §5), not load. TC0F (`...\u002Ftemp5_input`) is the CPU\u002FGPU heatsink\n   proximity sensor; ~74 °C at load ~1.7 is the dried-paste signature.\n5. **Rule out audio before blaming hardware** —\n   `cat \u002Fproc\u002Fasound\u002Fcard0\u002Fpcm0p\u002Fsub0\u002Fstatus` (`closed` = nothing playing),\n   `pgrep -a orca`, `pgrep -a speech-dispatcher` (a stray screen-reader toggle\n   is the \"machine started talking\" case, §7). Closed ALSA + empty pgrep output\n   removes software audio as the source and lets you say so.\n6. **Report the mechanism, not just a number:** fans at N of max RPM with load\n   flat and heatsink ~T °C, plus the boot\u002Fsuspend event that started it. Offer\n   the next step (re-paste, or disabling suspend so the host cannot drop out)\n   instead of stopping at the reading.\n\n## 6. nvidia proprietary driver — the 470\u002F535\u002F580 shim chain (Ubuntu 24.04)\n\nKepler (GK107) needs the **470** branch; 535\u002F580 modules do not initialize it.\nUbuntu 24.04 gotcha: `nvidia-driver-470` metapackage `Depends: nvidia-driver-535`\n→ `Depends: nvidia-driver-580` — it's a **userspace shim**, not the Kepler\nmodule. The real module ships only in **`nvidia-dkms-470`** (which depends on\n`nvidia-dkms-535` as a base; both build, 470 wins by install order). Driver-version\nlibs co-install; an alternatives mechanism selects the active one.\n\n- Before ANY reboot with an nvidia stack installed: **check `dkms status`** —\n  expect `nvidia\u002F470.256.02 ... installed`. A 580 module + the nouveau blacklist\n  already in initramfs = black-screen risk on next boot.\n- Defuse a wrong 580 install: purge 580\u002F535\u002F470 metapackages, `sudo dkms remove\n  nvidia\u002F580.173.02 --all`, `update-initramfs -u`, then install\n  `nvidia-driver-470 nvidia-dkms-470` + select 470 via alternatives — only while\n  physically at the machine (display recovery may be needed).\n- Safe fallback that already covers the reboot hang: stay on nouveau + `reboot=pci`.\n\n## 7. Locked-screen desktop automation (computer-use interplay)\n\nWhen the desktop session is locked (screensaver): `computer_use` captures still\nrender (compositor) but injected input goes to the lock screen's grab — clicks\n\"succeed\" with no effect. Detect via `cinnamon-screensaver-command -t` or a\nfull-screen capture showing the lock UI. Never bypass the lock; instead:\n- Use the app's own side-channel — e.g. a login QR the OWNER scans with their\n  phone: capture the app window, locate the QR by white-pixel density scan,\n  crop, upscale 3×, deliver via `MEDIA:`. (QR codes expire ~60s; re-capture.)\n- Or ask the user to unlock.\n- A click aimed at the app while locked can land on the lock screen's\n  accessibility icon and toggle **Orca screen reader** ON — if the machine\n  \"starts talking\": kill `orca` + `speech-dispatcher` and clear\n  `org.gnome.desktop.a11y.applications screen-reader-enabled` + the Cinnamon key.\n\n## 9. Display blanking (login screen): gmux backlight + setpci bridge fix\n\nMacBookPro10,1: the internal LCD backlight is routed through Apple's gmux\ncontroller. On kernel 6.x the `apple_gmux` driver exposes a sysfs interface at\n`\u002Fsys\u002Fclass\u002Fbacklight\u002Fgmux_backlight\u002F` but the hardware does NOT respond to\nit — writes to `bl_power` and `brightness` return 0\u002Fsucceed silently but the\nbacklight stays on 100%. `xset dpms force off` also succeeds but has no effect\non the internal display (external HDMI monitors are unaffected).\n\n### Root cause\n\nThe gmux registers are IO-port-mapped (0x700-0x7fe) behind a PCI bridge that\nisn't configured to decode them. Writing `BRIDGE_CONTROL` register clears the\nbridge's I\u002FO decode restriction:\n\n```bash\nsudo setpci -H1 -s 00:01.00 BRIDGE_CONTROL=0\n```\n\nAfter this one command, the gmux responds to both sysfs and X DPMS commands.\n\n### Verify\n\n```bash\n# After fix: sysfs actually turns backlight off\u002Fon\necho 4 | sudo tee \u002Fsys\u002Fclass\u002Fbacklight\u002Fgmux_backlight\u002Fbl_power   # off\necho 0 | sudo tee \u002Fsys\u002Fclass\u002Fbacklight\u002Fgmux_backlight\u002Fbl_power   # on\n```\n\n**Confirm the off state with `actual_brightness`, not `bl_power` or\n`brightness`** — `brightness` keeps the user's set value (e.g. 860\u002F1023) after\npower-off and `bl_power=4` alone just echoes the write back;\n`cat ...\u002Factual_brightness` dropping to 0 is the only sysfs proof the hardware\naccepted it (and per the NOT-do list, pair it with the user's visual\nconfirmation).\n\n**No wattage instrument on this machine** — AC-powered, no `power_now` in\nsysfs, battery current reads 0A. Judge power changes by package temp + fan\nRPM deltas, taken at matched load (`uptime` before\u002Fafter), and expect 10-15\nmin of settling before a before\u002Fafter comparison means anything; a single\ntransient spike (e.g. +10°C right after a change with flat CPU load) is not\nevidence the change caused it.\n\n**Unused display still costs power while 'black'** — an enabled output with\nbacklight at 0 still keeps the GPU in D0\u002Factive (scanout) and out of low-power\nstates; the greeter (slick-greeter + Xorg) rendering it accounts for ~1% CPU.\nFull savings need the output off or the greeter stopped — weigh that against\nlosing the local login path (SSH stays as recovery; a plugged-in HDMI monitor\nworks regardless of eDP-1 state because HDMI is the NVIDIA GPU's output and\neDP-1 the Intel's).\n\n### Making it permanent at the login screen\n\nAdd to the LightDM `greeter-setup-script` (runs as root before greeter starts):\n\n```bash\n# \u002Fusr\u002Flocal\u002Fbin\u002Flightdm-screen-blank (called via greeter-setup-script in lightdm.conf.d)\nsetpci -H1 -s 00:01.00 BRIDGE_CONTROL=0 >\u002Fdev\u002Fnull 2>&1\nsleep 2\nxset s blank\nxset s 30\nxset dpms 30 30 30\nexit 0\n```\n\nThen reference it in `\u002Fetc\u002Flightdm\u002Flightdm.conf.d\u002F70-screen-off.conf`:\n```\n[Seat:*]\ngreeter-setup-script=\u002Fusr\u002Flocal\u002Fbin\u002Flightdm-screen-blank\n```\n\n**Critical:** suppress ALL output from `setpci` with `>\u002Fdev\u002Fnull 2>&1` — any\nstdout\u002Fstderr from the greeter-setup-script causes the greeter to fail.\nAlso avoid the `-v` (verbose) flag for the same reason.\n\n### Making it permanent system-wide\n\nAdd to `\u002Fetc\u002Frc.local` or a oneshot systemd service:\n\n```\nsetpci -H1 -s 00:01.00 BRIDGE_CONTROL=0\n```\n\n### Revert\n\nReboot clears the bridge register — the setting is runtime only. No persistent\nside effects.\n\n### What NOT to do\n\n- **Do not** install polling loops (`xprintidle`), background daemons, or\n  `brightnessctl`\u002F`vbetool` to work around this. The bridge fix is the correct\n  hardware-level solution.\n- **Do not** add kernel boot parameters (`acpi_backlight=native\u002Fvendor`,\n  `apple_gmux.backlight=0`, `modprobe.blacklist=apple_gmux`) — these make the\n  backlight interface disappear entirely or break GPU switching without fixing\n  anything.\n- **Do not** write scripts that `sleep 30; echo 4 > bl_power` — the backlight\n  won't respond without the bridge fix regardless of approach.\n- **Do not** claim the fix works until the user has visually confirmed the\n  backlight turns off. The driver reports success silently even when the\n  hardware ignores the command.\n- **Do not** use `setpci -v` (verbose flag) in a `greeter-setup-script` --\n  any output from the script causes the greeter to fail. Always redirect\n  all output: `>\u002Fdev\u002Fnull 2>&1`.\n- **Do not** use `disown` to background a process from a `greeter-setup-script` --\n  `greeter-setup-script` runs under `\u002Fbin\u002Fsh` (dash on Debian\u002FUbuntu), and\n  `disown` is a bash builtin. Use `setsid` instead.\n\n### References\n\n- `references\u002Fgmux-backlight-macbookpro10-1.md` — full session transcript,\n  error messages, and the debugging path that led to this fix.\n- Arch Wiki: Mac\u002FTroubleshooting, Backlight\n- Launchpad bug #1243897\n\n---\n\n## 8. Trackpad: bcm5974 \"urb failed: -19\" drop-outs\n\nSignature: `dmesg` shows `bcm5974 ... trackpad urb failed: -19` + `could not\nread from device`, trackpad re-enumerates (`input50\u002Fevent11`), cursor freezes\nbriefly. Root cause: **USB autosuspend on the PARENT HUBS**, not the trackpad —\nthe device itself is already `power\u002Fcontrol=on`; the Intel `8087:0024` and\nMicrochip `0424:2512` hubs on `auto` suspend\u002Fresume and the driver's wake\nURB fails (-19).\n\nFix (persistent, needs sudo): a udev rule pinning the trackpad AND both parent\nhubs to `control=on`, keyed on **vendor:product**, never the sysfs path. After\ninstalling rules for a NEW device class, verify the rule actually fires with\n`udevadm test` (or `udevadm info -q property`) before claiming the fix — a\nrule that doesn't match silently leaves autosuspend on and the symptom returns.\n\n```\n# \u002Fetc\u002Fudev\u002Frules.d\u002F99-trackpad-no-autosuspend.rules\nACTION==\"add\", SUBSYSTEM==\"usb\", ATTR{idVendor}==\"05ac\", ATTR{idProduct}==\"0262\", ATTR{power\u002Fcontrol}=\"on\"\nACTION==\"add\", SUBSYSTEM==\"usb\", ATTR{idVendor}==\"0424\", ATTR{idProduct}==\"2512\", ATTR{power\u002Fcontrol}=\"on\"\nACTION==\"add\", SUBSYSTEM==\"usb\", ATTR{idVendor}==\"8087\", ATTR{idProduct}==\"0024\", ATTR{power\u002Fcontrol}=\"on\"\n```\n\n- Verify with `udevadm test \u002Fsys\u002Fbus\u002Fusb\u002Fdevices\u002F\u003Cpath>` — it prints the\n  applied rules; a 99- rule OVERRIDES the distro's `60-autosuspend.rules`.\n- **`udevadm trigger` fires `change` events — `ACTION==\"add\"` rules do NOT\n  re-run.** Apply live via `sudo udevadm trigger --action=add --subsystem-match=usb`,\n  or just reboot (rules apply at enumeration).\n- **Vendor:product matching survives bus renumbering.** After reboot the\n  trackpad moved `4-1.8.2` → `2-1.8.2` (bus number changed); the rule still\n  matched. Never hardcode the `4-1.8.2`-style path in the rule.\n- Boot-time `-19`\u002F`mode switch failed` bursts at enumeration are benign probe\n  noise (device registers right after); the harmful pattern is REPEATED\n  drop-outs + re-enumeration cycles during suspend\u002Fresume.\n- If errors recur even with hubs pinned: worn trackpad ribbon cable — hardware\n  reseat\u002Freplace, nothing software fixes.\n\n## Verification\n\nAfter any change: `xrandr --current` (mode\u002Frate), `dkms status` (module version),\n`sensors | grep Package` (idle temp — but read fan RPM from\n`\u002Fsys\u002Fdevices\u002Fplatform\u002Fapplesmc.768\u002Ffan*_input`, because `sensors` may list no\nfan lines at all, §5b), a clean reboot (with `reboot=pci` present in\n`\u002Fetc\u002Fdefault\u002Fgrub`).\n",{"name":5,"author":24,"license":15,"version":25,"category":26,"metadata":27,"platforms":39,"description":7},"Esther","1.0.0","devops",{"hermes":28},{"tags":29,"related_skills":37},[30,31,32,33,34,35,36],"macbook","linux","gpu","thermal","nvidia","reboot","hardware",[38],"linux-performance-diagnostics",[31],"main","96b22636b11836eba8d16dbc885fd0b87dc71b03","skills\u002Fdevops\u002Fmacbook-linux-maintenance",1,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet","steadfaste.com","https:\u002F\u002Fgithub.com\u002Flukemcqueen","AI Architect | Building Hermes Cortex: governed multi-agent AI for autonomous software engineering | Enterprise Tech Consultant","2026-11-14 22:33:34",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add lukemcqueen\u002Fsteadfaste-fleet --skill macbook-linux-maintenance",{"tool":55,"command":56},"bunx","bunx skills add lukemcqueen\u002Fsteadfaste-fleet --skill macbook-linux-maintenance",{"tool":58,"command":59},"pnpm","pnpm dlx skills add lukemcqueen\u002Fsteadfaste-fleet --skill macbook-linux-maintenance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fmacbook-linux-maintenance\u002FSKILL.md",true,[63,69],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fgmux-backlight-macbookpro10-1.md","REFERENCE","参考文档",2758,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fmacbook-linux-maintenance\u002Freferences\u002Fgmux-backlight-macbookpro10-1.md",{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"scripts\u002Fthermal-load-probe.sh","SCRIPT","脚本",3079,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fmacbook-linux-maintenance\u002Fscripts\u002Fthermal-load-probe.sh",[76,83,90,97,104,111],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7DXXYJCXFJ3TGB84ZQ8KFE6","governance-regression-triage","Triage a host's governance issues: what changed.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fgovernance-regression-triage\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7DXXSAP1G8FDRJAMXQGBBMK","enforcement-immutability","Use when enforcement files lose their immutable flag.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fenforcement-immutability\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M78SSDQVRYX64Y16X32TC0NS","steadfaste-fleet-repo-deploy","Use when committing to the steadfaste-fleet repo.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fsteadfaste-fleet-repo-deploy\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M78SS928F3R2RJAYVW4E30CE","steadfaste-fleet-maintenance","Maintain an installed Steadfaste Fleet instance — update both the upstream Hermes Agent and the fleet repo layer, merge diverged histories, sync skills safely, and troubleshoot common issues. Covers the dual-update workflow (hermes update + fleet-update.sh), encrypted brain data backup, mycortex import, and recovery techniques.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fsteadfaste-fleet-maintenance\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M78SP1CHW0T0BWE5ZT6JBPX8","fleet-preflight","DEPRECATED alias — merged into survey-before-action (2026-08-20). Load survey-before-action instead; its \"Repo-Specific Pre-Flight\" section covers git search, Hermes boundary, and deployment verification.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Ffleet-preflight\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M78SNFME3PDYCTFD2W0YJQRF","fleet-deployment-sync","Use when pulling latest or running fleet update.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Ffleet-deployment-sync\u002FSKILL.md",[],[]]