Remix.run Logo
lupusreal 6 days ago

You don't even need that, just ask the user to close the lid and see what the sensor settles on.

eviks 6 days ago | parent [-]

How would you know the user is ready to perform the command?

cortesoft 6 days ago | parent | next [-]

It wouldn’t matter… just tell the user to close and open the lid before pressing enter again, and get the maximum (or minimum) value as the lid being close all the way.

begemotz 6 days ago | parent | prev | next [-]

like the answer to any other similar question, with a prompt?

eviks 6 days ago | parent [-]

Prompt for what? A Key press?

NuclearPM 4 days ago | parent [-]

You really can’t solve this on your own?

FinnKuhn 6 days ago | parent | prev [-]

You could use the camera to estimate if the laptop is closed.

eviks 6 days ago | parent [-]

Exactly my thought, but this might not be precise enough in low light conditions? So maybe best used as a fail safe (if camera is lit don't calibrate even if the user pressed confirmed)