Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: KUNCExectute and return values (really about something else I suspect)




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



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: KUNCExectute and return values (really about something else I suspect) (From: Michael Smith <email@hidden>)
 >Re: KUNCExectute and return values (really about something else I suspect) (From: "Andrew James" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.