3

I am trying to figure out what the position of the lid is. Whether it is open or closed. Is there a terminal command or a cocoa code snippet for this?

I've already tried pmset -g but i can only get the sleep modes and the lidwake status.

5

I don't have a macbook by my side, is maybe

ioreg -r -k AppleClamshellState -d 4 | grep AppleClamshellState  | head -1

still working ?

  • You are my hero, works perfectly fine. Thank you very much :) – wasserpanther May 28 '15 at 8:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .