Re: How to determine host is a laptop?
site_archiver@lists.apple.com Delivered-To: Darwin-dev@lists.apple.com On Oct 10, 2005, at 11:41 AM, John Fieber wrote: IOPMrootDomain *root; if ((root = getPMRootDomain())) { root->receivePowerNotification(kIOPMDisableClamshell); } "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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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: Sad, how the semantics of this simple "technical" thread became so political... ;) -- Shaun Wexler MacFOH http://www.macfoh.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Shaun Wexler