Re: Cancel Sleep
Re: Cancel Sleep
- Subject: Re: Cancel Sleep
- From: Andrew James <email@hidden>
- Date: Tue, 1 Jan 2008 21:37:51 +1030
Ill try those other mailing lists, and id like to remind everybody the
solution exists to a extent as i am a developer of Insomnia and
InsomniaX. However i would just like to take this back to basics and
see if anyone can cover the biggest problem.
So if everybody can forget just for a second of the main goal, the
mission at the moment is to find a way to receive the notification of
the lid state changing that does not mix up with the power state
changes.
My only idea that would of made sense would of been to use the
"message" function and inside that check the power state and if the
power state has changed then ignore the message (this would fix the
problem of the power and lid state sharing the identical message
signals)
virtual IOReturn message(UInt32 type, IOService *provider, void
*argument = 0);
PS. Insomnia dev code is available at http://files.semaja2.net/Insomnia.zip
On 01/01/2008, at 4:43 PM, Amanda Walker wrote:
On Jan 1, 2008, at 12:03 AM, Andrew James wrote:
Ok well the truth is im trying to create the over ride that will
let you run the laptop in closed lid mode with out the extra
hardware, it is a very needed feature. However i do plan on adding
features to ensure the safety of the laptop (if temps get to high
it will auto sleep etc)
I'm still not clear on why it's "very needed", but I'll take your
word for it.
The software to fix this has been around for a long time
(Insomnia.kext) but the current implementations used at the moment
does not allow for some future features we wished to implement due
to the message/notifications problems i mentioned earlier.
I remember Insomnia from KisMac, though that use case is one where
I'd be very worried about thermal problems (walking around with a
laptop running in a backpack or bag). Something like a battery
powered Mini (like <http://www.pamurray.com/manga/macbat/>) might be
a better approach (or using a PDA to gather data, and upload to the
laptop later). However, I do agree that there are other use cases
where running a laptop while closed would be useful.
PS. In a small survey i conducted the laptops in lid closed state
did not show any major increases in temperatures over a duration of
a few hours in normal operations (Not high CPU tasks)
In an office environment with reasonable airflow, I am not too
surprised--I've run my MacBook Pro for hours with an external
monitor attached and the lid closed, for example, without any
apparent ill effect.
If I had to do this for a specific project, I'd probably end up
building a custom kernel; it would surprise me if you could do
everything you need to from a kext. You could always have your kext
interpose itself by patching the running kernel, but this is (a)
pretty risky, and (b) ties you to particular versions of the OS. If
you're tied to particular OS revisions, you might as well just build
a new kernel.
And if we're in the realm of kexts and custom kernels, darwin-
drivers or darwin-kernel might be a better place to ask this sort of
question than darwin-dev.
--Amanda
_______________________________________________
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