Skip to content

Comment on Unlock your Mac without typing a thing

Comments

Does anyone have any idea how the phone detects knocks and differentiates it from, say, rolling around in your backpack? I know the LG G2 also has a "knock detection", e.g. the phone turns on when you knock on it twice. I want this feature in one of my apps so I'm just curious about how this is done.

I'd assume the accelerometer is able to differentiate between the sharp staccato of a rapping of the knuckles vs. the steady circular motion of rolling.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.