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: Graham J Lee <email@hidden>
- Date: Sun, 09 Oct 2005 17:08:29 +0100
fletcher sandbeck wrote:
On 10/9/05 at 8:04 AM by email@hidden (Shaun Wexler):
What is the Apple-approved method for determining the portability of
the local host hardware? I need to enforce certain behavior if the
host is a laptop, and other behavior if the host is a tower/desktop.
My first thoughts were to parse 'compatible' for "PowerMac" and
"PowerBook", but I want to remain forward-compatible. Is this the
correct approach?
Checking the Energy Saver settings for a battery option might work.
Wouldn't that catch servers with UPSen installed? Mine certainly go
into battery mode when the mains breaks.
_______________________________________________
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