Clamshell notify
Clamshell notify
- Subject: Clamshell notify
- From: "Andrew James" <email@hidden>
- Date: Mon, 5 Nov 2007 09:58:05 +1030
Hi,
I am looking for a notification that i can use in a kext so i know when the lid of a laptop is closed, i have tried the code snippet at the bottom of the email but it picks up the AC/Batt events as well for some reason. Any ideas?
IOReturn Insomnia::message
(UInt32 type, IOService * provider, void * argument) {
if (type == kIOPMMessageClamshellStateChange) {
IOLog("Clamshell"
);
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden