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: Video driver informing the OS of display attach/detach



I asked more info from dev support but did not get much answer. Here is what
I understand (BTW, there are doc about the framebuffer in the 10.2 dev
preview. You should ask for it...)

You have to respond in the method getAttributeForConnection or getAttribute
with the flags:
kConnectionEnable
kConnectionChanged
kConnectionPower
How you respond to them ? I don't know. If you find it, let me know!

You will have to override registerForInterruptType and keep the os callback
for the specified interrupts you provide.

// Demand to check configuration (Hardware unchanged)
kIOFBConnectInterruptType = 'dci ',
// Demand to rebuild (Hardware has reinitialized on dependent change)
kIOFBChangedInterruptType = 'chng',
// Demand to remove framebuffer (Hardware not available on dependent
change -- but must not buserror)
kIOFBOfflineInterruptType = 'remv',
// Notice that hardware is available (after being removed)
kIOFBOnlineInterruptType = 'add ',


You can look it is all in IOGraphicTypes.h There is not much documentation
about the way to respond to getAttributeForConnection. I find it very hard
to know how to respond. Sometimes you have to just return noError, sometimes
you have to put 1 in the parameter it passes you. This is much obscure...

Good luck
Francis

On 31/07/02 03:18, "Chris Hanson" <email@hidden> wrote:

> I'm working on a video driver; it's a subclass of IOFramebuffer, and
> it has no custom user client and no accelerator support.
>
> My driver can detect when a display is attached and detached. I'd
> like to inform the rest of the operating system when this happens, so
> the user's desktop can be reconfigured dynamically. Right now, the
> user will wind up with a "phantom" display off to the right if
> there's nothing attached, which is obviously wrong.
>
> What do I need to do in my driver to make the right thing happen? I
> need to make it work on Mac OS X 10.1 and up. (I'm not sure what
> Darwin versions that corresponds to at the moment.) Thanks!
>
> -- Chris

--
Francis Bouchard email@hidden
Groupe vidio Macintosh 1-514-822-6000 ext:2869
Matrox Electronic Systems Ltd. Montreal, Quibec, Canada
_______________________________________________
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.



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.