Here’s how I prevented my iBook G4 notebook from going to sleep when the lid is closed. This worked with Mac OS X 10.3.9 (Panther). YMMV. If you’re running a OS X 10.4 (Tiger) or newer, you might want to check out InsomniaX instead. InsomniaX should work with Mac OS X 10.4 and later.
- Download and decompress Insomnia.kext.tbz. I wasn’t able to retrieve a copy of from the Insomnia project’s home page, but I did grab a working copy off of the Internet Archive, which I mirrored here. I also mirrored a copy of the source code in the Insomnia.src.tbz file.
- Open a command prompt, switch to the directory that you decompressed Insomnia.kext.tbz to, and execute the following commands:
- sudo chown root:wheel Insomnia.kext # set the module to be owned by root
- mv Insomnia.kext /System/Library/Extensions # move the module to the kernel extensions directory
- cd /System/Library/Extensions # change to the kernel extensions directory
- sudo kextload Insomnia.kext # load the module
- Test the module by closing your notebook’s lid. If your Mac doesn’t go to sleep, you’re in business.
You can unload the Insomnia.kext module at any time by executing the following commands:
- cd /System/Library/Extensions # change to the kernel extensions directory
- sudo kextunload Insomnia.kext # unload the module