Re: How to determine host is a laptop?
Re: How to determine host is a laptop?
- Subject: Re: How to determine host is a laptop?
- From: Shaun Wexler <email@hidden>
- Date: Mon, 10 Oct 2005 12:19:34 -0700
On Oct 10, 2005, at 11:41 AM, John Fieber wrote:
Sounds like your problem is ensuring a system doesn't go to sleep.
That is a rather different sort of problem deciding whether or not
the system is a laptop.
Sure, but that's not much of a problem in itself. Disabling
clamshell sleep in-kernel is as simple as:
IOPMrootDomain *root;
if ((root = getPMRootDomain())) {
root->receivePowerNotification(kIOPMDisableClamshell);
}
Sad, how the semantics of this simple "technical" thread became so
political... ;)
--
Shaun Wexler
MacFOH
http://www.macfoh.com
"Computers are useless. They can only give you answers." - Pablo Picasso
_______________________________________________
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