Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: sleep-wakeup & kexts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sleep-wakeup & kexts



Ah yes, to PMInit or not to PMInit. Actually the call to PMInit is
suppose to be made by Policy Maker not Power Controller as stated by
Chapter 10 of IOKit Fundamentals. I believe you are a power controller.

Per page 135:
If an IOService
object is not a policy maker (that is, it does not call PMinit) its
power-management
instance variables are not initialized with the appropriate objects.

I am in the process of adding this code to my driver to see if an entry
is made to the IORegistry IOPower plane. I presently see my driver in
the IOPower plane without making the call. I have more work to do to
completely understand what is or is not happening.

Manooch if you are working on a driver then you may have the enclosure
door open. I used to do that myself, but you cannot sleep a 10 machine
with the enclosure open. My point is twofold.

Check the IOPower plane looking for your driver and shut the door.
You're letting the cold in as my mother use to say.

As soon as I finish this driver it will be added to the PM DDK.

I regret the delay. Wayne

On Thursday, October 10, 2002, at 11:31 PM, Manooch Khajeh wrote:

> Hi:
>
> I am having problems with my network PC Card card driver's kext locking
> up when the system goes to sleep. I have implemented the
> registerWithPolicyMaker & setPowerState methods but they don't seem to
> be called according to the system log file. I downloaded
> AppleBMacEthernet-111 source from Darwin CVS repository. The IOKit
> fundumentals book, in chapter 10 (Power...) says that the driver should
> call PMInit method. The AppleBMacEthernet-111 code does not call
> PMInit. I have tried calling PMInit and not calling PMInit.
>
> The 'Power Manager OS X DDK 1.0' does not have a sample code for
> Kexts. It just has a one page document from the IOKit fundumentals
> book which says call PMInit, etc. which does not seem to do the trick
> for me!
>
> What else should I pay attention to as related to sleep & wake-up?
> What is the deal with PMInit? Which code in Darwin source does actually
> use the Power manager in a Kext?
>
> with thanks,
> Manooch Khajeh
> www.macwireless.com
> 510-848-7126
> _______________________________________________
> darwin-drivers mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/darwin-drivers
> Do not post admin requests to the list. They will be ignored.
>
************************************
Wayne Flansburg, Worldwide Technical Support
Visit our PCI web page at:
http://developer.apple.com/hardware/pci/
************************************
_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.

References: 
 >sleep-wakeup & kexts (From: Manooch Khajeh <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.