Is there any gyroscope, accelerometer & magnetometer sensor built in for modern Macs?

We know all modern smartphones contain these sensors. I wonder if modern Macs contains any such sensors built-in into them or not.

1 Answer 1


iMacs don't have any those.

MacBooks have accelerometer called SMS - Sudden Motion Sensor to protect hard drives when MacBook gets dropped. https://en.wikipedia.org/wiki/Sudden_Motion_Sensor

iPhones/iPads have all of those.

Custom sensors (old information): https://logi.wiki/index.php/SMC_Sensor_Codes

  • Is there any public API you know of for getting data from SMS? Commented Dec 30, 2021 at 5:06
  • 1
    It's possible to get information: matth.github.io/UnimotionPlugin However, i'm not sure this is considered public, you need to try it in sandboxed environment.
    – Gintaras
    Commented Dec 30, 2021 at 5:08
  • Do modern MacBooks still have the SMS sensor, considering they don't have mechanical harddrives anymore?
    – jpa
    Commented Dec 30, 2021 at 13:33
  • Good question. They have it, but don't use it. At least for Intel-based ones. Can't find any information about Apple's silicon-based (since late 2020) support.apple.com/en-gb/HT201666
    – Gintaras
    Commented Dec 31, 2021 at 5:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .