drivers/macintosh/ams

Apple Sudden Motion Sensor for PowerPC PowerBooks and iBooks

The accelerometer Apple built into its PowerPC PowerBook and iBook laptops in the mid-2000s, used to detect sudden drops so the hard disk could park its heads before impact. Both the original variant and an I2C version found in early 2005 models are supported, and the hardware disappeared when Apple ended the PowerBook and iBook lines in May 2006.

keep-annotate conf=0.84 last_sold=2006 deploy=low replacement=none subsystem=macintosh category=sensor-iio
84%

recommendation

Worth keeping but documenting as legacy hardware: the affected laptops have not been sold since 2006 and no replacement driver exists, but the code is still receiving small maintenance fixes from PowerPC kernel developers as recently as 2023 and 2024, and a niche population of surviving PowerBooks and iBooks still relies on it. There is no upstream effort to remove it, so the sensible path is to leave it in place while flagging that it serves only obsolete Apple PowerPC laptops.

repository signals

6 files
930 source lines
11 commits, 5y
+16 / −19 lines added / removed, 5y
8 authors, 5y
monthly commits · 2021-04-21 → 2026-04-21 · 11 total · active in 10/61 months
2021 2022 2023 2024 2025 2026 2021-04: 0 commits · +0 −0 2021-05: 0 commits · +0 −0 2021-06: 0 commits · +0 −0 2021-07: 0 commits · +0 −0 2021-08: 0 commits · +0 −0 2021-09: 0 commits · +0 −0 2021-10: 1 commit · +1 −1 2021-11: 0 commits · +0 −0 2021-12: 0 commits · +0 −0 2022-01: 1 commit · +1 −5 2022-02: 0 commits · +0 −0 2022-03: 0 commits · +0 −0 2022-04: 0 commits · +0 −0 2022-05: 0 commits · +0 −0 2022-06: 0 commits · +0 −0 2022-07: 1 commit · +5 −0 2022-08: 1 commit · +1 −3 2022-09: 1 commit · +1 −1 2022-10: 0 commits · +0 −0 2022-11: 1 commit · +3 −5 2022-12: 0 commits · +0 −0 2023-01: 0 commits · +0 −0 2023-02: 0 commits · +0 −0 2023-03: 0 commits · +0 −0 2023-04: 0 commits · +0 −0 2023-05: 1 commit · +1 −1 2023-06: 0 commits · +0 −0 2023-07: 1 commit · +0 −1 2023-08: 2 commits · +2 −1 2023-09: 0 commits · +0 −0 2023-10: 0 commits · +0 −0 2023-11: 0 commits · +0 −0 2023-12: 0 commits · +0 −0 2024-01: 0 commits · +0 −0 2024-02: 0 commits · +0 −0 2024-03: 0 commits · +0 −0 2024-04: 0 commits · +0 −0 2024-05: 0 commits · +0 −0 2024-06: 1 commit · +1 −1 2024-07: 0 commits · +0 −0 2024-08: 0 commits · +0 −0 2024-09: 0 commits · +0 −0 2024-10: 0 commits · +0 −0 2024-11: 0 commits · +0 −0 2024-12: 0 commits · +0 −0 2025-01: 0 commits · +0 −0 2025-02: 0 commits · +0 −0 2025-03: 0 commits · +0 −0 2025-04: 0 commits · +0 −0 2025-05: 0 commits · +0 −0 2025-06: 0 commits · +0 −0 2025-07: 0 commits · +0 −0 2025-08: 0 commits · +0 −0 2025-09: 0 commits · +0 −0 2025-10: 0 commits · +0 −0 2025-11: 0 commits · +0 −0 2025-12: 0 commits · +0 −0 2026-01: 0 commits · +0 −0 2026-02: 0 commits · +0 −0 2026-03: 0 commits · +0 −0 2026-04: 0 commits · +0 −0

sources

  1. lore.kernel.org

    ams-core.c still received upstream maintenance in 2024 ('macintosh/ams: Fix unused variable warning').

  2. lore.kernel.org

    ams-core.c also saw upstream cleanup in 2023 ('macintosh/ams: mark ams_init() static'), indicating the driver is not abandoned.

  3. cateee.net

    LKDDb describes CONFIG_SENSORS_AMS as the Apple Motion Sensor driver for PowerBooks and shows it remains present in current kernel series.

  4. cateee.net

    LKDDb states the I2C variant is found in early 2005 PowerBooks and iBooks, tying the hardware to legacy PowerPC Apple laptops.

  5. en.wikipedia.org

    PowerBook was discontinued on May 16, 2006.

  6. en.wikipedia.org

    iBook was discontinued on May 16, 2006.

codex reasoning notes (technical)

Read local source with exec_command: the driver is explicitly 'Apple Motion Sensor', probes PowerPC Mac Open Firmware nodes ('accelerometer'/'sms'), and is constrained to legacy Apple laptop hardware. Lore evidence came from lore_file_timeline on drivers/macintosh/ams/ams-core.c; it shows small maintenance fixes in 2021/2023/2024 and no evident removal series, so 'remove' is not justified. Deployment is therefore legacy-but-nonzero: surviving PowerBook/iBook systems still exist, but new hardware stopped in 2006 and nothing suggests new 2025 shipments. Web URLs were obtained via web search_query; LKDDb supports hardware scope/current kernel presence, while Wikipedia pages support the 2006 end-of-sale date. No natural replacement driver is visible; the use case disappeared with the platform, so the best fit is keep the driver but annotate it as legacy/obsolete hardware.