logoalt Hacker News

Reading the undocumented MEMS accelerometer on Apple Silicon MacBooks via iokit

129 pointsby todsacerdotitoday at 5:06 AM55 commentsview on HN

Comments

seductivebarrytoday at 7:38 AM

Way back in ~2008 I wrote the Newton Virus https://www.everita.com/how-the-newton-virus-was-made + https://www.youtube.com/watch?v=eh75j6OHhRc (sorry for the broken images, need to update that site). Between that and using a hidden API to take screenshots of each individual element on your desktop (from icons, to taskbar, to windows) the effect was pretty believable. One of the most fun (and frustrating) projects I ever worked on.

show 4 replies
krackerstoday at 7:20 AM

>have a hard to find mems accelerometer managed by the sensor processing unit

How did OP even know that an accelerometer exists in the first place?

show 3 replies
userbinatortoday at 7:14 AM

undocumented

The one thought that comes to mind is this: "Your warranty claim was denied because we determined that the laptop was subjected to a sudden shock."

show 3 replies
renecitotoday at 6:43 PM

"hidden", checks API: https://developer.apple.com/documentation/coremotion/cmdevic...

and there is Mac Catalyst (iOS on Mac) and Mac support.

what am I missing ? that this uses a raw stream ?

1e1atoday at 10:50 AM

On my M4 14-inch MacBook Pro, it looks like there are two accelerometers: One with {"DeviceUsagePage"=0xff00,"DeviceUsage"=3}, and one with {"DeviceUsagePage"=0xff00,"DeviceUsage"=9} - They both identify as Bosch BMI286

show 1 reply
JSR_FDEDtoday at 8:27 AM

If it can read your heartbeat from your wrists resting next to the trackpad, maybe it can use that as a user satisfaction signal for gratuitous UI changes.

show 1 reply
47282847today at 12:49 PM

I would like an app to lock my screen on sudden movement; optionally disable TouchID for next login.

show 1 reply
1e1atoday at 10:29 AM

I've been wondering about this for a while, glad someone's finally managed to access it.

ggmtoday at 8:14 AM

Could this be used as "shake your mac for highly random seed" bits?

show 3 replies
thenthenthentoday at 1:31 PM

This is so cool thank you!

LoganDarktoday at 9:53 AM

I wonder if this sensor is used for Vision Pro display mirroring.

show 1 reply
baybal2today at 6:40 AM

[dead]