Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A kernel extension to disable 'sleep on close'' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A kernel extension to disable 'sleep on close'
Authored by: jzdziarski on Mar 11, '05 02:40:16PM

A couple hints/tips:

1. Sleepless does /not/ offer this functionality. It is advertised, but never worked.

2. This extension allows you to run with the lid closed /without/ an external monitor or keyboard, which is nice if you just want to idle but protect the screen from dust, or if you're mobile around the office.

3. If you drop the following scripts in a ~/Library/Scripts/Insomnia folder, you can turn it on/off from the menu:

Turn Insomnia On:
#!/bin/bash

sudo kextunload /path/to/your/Library/Extensions/Insomnia.kext

Turn Insomnia Off:
#!/bin/bash

sudo kextload /path/to/your/Library/Extensions/Insomnia.kext

4. I've got one of the new (1.67 Ghz) powerbooks, and this functionality didn't come standard.. not sure who thought it did, but it doesn't.

I've been using it for the past couple days, and it works great.



[ Reply to This | # ]
A kernel extension to disable 'sleep on close'
Authored by: jzdziarski on Mar 11, '05 02:41:16PM

Sorry, got those script names backwards.



[ Reply to This | # ]
A kernel extension to disable 'sleep on close'
Authored by: hamarkus on Mar 11, '05 04:04:47PM

Sorry, could you elaborate on what you meant with "named backwards"? Or could you maybe repost them? Thanks.



[ Reply to This | # ]
A kernel extension to disable 'sleep on close'
Authored by: Aietes on Mar 11, '05 06:22:31PM

He just switched the scripts, so where the header says "Turn Insomnia on" the script to turn it off follows and vice versa



[ Reply to This | # ]