Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > MacCar


Reply
 
Share Thread Tools Display Modes
Old 05-27-2009, 01:15 PM   #1
Newbie
 
Join Date: May 2009
Posts: 54
joshuo is an unknown quantity at this point
Powerbook power button?

Hello,
My powerbook G4 build is going pretty good.
I'm figuring out the software now, Running ICE^3.

Is there a way to make the computer sleep when the power button is pressed?
I know apple desktops behave this way, but the laptops pop up a little window when the PB is pressed, giving the option to Cancel, Sleep, Restart, or Shutdown.

I just want it to sleep when i press the button.

Thanks!
Josh
joshuo is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 05-27-2009, 08:33 PM   #2
Constant Bitrate
 
VmtSquad's Avatar
 
Join Date: May 2007
Location: Montréal, Quebec, Canada
Posts: 170
VmtSquad is an unknown quantity at this point
Im not sure if you can skip the choice message, BUT you can simply press the power button and press S for Sleep and it will go to sleep.

You can also check http://www.jinx.de/SmartSleep.html Its a small apps that convert your SLEEP into REAL HIBERNATION (no power required)

Thats what Im using with my mini!!
__________________
VmtSquad - I sold my soul to Honda!
Final Install
CarPC progress: 95%
VmtSquad is offline   Reply With Quote
Old 05-28-2009, 08:58 AM   #3
Newbie
 
Join Date: May 2009
Posts: 54
joshuo is an unknown quantity at this point
I won't have a keyboard hooked up though.
There has to be a way to get the desktop prefpane to run on the laptops.
I'm no programming wizard, but I bet there are some people on here that can figure it out.
joshuo is offline   Reply With Quote
Old 05-28-2009, 10:42 PM   #4
Constant Bitrate
 
VmtSquad's Avatar
 
Join Date: May 2007
Location: Montréal, Quebec, Canada
Posts: 170
VmtSquad is an unknown quantity at this point
AppleScript maybe your answer.....and this is where you will probably find it : www.google.com

Let us know if you find anything!
__________________
VmtSquad - I sold my soul to Honda!
Final Install
CarPC progress: 95%
VmtSquad is offline   Reply With Quote
Old 05-29-2009, 10:15 AM   #5
Variable Bitrate
 
Join Date: Jan 2007
Location: Dallas
Posts: 329
natedawgg is an unknown quantity at this point
yeah with applescript you can run shell commands or simulate key presses. either way you decide to go you should easily be able to accomplish this without much hassle. check out http://dougscripts.com/ for a lot sample applescripts. good luck!
__________________
Check out the new version of NAS, a cross platform music frontend here
natedawgg is offline   Reply With Quote
Old 05-29-2009, 11:10 AM   #6
Newbie
 
Join Date: May 2009
Posts: 54
joshuo is an unknown quantity at this point
Allright I found an applescript code that sleeps the computer:

'tell application "Finder" to sleep'

I cannot figure out how to bring the power button into play.
Obviously, an if statement needs to be applied, but i cannot find out how to define the powerbutton press.
joshuo is offline   Reply With Quote
Old 05-30-2009, 11:35 PM   #7
Newbie
 
Join Date: May 2009
Posts: 12
06specv is an unknown quantity at this point
Quote: Originally Posted by joshuo View Post
Hello,
Is there a way to make the computer sleep when the power button is pressed?
I know apple desktops behave this way, but the laptops pop up a little window when the PB is pressed, giving the option to Cancel, Sleep, Restart, or Shutdown.


Hi, I'm in the early stages of laying out my system, but I'm planning on using a laptop as well, and have researched this a bit. There are a number of options that can be configured with the command line utility pmset. In your case, this should do the trick:

sudo pmset powerbutton 1

On my MacBook Pro (10.5.7), though, this doesn't work. In fact, when I list my current settings, there is no powerbutton option. If you type pmset -g at the terminal prompt, and see a setting for powerbutton, then this should work for you.


Two settings that I need to change for my setup are acwake = 1 so that my computer will wake as soon as the power charger turns on, and setting the system to sleep after 1 minute when on battery power (-b sleep 1). The autorestart = 1 option may also be useful, this would boot the system when power is applied if it had unexpectedly shut down, which I'm assuming would be the case if the battery had died from sleeping too long.
06specv is offline   Reply With Quote
Old 06-01-2009, 01:24 PM   #8
Newbie
 
Join Date: May 2009
Posts: 12
06specv is an unknown quantity at this point
More research, this doesn't appear to be possible on laptops for some reason. If a command key equivalent will work, you can do Command-Option-Eject, and that will sleep your system.

But once your system is sleeping, how are you planning to wake it without a keyboard? The touch screen won't be able to wake it, or are you planning on hitting the power button to wake it up?
06specv is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Power button help on laptop with p1900 ephyouckay Laptops, Netbooks, Tablets, UMPCs, etc. 0 01-11-2007 07:58 PM
Power button won't work when laptop lid is closed scotty562 Laptops, Netbooks, Tablets, UMPCs, etc. 4 09-22-2006 11:25 PM
Opus green wire "T"ing with soft power computer button tangeray Power Supplies 4 12-06-2005 11:32 PM
Power Button, Shut Down Help Please! FireAnt MacCar 8 05-02-2005 03:25 AM
I want to add a power button on my dash. Which can i use? Sonicxtacy02 General Hardware Discussion 2 10-25-2004 04:17 PM



All times are GMT -5. The time now is 07:37 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
"VaultWiki" powered by VaultWiki v2.5.2.
Copyright © 2008 - 2009, Cracked Egg Studios.Ad Management by RedTyger
Message Board Statistics