MMMoUsE Posted June 20, 2009 Share Posted June 20, 2009 I'm using iPC, 10.5.7 ,vanilla It's work to sleep thr apple menu but can't sleep automatically. Is there any issue to solve ? thx for helping Link to comment https://www.insanelymac.com/forum/topic/171626-auto-sleep-problem/ Share on other sites More sharing options...
jimmydigital00 Posted August 3, 2009 Share Posted August 3, 2009 Same problem here running Retail Installation on Rampage II Extreme with i7 920 processor. I had it working once but cannot recreate the settings to make it work. Please help!!!! It goes to sleep if you manually hit sleep but in energy settings when it is set to sleep automatically the fans stay on and system seems to continue to run. Thanks JN Link to comment https://www.insanelymac.com/forum/topic/171626-auto-sleep-problem/#findComment-1216045 Share on other sites More sharing options...
westwaerts Posted August 3, 2009 Share Posted August 3, 2009 in my case autosleep does not work with firefox open, close the program, made it fall asleep. Link to comment https://www.insanelymac.com/forum/topic/171626-auto-sleep-problem/#findComment-1216118 Share on other sites More sharing options...
KWS Posted August 18, 2009 Share Posted August 18, 2009 Put this small app in users startobjects, its a applescript which solves the autosleep-problem for me in 10.5.7 and 10.5.8. Link to comment https://www.insanelymac.com/forum/topic/171626-auto-sleep-problem/#findComment-1229427 Share on other sites More sharing options...
Beerkex'd Posted August 19, 2009 Share Posted August 19, 2009 Where did you get it and what does it do exactly? Link to comment https://www.insanelymac.com/forum/topic/171626-auto-sleep-problem/#findComment-1229635 Share on other sites More sharing options...
KWS Posted August 20, 2009 Share Posted August 20, 2009 I wrote it in Applescript - it looks for the sleeptime in System preferences, then it compares the sleeptime with the idletime, if idletime is greater than sleeptime it sends the machine to sleep ... no big deal at all, but for me it works ... Link to comment https://www.insanelymac.com/forum/topic/171626-auto-sleep-problem/#findComment-1230435 Share on other sites More sharing options...
Swhay Posted September 12, 2009 Share Posted September 12, 2009 Thanks for the script, it seems to be working fine on my system. Would you mind posting the script source? I would like to learn from it. Thanks Link to comment https://www.insanelymac.com/forum/topic/171626-auto-sleep-problem/#findComment-1263025 Share on other sites More sharing options...
Swhay Posted September 12, 2009 Share Posted September 12, 2009 I wrote it in Applescript - it looks for the sleeptime in System preferences, then it compares the sleeptime with the idletime, if idletime is greater than sleeptime it sends the machine to sleep ... no big deal at all, but for me it works ... I figured out how to look at the script source, I am kinda new to Mac and Apple script, though I have been a windows developer for over 10 years. I think the script is great, but, I think there is a bug in your logic (please take this as constructive criticism). I was copying some really big files today, and I did not want the computer to go to sleep before it finished, so I set the computer sleep option to never in System Preferences. As soon as I did that, my computer immediately went to sleep. It kinda surprised me, and after I woke it back up, it just froze so I rebooted and it did it again just after the desktop came up. Then I thought maybe your script is doing it, so I managed to get back into System Preferences and changed the sleep setting to 3 hours. I has been fine since I did that. I am not sure what the integer value is in systemSleepDelay variable you are using if the sleep setting is set to "never", I have not gotten that far yet. I am betting that it is zero and that may be where your logic is slightly flawed. I plan on testing the following change to your logic later today or tomorrow. if idleTime > systemSleepDelay and systemSleepDelay ≥ 1 then I will let you know what my results are and if it makes a difference. Again thank you very much for the script... Link to comment https://www.insanelymac.com/forum/topic/171626-auto-sleep-problem/#findComment-1263447 Share on other sites More sharing options...
KWS Posted October 29, 2009 Share Posted October 29, 2009 First i must apaologize for the late reply. In fact its the number zero (0) which is used from energy save preferences when set to Never. So the script immediately goes to sleep again after wake. I changed this and one bug while running time machine backups ... Ups ... forgot the link ... again ... http://www.insanelymac.com/forum/index.php?showtopic=182535 Link to comment https://www.insanelymac.com/forum/topic/171626-auto-sleep-problem/#findComment-1314123 Share on other sites More sharing options...
Recommended Posts