KWS Posted August 29, 2009 Share Posted August 29, 2009 This is only useful if sleep by menu command works flawlessly ... KWSleep for 10.9.x (10.10-11 not tested ...) KWSleepLion.zip Basically consisting of 2 shellscripts: sleep.sh is running by launchd every 30 s (directory: /Library/Scripts/KWS/), los.sh monitors changes in com.apple.PowerManagement.plist (add changed sleeptime in syspref to sleep.sh). The installer includes a prog named EditKWSleep which is a "frontend" to change settings in the script. Obsolete for people with knowledge of shellscript syntax ... Heres the manual of Edit KWSleep: KWSleep Manual.pdf 1 Link to comment Share on other sites More sharing options...
iorr Posted August 29, 2009 Share Posted August 29, 2009 Works, great job. Thanks Link to comment Share on other sites More sharing options...
pet1 Posted August 29, 2009 Share Posted August 29, 2009 autosleep now works perfectly.. thank you. Link to comment Share on other sites More sharing options...
rogerabc Posted August 30, 2009 Share Posted August 30, 2009 How do I install this please. Manual sleep works fine, but not autosleep. Tried double clicking the .app file, but no joy. Thanks for any advice. Roger Link to comment Share on other sites More sharing options...
The Raton Posted August 31, 2009 Share Posted August 31, 2009 I think you have to put the script in the startup Items folder. I used it for a while, now I don't need it anymore, but I remember thar I went to System Preferences, then Users and then I added the script to my startUp items.... Hope it helps Link to comment Share on other sites More sharing options...
FKA Posted September 28, 2009 Share Posted September 28, 2009 This is a new version of PenntNeu-script, which now recognizes the setting "Never" for sleep-delay in energy-saver preferences. It works in 10.6 too. You must add It to Start Up Objects on your User Account ... Added try ... end try to the script to prevent an error while running time machine backups ... Great stuff. I had forced sleep and wake but couldn'r get auto sleep to go to deep sleep. Not quite the solution I was looking for but this script does it for me. Link to comment Share on other sites More sharing options...
tinush Posted September 28, 2009 Share Posted September 28, 2009 This is a new version of PenntNeu-script, which now recognizes the setting "Never" for sleep-delay in energy-saver preferences. It works in 10.6 too. You must add It to Start Up Objects on your User Account ... Added try ... end try to the script to prevent an error while running time machine backups ... Thnx, system goes to sleep, but the monitor stays on with black screen will try other dvi poort post back T OK, with dvi-b it works Link to comment Share on other sites More sharing options...
tinush Posted September 28, 2009 Share Posted September 28, 2009 I think you have to put the script in the startup Items folder. I used it for a while, now I don't need it anymore, but I remember thar I went to System Preferences, then Users and then I added the script to my startUp items.... Hope it helps hello Raton, how did you fix this? T. edit; ok dvd drive was the problem, tsst issue Link to comment Share on other sites More sharing options...
helob Posted October 31, 2009 Share Posted October 31, 2009 hello Raton, how did you fix this? T. edit; ok dvd drive was the problem, tsst issue Hi, I am interested to know how to fix the tsst issue on dvd drive. What is tsst issue by the way? TQ for your time. Have a nice day Link to comment Share on other sites More sharing options...
pehera Posted November 1, 2009 Share Posted November 1, 2009 Try this little genius app http://www.dragonone.com/products/macosx/pleasesleep/ Link to comment Share on other sites More sharing options...
helob Posted November 1, 2009 Share Posted November 1, 2009 Try this little genius apphttp://www.dragonone.com/products/macosx/pleasesleep/ Tks for your suggestion. Actually I managed to get sleep working with RIP.app. I just want to know how to fix the problem without installing additional app. Link to comment Share on other sites More sharing options...
shockre Posted November 1, 2009 Share Posted November 1, 2009 hi, i have sleep working, auto sleep working, waking up, but when my battery goes very low it just says that i have to plug it in or it will turn off and then it turns off. i would like it to auto sleep then! how? thanks Link to comment Share on other sites More sharing options...
d00d Posted November 2, 2009 Share Posted November 2, 2009 This is a new version of PenntNeu-script, which now recognizes the setting "Never" for sleep-delay in energy-saver preferences. It works in 10.6 too. You must add It to Start Up Objects on your User Account ...Added try ... end try to the script to prevent an error while running time machine backups ... To explain it in detail: this is no solution for any sleep-issue with the except of not working AUTOMATIC-Sleep. If your machine goes to sleep by menu-command and wake without problems, you can use it ... To make this work, in main.scpt I had to change; if idleTime > systemSleepDelay then tell application "System Events" key code 58 end tell tell application "System Events" to sleep end if to; if idleTime > systemSleepDelay then do shell script "pmset sleepnow" end if Link to comment Share on other sites More sharing options...
KWS Posted November 2, 2009 Author Share Posted November 2, 2009 If it works for you, its okay. I didnt know this sleepnow-command, so i used Applescript. After wake sleep started immediately again, so i added keycode 58 to reset the idletime ... Link to comment Share on other sites More sharing options...
d00d Posted November 2, 2009 Share Posted November 2, 2009 If it works for you, its okay. I didnt know this sleepnow-command, so i used Applescript. After wake sleep started immediately again, so i added keycode 58 to reset the idletime ... Much thanks for your script!The symptom I had before the change was that the login windoid would pop up when the script triggered, and no sleep, perhaps there are timing issues with different hardware? Link to comment Share on other sites More sharing options...
jamonda Posted November 30, 2009 Share Posted November 30, 2009 Will the system sleep when I'm typing, using internet etc. or only after idle timeout? Link to comment Share on other sites More sharing options...
KWS Posted November 30, 2009 Author Share Posted November 30, 2009 Will the system sleep when I'm typing, using internet etc. or only after idle timeout? It will sleep after the time since last user input (mouse movement, keyboard activity) ... Link to comment Share on other sites More sharing options...
krokko Posted December 7, 2009 Share Posted December 7, 2009 thanks, the script works fantastic . Link to comment Share on other sites More sharing options...
keypox Posted December 9, 2009 Share Posted December 9, 2009 thanks man works well Link to comment Share on other sites More sharing options...
LS8 Posted December 10, 2009 Share Posted December 10, 2009 Does it disable autosleep when watching video in QuickTime ar listening to music in iTunes? Or does it sleep in the middle of a movie? Link to comment Share on other sites More sharing options...
KWS Posted December 10, 2009 Author Share Posted December 10, 2009 Does it disable autosleep when watching video in QuickTime ar listening to music in iTunes? Or does it sleep in the middle of a movie? Updated in first post ... Link to comment Share on other sites More sharing options...
dungeon Posted December 20, 2009 Share Posted December 20, 2009 Updated in first post ... great work, Thanks. Hope the future release can monitor disk activities like file coping, downloading etc. Link to comment Share on other sites More sharing options...
KWS Posted December 21, 2009 Author Share Posted December 21, 2009 great work, Thanks.Hope the future release can monitor disk activities like file coping, downloading etc. I think this is not possible in Applescript, at least for me , so you must change the energy saver settings to 3 hrs or never during large downloads or file copying ... Link to comment Share on other sites More sharing options...
helob Posted December 22, 2009 Share Posted December 22, 2009 This is a new version of PenntNeu-script, which now recognizes the setting "Never" for sleep-delay in energy-saver preferences. It works in 10.6 too. You must add It to Start Up Objects on your User Account ... Added try ... end try to the script to prevent an error while running time machine backups ... To explain it in detail: this is no solution for any sleep-issue with the except of not working AUTOMATIC-Sleep. If your machine goes to sleep by menu-command and wake without problems, you can use it ... Added three little changes to stop script while itunes, dvd-player or QuickTime is playing... KWS, RIP2.app was working great for Chameleon RC3 . However with the latest Chameleon RC4 ( eliminate PlatformUUID.kext in E/E), auto sleep is no more working . Would appreciate any inputs on getting RIP working again with Chameleon RC4 . TQ & Have a nice day Link to comment Share on other sites More sharing options...
KWS Posted December 22, 2009 Author Share Posted December 22, 2009 KWS,RIP2.app was working great for Chameleon RC3 . However with the latest Chameleon RC4 ( eliminate PlatformUUID.kext in E/E), auto sleep is no more working . Would appreciate any inputs on getting RIP working again with Chameleon RC4 . TQ & Have a nice day Is sleep working by menu command ... I use pc efi 10.5, i replaced boot file with rc4 and sleep isn't working by menu command and so also not by RIP-script. Funny is that i changed my dvd-drive some weeks ago and since that autosleep is perfectly working without my script. So i feel not too much motivated to change my working configuration for testing ... Link to comment Share on other sites More sharing options...
Recommended Posts