Should IOFramebuffer subclasses call registerPowerDriver()?

4 views
Skip to first unread message

Mike Crawford

unread,
Sep 20, 2017, 7:20:49 PM9/20/17
to darwin-...@lists.apple.com
My IOFramebuffer class was mostly working before I added the code for
power management - PMinit, registerPowerDrive and setPowerStat.

Implementing power management as documented by Apple causes a grey
screen just before showing the desktop. The book doesn't proceed
after that - the desktop never appears.

However, the IOFramebuffer parent class sets and gets some attributes.
One of them is 'powr'; its value is set to either 0 or 1.

Is it the case that the subclass is notified of power state changes by
that call to setAttribute?

My subclass doesn't talk to hardware at all - that's done by a USB
function driver. So...

Am I correct that my IOFB subclass doesn't need to do anything to
handle sleeping and waking? I expect that it need not have any
special code, as all of its state is in RAM and saved and restored by
the power manager.

Thank you for any insight you can give me.

Mike


Mike Crawford mdcra...@gmail.com

Seeking Beta Testers for Warp Life for iOS
http://www.warplife.com/beta-testing
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list (Darwin-...@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/darwin-drivers/darwin-drivers-garchive-96018%40googlegroups.com

This email sent to darwin-drivers...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages