How do you get the angle of the lid from the CLI?

by Blam   Last Updated September 02, 2019 15:12 PM

I know that you get whether the lid is open or closed from: ioreg -r -k AppleClamshellState -d 4 | grep AppleClamshellState.

What I want to know is if the lid is open, what is its angle relative to the plane it is sitting on.

Tags : command-line


Answers 1


There is no easy way to do this from within the computer (you could always measure it of course). The hardware on laptops only needs to know whether the lid is closed or not, so a simple on/off switch is enough and built-in.

nohillside
nohillside
September 02, 2019 14:27 PM

Related Questions


How to move files to trash from command line?

Updated April 07, 2015 18:05 PM

Can I use GNU ps on OS X?

Updated May 20, 2015 03:05 AM

How do I install handbrake cli?

Updated May 21, 2015 23:05 PM


Install shuf on OS X?

Updated August 07, 2015 14:05 PM