lid open and close notification

2008-12-04 Thread sheen mac
Hi All, In my app needs lid open and close notification.I used ioreg shell call for that (ioreg -n IOPMrootDomain | grep AppleClamshellState | sed 's/^.*=//' ).But when lid close and open it return No. Always the clamshellstate is true.Insomania.kext was loaded before close the lid. Any other

Re: lid open and close notification

2008-12-04 Thread Benjamin Dobson
On 4 Dec 2008, at 18:29:26, sheen mac wrote: Hi All, In my app needs lid open and close notification.I used ioreg shell call for that (ioreg -n IOPMrootDomain | grep AppleClamshellState | sed 's/^.*=//' ).But when lid close and open it return No. Always the clamshellstate is

Re: lid open and close notification

2008-12-04 Thread Nick Zitzmann
On Dec 4, 2008, at 1:11 PM, Benjamin Dobson wrote: I'm not familiar with this, but... how would you know the lid is closed? Wouldn't the computer be asleep? There are several situations in Mac OS X where the clamshell can be closed and the computer will remain wide awake, or the computer