Zero Posted September 25, 2005 Share Posted September 25, 2005 I've just tried Sleepless 1.7.1, and found out it depends on a kext named "Insomnia.kext". Fortunately, it is a open source kext which you may found here (Insomnia ). I just grab the source, and compile it with XCode 2.1. Now it works! Step: 1. Build from source or grab the kext I upload. (Insomnia.kext.zip ) 2. chown -R root:wheel Insomnia.kext chmod -R 755 Insomnia.kext for correcting permissions. 3. sudo kextload Insomnia.kext 4. Now you've got it. 5. Let it sleep -> sudo kextunload Insomnia.kext Zero Link to comment https://www.insanelymac.com/forum/topic/2968-a-solution-for-prevent-your-nb-sleep/ Share on other sites More sharing options...
jegabla Posted September 26, 2005 Share Posted September 26, 2005 First of all, thanx! Second, is there a way to permanently load this kext? Link to comment https://www.insanelymac.com/forum/topic/2968-a-solution-for-prevent-your-nb-sleep/#findComment-19117 Share on other sites More sharing options...
stmkjp Posted September 26, 2005 Share Posted September 26, 2005 First of all, thanx! Second, is there a way to permanently load this kext? jegabla, just store this kext under /System/Library/Extension folder and reboot. then it will load permanently until you remove it from that folder. Link to comment https://www.insanelymac.com/forum/topic/2968-a-solution-for-prevent-your-nb-sleep/#findComment-19137 Share on other sites More sharing options...
oopl Posted September 26, 2005 Share Posted September 26, 2005 awesome, I'm gonna give this a try Link to comment https://www.insanelymac.com/forum/topic/2968-a-solution-for-prevent-your-nb-sleep/#findComment-19165 Share on other sites More sharing options...
Justin R. Posted September 27, 2005 Share Posted September 27, 2005 Thanks, I wish the sleep function would work, but I would much rather close the lid on my laptop. Thanks again! Link to comment https://www.insanelymac.com/forum/topic/2968-a-solution-for-prevent-your-nb-sleep/#findComment-19238 Share on other sites More sharing options...
oopl Posted September 27, 2005 Share Posted September 27, 2005 My 700m still goes to sleep when the lid is closed... Link to comment https://www.insanelymac.com/forum/topic/2968-a-solution-for-prevent-your-nb-sleep/#findComment-19360 Share on other sites More sharing options...
Zero Posted September 28, 2005 Author Share Posted September 28, 2005 My 700m still goes to sleep when the lid is closed... Did you just put it in Extensions folder or load it after system started? On my notebook, it won't work if it loaded automatically by putting in Extensions, must load it manually in Terminal after system started completely. Link to comment https://www.insanelymac.com/forum/topic/2968-a-solution-for-prevent-your-nb-sleep/#findComment-19418 Share on other sites More sharing options...
macgirl Posted September 28, 2005 Share Posted September 28, 2005 You can load inside /etc/rc after all extensions are loaded, just edit this file. Link to comment https://www.insanelymac.com/forum/topic/2968-a-solution-for-prevent-your-nb-sleep/#findComment-19500 Share on other sites More sharing options...
oopl Posted September 29, 2005 Share Posted September 29, 2005 I put it in extensions macgirl: what do you mean edit this file? Link to comment https://www.insanelymac.com/forum/topic/2968-a-solution-for-prevent-your-nb-sleep/#findComment-19652 Share on other sites More sharing options...
macgirl Posted September 29, 2005 Share Posted September 29, 2005 Exactly that, edit /etc/rc, it is a startup (kind of) file Link to comment https://www.insanelymac.com/forum/topic/2968-a-solution-for-prevent-your-nb-sleep/#findComment-19740 Share on other sites More sharing options...
tpcadm Posted September 29, 2005 Share Posted September 29, 2005 Exactly that, edit /etc/rc, it is a startup (kind of) file Or just download SleepLess 1.7.1 universal binary (http://www.alxsoft.com/files/sl171u.zip). Launch it and uncheck "Allow sleep with lid closed" Link to comment https://www.insanelymac.com/forum/topic/2968-a-solution-for-prevent-your-nb-sleep/#findComment-19742 Share on other sites More sharing options...
oopl Posted September 29, 2005 Share Posted September 29, 2005 SleepLess does not work either. Link to comment https://www.insanelymac.com/forum/topic/2968-a-solution-for-prevent-your-nb-sleep/#findComment-19812 Share on other sites More sharing options...
KanadaKid Posted October 2, 2005 Share Posted October 2, 2005 I tried adding this to my Extensions folder, and it loaded but it didn't work. So then I added a line to my /etc/rc file like macgirl suggested, and again it loaded but didn't work. But then I was thinking, what if I made a script to do it for me. I googled some basic applescript, and made one that worked. Made this script into an app bundle, threw the kext into the bundle, added it to my dock, and right-clicked it to Open at Login. Now it loads after everything else, and works. But what good is this discovery without sharing eh? Here's the applescript inside the bundle: do shell script "kextload /Applications/Insomnia.app/contents/Insomnia.kext" with administrator privileges specifically in Insomnia.app/Contents/Resources/Scripts/main.scpt If you change it to: do shell script "kextload /Applications/Insomnia.app/contents/Insomnia.kext" password "your password" with administrator privileges then it wont prompt you for your password to run. And if you look at the script, it's made to run from the Applications folder. If you really want to run it from somewhere else, change the path to the kext in the script. Well, here she is, enjoy! Insomnia.zip Link to comment https://www.insanelymac.com/forum/topic/2968-a-solution-for-prevent-your-nb-sleep/#findComment-20171 Share on other sites More sharing options...
Recommended Posts