On Nov 22, 2007, at 4:13 PM, Andrew James wrote:
Well the true question is, how do i get a message specifically relating to the lid state changing on the laptops, the usual message notification does not work because the power source and lid state changes are identical down to the variables.
I still don't think that it's the state of the clamshell that you actually care about; you're trying to infer something about the user's intent from this, and you really need to start by thinking in those terms.
Consider, for example, the fact that with an external keyboard and monitor connected, Apple laptops are fully functional with the clamshell closed.
What decisions are you really trying to make?
= Mike
On Nov 23, 2007 8:45 AM, Michael Smith <
email@hidden> wrote:
On Nov 22, 2007, at 12:04 PM, Andrew James wrote:
> I am developing a KEXT which requires the power source, now i have
> done lots
> of study into finding a way to access the power source information
> but there
> seems to be no obvious way for a KEXT to access this data.
It's unlikely that what you want is "the power source"; it seems much
more likely that you want to infer something from or about this power
source.
Perhaps if you were to rephrase your question in a more specific
fashion, e.g. "how do I work out how to trade off power vs.
performance in my KEXT", we could give you a better answer...
= Mike