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)



Ok here is the whole kext, and the reason i didnt mention all of it before is some people prefer not to help develop such projects.

Basically the kext sits there waiting for a user to close the lid on the laptop, it picks this up and sends back a message reporting the lid was opened when it was not, and hence enabling clamshell mode with out the extra hardware (A few more messages are used but for the point) now the problem is that we want to add extra features and such which do not work properly when you the user is disabling the kext and unplugging the power at the same time due to the messages being identical.


On Nov 23, 2007 5:46 PM, Michael Smith <email@hidden> wrote:

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>)
 >Re: KUNCExectute and return values (really about something else I suspect) (From: Michael Smith <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.