Results 1 to 8 of 8

Thread: Powerbook power button?

  1. #1
    Newbie
    Join Date
    May 2009
    Posts
    54

    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

  2. #2
    Variable Bitrate VmtSquad's Avatar
    Join Date
    May 2007
    Location
    Montréal, Quebec, Canada
    Posts
    283
    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%

  3. #3
    Newbie
    Join Date
    May 2009
    Posts
    54
    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.

  4. #4
    Variable Bitrate VmtSquad's Avatar
    Join Date
    May 2007
    Location
    Montréal, Quebec, Canada
    Posts
    283
    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%

  5. #5
    Variable Bitrate natedawgg's Avatar
    Join Date
    Jan 2007
    Location
    Dallas
    Posts
    365
    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

  6. #6
    Newbie
    Join Date
    May 2009
    Posts
    54
    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.

  7. #7
    Newbie
    Join Date
    May 2009
    Posts
    12
    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.

  8. #8
    Newbie
    Join Date
    May 2009
    Posts
    12
    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?

Similar Threads

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