u/PsychologyPowerful66

I found a macOS sensor almost no app uses

I found a macOS sensor almost no app uses

Your MacBook has a lid angle sensor. It's been there for years, quietly tracking how far you open the screen so macOS can sleep when you close it. Apple uses it. Almost nobody else does.

I got curious about what else you could do with it.

Turns out, quite a lot. I built a small utility called Lid that turns lid position into an automation trigger. The use case that sold me: working in public and wanting to hide my screen without the full laptop-slam.

What you can do with it:

  • Privacy blur at ~60°: screen frosts over when someone walks by, no shortcut needed
  • Auto-lock at ~20°: walk away, lower the lid slightly, Mac secures itself
  • Smart scheduling: different rules for work hours vs. evenings
  • App-aware overrides: keep screen visible during Zoom even if you adjust the lid
  • Media pause: close halfway, podcast stops. Open back up, resumes where you left off

It's all IOKit. No external hardware, no camera tricks, no network calls beyond a one-time license check. The sensor data never leaves your machine so zero analytics, zero telemetry.

The catch I ran into: The raw angle values aren't documented well and they behave slightly differently across MacBook generations. Retina vs. Air vs. Pro M-series each has its own noise pattern. I ended up smoothing the signal with a deadband and some hysteresis, but I'm still finding edge cases.

What I'm looking for feedback on:

  • Would you ever use something like this?
  • Does anyone have any cool use cases for something like this?

Side note: Has anyone here stumbled on more undocumented sensor/API on Apple hardware?

app @ maclid.app

https://preview.redd.it/01nv10gh9ozg1.png?width=1186&format=png&auto=webp&s=b3b552fc684cca1a4572e5d8d3b6c3db145215c9

Problem:
Someone walks into the room and you don't want them to see what's on your screen. Or you're stepping away from your desk but want downloads to keep running. Or you just want to give someone your full attention. With Lid, you just lower your MacBook screen and it instantly triggers whatever actions you've set up. Open it back up and everything restores.

How it works: Your MacBook has a built-in lid angle sensor. Lid reads it directly through macOS (no camera, no external hardware) and lets you set rules at specific angles. For example:

  • At 60° → blur the screen for instant privacy
  • At 40° → dim the display
  • At 20° → lock the screen (but keep the Mac awake for downloads)

You can also pause media, and set app-aware rules (e.g. don't blur during Zoom calls) or schedule-based rules (privacy mode only during work hours).

Privacy: No analytics, no telemetry, no camera access. Everything runs locally. The only network call is a one-time license activation.

Pricing: Free tier gives you 1 custom rule. $4.99 one-time unlocks unlimited rules, app-context rules, and scheduling. No subscription.

Download: maclid.app

Compatible Macs: All 14" and 16" Apple Silicon MacBook Pro, and MacBook Air M2 (2022) or later (requires the lid angle sensor + macOS Sonoma 14.0+)

Happy to answer any questions or hear feature ideas!

reddit.com
u/PsychologyPowerful66 — 15 days ago