> Jacket zipper
> C Major scale
> Slide whistle
> Washboard
> Airlock
> Vinyl record scratch
The only thing "Apple" here is that it's not exposed as a public API.
No, it's a different method.
Edit: catalog confirms.
I thought it was centidegrees but it turns out the sensor was reporting the raw degrees.
https://youtube.com/shorts/sgqTEjN5_vQ
Edit: not forgetting the classic Miles Davis door: https://youtu.be/wwOipTXvNNo
("It’s such a fine line between stupid and clever.")
This is a semantic punt from nicer to accessible.
No, it's really not. You know, evidenced by the fact you have to manually post every fking reply link, individually, for the non-siccophants among us to be able to read it?
You simply see what the author posted and people's reactions.
It also doesn't load 400MB of JavaScript or whatever.
Personally I am not a fan of the Mastodon software or side of fedi, but I have had good times on the Pleroma/Akkoma side, and it all works together.
A social network with just the top 1% of the geeks would be absolutely amazing.
It's ridiculous this site lets people post shit that half of us can't see.
It's really not a useful platform for publicly sharing information anymore. Drives me nuts that government agencies use it for announcements like "Here's an amber alert with a twitter link, but you can't have any of the followup information because that's only for people who are logged in."
I wonder if Apple uses this internally at Apple stores to set the screen angle at 76 degrees.
Author can submit this to the AppStore.
Is it a backup if the magnet for closed lid detection fails? Is it some kind of input for the brightness sensor or True Tone? Is it for warranty investigation, that if the hinge breaks they can figure out if it was physically pushed too far, or was repeatedly slammed open and shut like a toy?
The sensor used for detecting if the lid is closed is an “angle” sensor, although really it’s an Hall effect sensor and a magnet in the hinge. If you have a Hall effect sensor, getting angle data from it is pretty much free, because the Hall effect produces a continuously varying signal, you need thresholding logic to turn it into a binary output.
Given Hall effect ICs are so cheap and plentiful there no reason to use anything else. Also given they mass-produced ICs it’s probably cheaper to buy a fully featured Hall Effect IC, because the manufacturing cost between a basic IC and an advanced IC is almost certainly zero these days.
In short, modern IC manufacturing has just made magnetic angle sensors as cheap, if not cheaper, than dump non-angle sensing Hall sensors. After all you can always use an angle sensing Hall sensor as binary switch if you want, but the reverse isn’t true, so if the ICs basically cost the same, you can expect the less capable ICs to be completely outcompeted by the more capable ICs.
If you simply move the sensor (that is already a requirement) closer to the hinge, you can infer angle based on the Hall sensor for free. You can even get special sensors that specifically measure the magnetic field orientation for the same price as the simple type.
Yes, it's completely free with just a very minimal amount of thought put into the design.
Apple: How did the hinge break?
Customer: I don’t know, I just opened it one day and it came off.
not only for mac users.
Why does it say it's by Lisa?
I signed up for my developer account when I was a kid, used my mom's name, and now it's stuck that way forever and I can't change it. That's life.
I wouldnt mind but I was 95% of the time clamshell, and still the keyboard made from butterflies wings lasted next to no time, and the battery put on too much weight after only 30 something cycles. After all these years I never understand how they produce such lemon models some years, just trying to save a few cents here and there. The one before was thermal paste nvidia meltdown.
https://source.android.com/docs/core/interaction/sensors/sen...
I’m curious what you do with this information. Can you share?
ramon156•2h ago
egypturnash•2h ago
BuildTheRobots•35m ago
There's decent reasons to over-engineer some of these sensors so they can't be unduly tricked by external influences.
mouse_•2h ago
I've never once had a Dell/HP/Acer/Asus with a reliable lid close sensor. You can't trust those things.
justin66•2h ago
trenchpilgrim•2h ago
cubefox•2h ago
Presumably he meant the laptop didn't go into standby when closed or woke up from standby while still closed.
zargon•2h ago
craftkiller•2h ago
Just want to warn other readers: Not all framework models have S3 sleep. I've got the 7040 AMD framework laptop and it only does s2idle.
3eb7988a1663•9m ago
Halting power until an external physical event seems like a simple enough idea. I have never wanted to close my laptop and let it keep number crunching.
numpad0•3m ago
geoffeg•2h ago
gruez•2h ago
???
I don't think I've seen a laptop that doesn't have closed lid detection. At the very least it's common enough that windows has a setting specifically for it: https://www.tenforums.com/tutorials/69762-how-change-default...
Analemma_•2h ago
It's maddening that only Apple gets this right 100% of the time, and it's among the things keeping me on Apple's platform for the moment. I can't fathom why this isn't a bigger priority for everyone else: much like "trackpads that don't suck", it's a huge quality-of-life thing which keeps tons of people on Macs because they want it to Just Work without ever thinking about it.
modeless•2h ago
gruez•2h ago
That's due to "connected standby"[1], which is to have laptops behave more like a phone when in sleep. This is in contrast to S3 sleep, which basically halts all activity. Sounds all good in theory, but as soon as you allow code to be run while in sleep, it's easy for some runaway app (OS or third party) to eat through your battery even while your laptop is "sleeping". Worse is that there's no way to force sleep, so your only choice is hibernate, which is even worse than S3 sleep before.
[1] https://learn.microsoft.com/en-us/windows-hardware/design/de...
cosmic_cheese•1h ago
There’s also wake on LAN which if enabled can rouse the machine from sleep after it’s successfully entered a sleep state.
dontlaugh•26m ago
ufmace•17m ago
Source: My macbook has drained its battery flat while closed in my bag dozens of times. Then it just stopped doing that on an OS update. I still have no idea why.
bakje•2h ago
bigyabai•2h ago
monsieurbanana•1h ago
cosmic_cheese•1h ago
com2kid•1h ago
So anyway that killed one of my laptop's batteries. So much for supporting Internet freedoms...
Windows comes with a utility that'll tell you what process denied a sleep request, super useful.
I've actually ran into MacBooks not sleeping a few times, but it is much rarer.
It is unfortunate because back on the mid 2000s windows had the best functioning sleep code, but then they tried to catch up with iPad's # instant on and chasing perfection led to the current mess.
toxik•1h ago
mort96•1h ago
CamouflagedKiwi•34m ago
Much more likely is that the OS was prevented from going to sleep by some badly behaved process, or got woken up by another thing like allowing USB to wake it from sleep, where even touching the mouse can wake it - with some laptop equivalent like a ghost touchpad touch or whatever.
leephillips•2h ago