Page 1 of 5 12345 LastLast
Results 1 to 10 of 45

Thread: Shutting Down Mine vs. Sleep

  1. #1
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,364
    Blog Entries
    2

    Shutting Down Mac Mini vs. Sleep

    I've started a new thread on this.

    The issue: The Mac Mini does not shut down like a PC when the power button is pressed. That means that when the P1900 sends the power button pressed signal to the Mini, it does one of two things:

    1. Nothing.
    2. Sleeps (if set properly in the Energy control panel)

    Holding the power button for 6 seconds will force shutdown, but is not recommended as a long term solution.

    The mission: Figure out how to alter this behavior either through a change in the Open Firmware power managment software (specifically, the pmset command), OR through a small app that receives the power button command and orders a shutdown of the machine.
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  2. #2
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,364
    Blog Entries
    2
    I checked into doing this via Applescript. Here's a response I got:

    "Unfortunately, I don't think you can do this from AppleScript. However, there's still hope.
    The Carbon framework enables you to implement a callback to catch and even halt sleep - which would then let you perform your shut down.
    The Cocoa frameworks (AppKit's NSWorkspace class in particular) has a notification, NSWorkspaceWillSleepNotification, that can cause sleep to be suspended for up to 30 seconds. You may be able to begin a shut down during those 30 seconds."

    I will look into the framework and see what else I can find out. If a small app can be written to do this, we only need run it on startup.

    [Edit] Found this: "NSWorkspace now provides sleep notifications. NSWorkspaceWillSleepNotification and NSWorkspaceDidWakeNotification will be sent before the machine sleeps and after the machine wakes, respectively. An observer of NSWorkspaceWillSleepNotification can delay sleep for up to 30 seconds within the handling of the notification."

    from here: http://developer.apple.com/releaseno...lderNotes.html

    [Double Edit] Crap! I misspelled Mini in the thread title and it shows as "Mine". Changing it didn't fix it. Kandyman, can you fix it?
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  3. #3
    Low Bitrate FireAnt's Avatar
    Join Date
    May 2004
    Location
    Houston, Texas
    Posts
    104
    Great to see your working on this! I would really like to be able to do a proper shut down via the signal from the p1900 power supply. I wish I could program, it's tuff being blessed with beauty and no brains. lol

    Mike F.
    05 MINI Cooper Cabrio "Mac MINI"
    progress 95%- Mac Mini, Lilliput 7" , usb-wifi, Rayming GPS, Route 66,easy cat touch pad, CCAR front end"skinned",P1900 power supply

  4. #4
    Low Bitrate
    Join Date
    Feb 2005
    Posts
    109
    Well, I'm still waiting on my main techie guy here at work to get back to me on the problem, but in the meantime one of the other guys here gave me a pretty decent solution.

    Here it is:
    Use the P1900 in its normal sleep mode operation. This will keep the mini in sleep mode drawing a little bit of current when the car is off. Instead of running it like this all the time, set the computer to turn off at a specific time every night. For example set the cpu to turn off at 12:00 midnight or whenever you usually put the car away for the night. A specific shutdown time can be adjusted in the system preferences/energy saver. This would at least conserve some battery power. Your mini would shutdown at midnight and the next morning startup whenever you hit the ignition. This is about 6-8 less hours of sleep operation per day. It's also useful incase you forget to turn your cpu off and go on vacation. It would automatically shutdown at midnight.

    I might run it this way for the time being before someone figures a permanent solution out.

  5. #5
    Variable Bitrate
    Join Date
    Sep 2003
    Location
    Austin, TX
    Posts
    344
    Is leaving it in sleep mode even a threat? I drive my car daily. The longest I'd go without driving is maybe 2-3 days. On vacation or business trips, I'd definately shut down though.

  6. #6
    Low Bitrate
    Join Date
    Feb 2005
    Posts
    109
    I personally do not want to leave my mini in sleep mode. I am running subs/amps/upgraded head unit and do not want to run a second battery or risk my battery running down. The last thing I want to be is stranded. My car is new and battery is strong now, but I want to do as much as possible to keep it that way.

    6-8 hours of not running the mini is 122 less days of mini sleep mode drain per year on your battery. That is a lot.

    I understand the battery recharges, but I would rather not have it drain and recharge over and over again.

  7. #7
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,364
    Blog Entries
    2
    Okay, so isn't the "battery running down" issue a non-issue if you are using a P1900? I thought it had low voltage protection and would shut the computer off if the power drops below 12 volts. Even when asleep.
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  8. #8
    Maximum Bitrate shizzle's Avatar
    Join Date
    Mar 2005
    Location
    Sarasota, FL
    Posts
    793
    I am also "concerned," and would like to have a power down solution. I do not see sleeping the mini as a major battery threat, however, and I keep a high amp charger in the trunk in case I do something stupid anyway.
    Carputer status: [-*---------]
    Im thinking laptop...

  9. #9
    Variable Bitrate
    Join Date
    Sep 2003
    Location
    Austin, TX
    Posts
    344
    The only reason I want sleep mode is for the instant-on capability. Imagine hopping into your car and having it greet you in some fashion... KITT style! I love Macs, but the startup time is hellacious.

  10. #10
    Newbie
    Join Date
    Apr 2005
    Posts
    19
    Quote Originally Posted by Bugbyte
    I checked into doing this via Applescript. Here's a response I got:

    "Unfortunately, I don't think you can do this from AppleScript. However, there's still hope.
    The Carbon framework enables you to implement a callback to catch and even halt sleep - which would then let you perform your shut down.
    The Cocoa frameworks (AppKit's NSWorkspace class in particular) has a notification, NSWorkspaceWillSleepNotification, that can cause sleep to be suspended for up to 30 seconds. You may be able to begin a shut down during those 30 seconds."

    I will look into the framework and see what else I can find out. If a small app can be written to do this, we only need run it on startup.

    [Edit] Found this: "NSWorkspace now provides sleep notifications. NSWorkspaceWillSleepNotification and NSWorkspaceDidWakeNotification will be sent before the machine sleeps and after the machine wakes, respectively. An observer of NSWorkspaceWillSleepNotification can delay sleep for up to 30 seconds within the handling of the notification."

    from here: http://developer.apple.com/releaseno...lderNotes.html

    [Double Edit] Crap! I misspelled Mini in the thread title and it shows as "Mine". Changing it didn't fix it. Kandyman, can you fix it?
    I tried playing with the NSWorkspaceWillSleepNotification and what would happen was the machine would sleep before the notification was triggered. Then after I brought it out of sleep the code would be executed. After digging around on lists.apple.com I found out that there is 2 types of sleep. One is idle sleep and this can be interrupted programatically and the other is a forced sleep (power button or menu initiated) which can not be interrrupted. Here is some info http://lists.apple.com/archives/darw.../msg00041.html

Page 1 of 5 12345 LastLast

Similar Threads

  1. Can anyone figure out sleep?
    By DMB-RSX in forum MacCar
    Replies: 12
    Last Post: 01-18-2005, 05:57 PM
  2. PC Not Shutting down
    By LanoX in forum General Hardware Discussion
    Replies: 9
    Last Post: 09-16-2004, 12:40 AM
  3. Opus shutting down when car is off
    By Weatherboy in forum Power Supplies
    Replies: 1
    Last Post: 09-03-2004, 06:21 PM
  4. ebay touchscreen 12.89" w/ controller (not mine)
    By Question in forum Classified Archive
    Replies: 0
    Last Post: 05-31-2003, 08:46 PM
  5. Carputer shutting down by it self...
    By cyrofilho in forum General Hardware Discussion
    Replies: 5
    Last Post: 09-16-2002, 04:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •