Sleepwatcher (.sleep ) not working on Lion 2.7.2

Discussion in 'General Help' started by schoolsearch09, Jan 4, 2012.

  1. schoolsearch09

    schoolsearch09

    Joined:
    Dec 24, 2011
    Messages:
    32
    Mobo:
    Mac OS X Lion
    CPU:
    Ivy Bridge
    Graphics:
    CPU graphic
    Mac:
    MacBook Pro, Mac mini
    Mobile Phone:
    Other
    Jan 4, 2012 #1
    schoolsearch09

    schoolsearch09

    Joined:
    Dec 24, 2011
    Messages:
    32
    Mobo:
    Mac OS X Lion
    CPU:
    Ivy Bridge
    Graphics:
    CPU graphic
    Mac:
    MacBook Pro, Mac mini
    Mobile Phone:
    Other
    Hi All,
    I was trying to fix the problem about "not properly unmounted message " with Sleepwatcher.

    I use this script from another thread :
    #!/bin/bash
    if [ -d /Volumes/Name_of_HDD ]
    then
    /usr/sbin/diskutil unmount /Volumes/Name_of_HDD
    fi
    When I run it in terminal , it works well. But when I press sleep button, my desktop turn off very quickly and I still keep getting this error message. My .wakeup is okay. Thank for any help!!!
     
  2. apfeleimer

    apfeleimer

    Joined:
    Jul 24, 2011
    Messages:
    55
    Mobo:
    GA-Z68MA-D2H-B3 UEFI U1b, 12GB RAM
    CPU:
    Intel Core i5 2500k
    Graphics:
    Intel HD Graphics 3000
    Mac:
    MacBook, Mac mini
    Mobile Phone:
    Android
    Jan 4, 2012 #2
    apfeleimer

    apfeleimer

    Joined:
    Jul 24, 2011
    Messages:
    55
    Mobo:
    GA-Z68MA-D2H-B3 UEFI U1b, 12GB RAM
    CPU:
    Intel Core i5 2500k
    Graphics:
    Intel HD Graphics 3000
    Mac:
    MacBook, Mac mini
    Mobile Phone:
    Android
    - Make sure sleepwatcher is installed properly. Did you follow all steps included in the documentation? You have to copy some files around to make sleepwatcher work as an automatic daemon/agent.
    - Test sleepwatcher manually. Does "sleepwatcher -n" put the computer to sleep?
     

Share This Page