Get all your news in one place.
100’s of premium titles.
One app.
Start reading
Tom’s Hardware
Tom’s Hardware
Technology
Mark Tyson

Apple MacBooks have a sensor that measures the angle of the screen —Engineer taps into hidden ‘LidAngleSensor’ API to create a creaky door simulator

LidAngleSensor.app in action.

An engineer has tapped into Apple’s LidAngleSensor MacBook API to create an app which displays the angle read from the sensor on the screen. Though a cool and worthy tool in its own right, Sam Gold’s app is elevated to a higher plane as it also includes an audio feedback option to “play a wooden door creaking sound if you adjust it reeaaaaaal slowly.” A video demonstration is embedded below,

Product designer and engineer, Gold, explained to their X followers that the LidAngleSensor API isn’t exposed to the public, but he still managed to figure out how to read it. A more technical explanation of the API, what devices use it, as well as downloads of the code and a ready-compiled app can be found on Github.

Since the LidAngleSensor.app was announced at the weekend, Gold has fielded many queries and requests via social media. A pretty common question was why he had created this app. The answer seems to be that Gold currently has a lot of free time, but is eager to start something more meaningful and full-time “in NYC or remote.” So, perhaps this quirky project could precipitate a great job for this imaginative fellow.

Gold also tried to address various MacBook model incompatibilities, but he doesn’t have access to every modern Apple laptop. The creaky door sound source was revealed in a FAQ to be poached from LEGO Batman 3: Beyond Gotham.

Theremin mode delivered

There have been lots of fun suggestions for adapting the LidAngleSensor.app for new sounds and purposes. These range from the practical, like a protractor mode for a wood shop, to the hilarious, like a Pac-Man controller “where you have to open and close the laptop to move,” suggested by Gold.

However, Gold was emboldened and inspired enough by his own brainwave idea of creating a theremin mode to actually implement this elegant and ghostly electronic instrument in the app.

We are pretty sure there’s more to come from this app and the unearthed API access. Someone with more patience “could implement this as a MIDI instrument, or an accordion,” suggested Gold. “But that person is not me.”

Follow Tom's Hardware on Google News, or add us as a preferred source, to get our up-to-date news, analysis, and reviews in your feeds. Make sure to click the Follow button!

Sign up to read this article
Read news from 100’s of titles, curated specifically for you.
Already a member? Sign in here
Related Stories
Top stories on inkl right now
One subscription that gives you access to news from hundreds of sites
Already a member? Sign in here
Our Picks
Fourteen days free
Download the app
One app. One membership.
100+ trusted global sources.