Power button behaviour

By default, when pressing the power button on my mac, OSX pops up a dialog asking me what I want to do (Shutdown, sleep, restart): is there a way to change this behaviour so that pressing the power button has the same effect as selecting sleep?
Likewise, and more importantly, I have a keyboard with a suspend button that when pressed pops up the same "shutdown, sleep, restart" menu. I'd like this button to directly chose sleep, but can't find where I configure this :/

I fear it too
I'll check it as soon as I get home (now I'm at work) but I think that the mac mini doesn't support that option, or that it's simply hidden in the pref pane :/
I fount it should be changeable using a command in the terminal but I don't think it's a good idea...
The command is
sudo pmset powerbutton 1
to turn the power button to sleep button
sudo pmset powerbutton 0
to make the power button show the "sleep, restart, shutdown" dialog again
Message was edited by: ilGaspa

Similar Messages

  • IMac power button behaviour

    Having purchased an iMac for my parents and parents-in-laws, I've come across a fundamentally bad (in my opinion) approach to the power button on iMac's. I personally use a MacBook Pro and the light indicator for when the laptop is in sleep mode is a very useful thing and this is greatly missed for the iMac. My parents could come back to the computer after it has put itself into a sleep state (from inactivity of keyboard and mouse) and the computer will look as though it is off. To make matters worse, if the power button is pressed in this state, the computer doesn't wake from sleep - instead a key needs to be pressed or the mouse clicked... so my million dollar question / suggestion is why not have the power button able to wake the computer from the sleep state induced from inactivity? In my mind this would make logical sense - or is this sleep state different to the Sleep state accessed from the Apple menu?

    From further tests, I think there is a difference between the sleep state that is activated from keyboard and mouse inactivity.
    If you activate the sleep state using "Apple -> Sleep" then you can use the Power button to wake it up.
    However, if you leave the keyboard and mouse inactive for your set time to enter Sleep, the power button alone cannot wake the computer... and I think this is because this sleep has set the display to sleep and the computer to sleep... for me, this is strange logic and could be solved if the display sleep time could be set to "never".
    Telling my parents to press the space-bar before pressing the power button everytime to turn on the computer seems against the simple approach that I thought Apple stood for. This problem all comes about because the iMac in sleep mode looks exactly the same as when it's off.

  • Power Button - Modify Behaviour

    I'm sure this must have been asked before but I've done a search and can't find any answers.
    My phone power button gets bumped when it's in my pocket many times every day.  I hear it tapping away.  I can enable the double tap to start function which works fine.  
    I would also like to modify the behaviour of the power button so that pressing it does not turn the screen on.  Can I modify the power button behaviour?  I would like it to only be used to turn the phone off.

    You can't do that. 
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • HT201150 How do I configure what the Power Button does?

    How do I configure my power button so hitting it does not automatically put it to sleep?
    Because it is right by the delete key I am hitting it accidentally all the time.  Also my cat is constantly putting my computer to sleep when I am working.  Is there a config file or a hack I can use to force a dialog (Restart/Sleep/Shutdown/Cancel)?

    See the 'More Like This' threads… (right sidebar)
    Power button behaviour
    Power button behaviourRe: after installing maverick power button does not provide options to sleep, shut-down
    The first one is resolved but I can't see how. 10.9's pmset command didn't have the 'power button' setting when I looked recently, it looks like this feature was deleted to me.

  • Mac OS will not allow me to put my computer to sleep with the power button

    With my old operating system I was able to press the power button one time and it allowed me to transition to a sleep mode after downloading new operating system I am not able to do this function anymore has anyone else had the same problem or is there a known fix for this problem.

    In Mavericks the behaviour changed to turning off the display.
    By holding the power button for approximately 3 seconds the dialog known from previous versions of OS X shows up from where you can put your computer either to sleep, perform a restart or turn it off.

  • Are all iPhone 5's Power buttons faulty?

    If i use my iphone power button it seems not to respond? but aometimes all i need to do is push it once and it works? seems odd?
    thanks

    some cases cause this behaviour other then that then no thats not normal

  • [SOLVED] Power button and laptop lid close rules not followed (KDE)

    I'm using KDE 4.9.1, and the rules I set for the power button and lid close events in the KDE power management settings are not followed.
    Currently, I have the power button press event set to trigger hibernation, and the lid close event set to turn off the display. Instead, the power button causes the laptop to power down immediately, as if the 'poweroff' command was issued. Closing the lid causes the system to suspend to ram.
    This problem seemed to have started when I installed 'laptop-mode-tools' and 'acpid'. The problem persisted even when I uninstalled the said packages from the system. Most solutions on the internet involve adjusting the contents of files in /etc/acpi/, but that directory does not exist on my system. I also tried deleting the power management configuration files in the ~/.kde4/share/config directory, but that didn't fix the problem either.
    Hibernation works if I choose 'hibernate' from the KDE menu.
    Thanks for any help.
    Last edited by rb3 (2012-09-28 05:46:56)

    That's not a good solution.
    Changes in systemd default behaviour are reasonable. It guarantees that if your graphical enviroment has no suspend support, it will still suspend when the lid is closed.
    For example, closing the laptop lid at KDM login screen will now suspend the laptop. I remember a topic when someone nearly killed his notebook battery with overheat in that situation (the laptop did not suspend when the lid was closed at kdm screen).
    This change also brings native (non-acpid) suspend support to lighweight desktop enviroments.
    The source of the «double suspend» problem is in acynchronized update of systemd and KDE.
    Updating KDE to 4.9.2 (which will be released in several days) will fix this without editing the config file.
    Make sure you restore the original logind.conf after updating to KDE 4.9.2.
    See:
    http://lists.freedesktop.org/archives/s … 06604.html
    https://bugs.kde.org/show_bug.cgi?id=307412
    https://git.reviewboard.kde.org/r/106533/

  • HT1384 My lock screen/power button on my iPod Touch is broken, and I need some assistance.

    As the title suggests, I can not use the lock screen/power button on my iPod Touch, it is broken. I can use Adaptive Touch to turn the screen on and off at will, and also turn my device off. But if I turn it off, I don't know how to get it to turn back on. Could I just plug it into a charger and turn it back on, or would I need to plug it into my computer? Please help, in a few days I won't have access to it for 9 weeks, I need immediate help.

    If you power off the iPod, it will turn back on if you connect it to a charger like a wall charger or a computer. I just checked with a charging source to confirm. I knew it did it with a computer.

  • I have frequent instances of my Macbook Pro beeping 3 times and then I have to forcefully shut it down by pressing the power button. What is this all about? Please help. Thank you.

    I have frequent instances of my Macbook Pro beeping 3 times and then I have to forcefully shut it down by pressing the power button. What is this all about? Please help. Thank you.
    I saw this report being sent to Apple:
    Interval Since Last Panic Report:  581719 sec
    Panics Since Last Report:          10
    Anonymous UUID: F4CF708D-D85C-4EC5-8047-4FC22C6B03AF
    Fri Mar  7 13:00:14 2014
    panic(cpu 0 caller 0xffffff80002d1208): Kernel trap at 0xffffff800020c590, type 14=page fault, registers:
    CR0: 0x0000000080010033, CR2: 0x0000000000000000, CR3: 0x0000000007541000, CR4: 0x0000000000040660
    RAX: 0xffffff8000000000, RBX: 0xffffff800d35a870, RCX: 0xffffff800cf55cd8, RDX: 0xffffff80008a8fcc
    RSP: 0xffffff805e5f3d60, RBP: 0xffffff805e5f3da0, RSI: 0x000000001dcd6500, RDI: 0xffffff800d168778
    R8: 0x0000000000000001, R9: 0xffffff805e5f3e88, R10: 0x0000000000000011, R11: 0x0000000000000000
    R12: 0x0000000000000000, R13: 0xffffff800d168770, R14: 0xffffff800d168778, R15: 0x0000000000000000
    RFL: 0x0000000000010082, RIP: 0xffffff800020c590, CS:  0x0000000000000008, SS:  0x0000000000000010
    Error code: 0x0000000000000000
    Backtrace (CPU 0), Frame : Return Address
    0xffffff805e5f3a00 : 0xffffff8000204d15
    0xffffff805e5f3b00 : 0xffffff80002d1208
    0xffffff805e5f3c50 :
    Model: MacBookPro8,1, BootROM MBP81.0047.B27, 2 processors, Intel Core i5, 2.3 GHz, 4 GB, SMC 1.68f99
    Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 384 MB
    Memory Module: global_name
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6), Broadcom BCM43xx 1.0 5.100.198.104.5)
    Bluetooth: Version 2.4.5f3, 2 service, 12 devices, 1 incoming serial ports
    Serial ATA Device: Hitachi HTS545032B9A302, 298.09 GB
    Serial ATA Device: OPTIARC DVD RW AD-5970H
    USB Device: FaceTime HD Camera (Built-in), 0x05ac  (Apple Inc.), 0x8509, 0xfa200000 / 3
    USB Device: Hub, 0x0424 (SMSC), 0x2513, 0xfa100000 / 2
    USB Device: BRCM2070 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0xfa110000 / 5
    USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x821a, 0xfa113000 / 8
    USB Device: Apple Internal Keyboard / Trackpad, 0x05ac  (Apple Inc.), 0x0245, 0xfa120000 / 4
    USB Device: Hub, 0x0424 (SMSC), 0x2513, 0xfd100000 / 2
    USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0xfd110000 / 3

    Hmm. The problem still may be the RAM - Apple buys the RAM it puts in its machines from third-party vendors (usually Hynix) so it could be a RAM problem.
    There are a couple of things that you can do yourself before taking your machine into an Apple Store or an AASP... download and run an application named Rember that will run a RAM test for you - let it run for a couple of hours or even overnight. If it turns out that your RAM is faulty, Rember will let you know. If it is faulty, then you have a couple of options - replace the RAM yourself or (particularly if you're under warranty still) take the machine to an Apple Store or AASP and have them replace the RAM.
    If Rember finds no fault with the RAM, then you'll need to take it into an Apple Store/AASP and get a free diagnosis on the machine. Three beeps do usually indicate faulty RAM, but if it tests good with Rember you likely have another problem - it could be something as simple as the RAM, somehow, not seated correctly or signs of another hardware problem.
    Run Rember first... call back with results.
    Good luck,
    Clinton

  • I am getting frequent lock-ups and blue screens during boot up. The lock ups occur during normal use and I cannot click anything or force quit. The cursor shows something is loading, but never stops. I have to use power button. Ideas?

    I am getting frequent lock-ups and blue screens during boot up on my Mac Pro.  The lock- ups occur sometimes during normal use and I cannot click anything or force quit. The cursor shows something is loading, but never stops. I have to use power button.
    I had the Mac Defender malware and I have used apple jack but still having issues.

    I am getting frequent lock-ups and blue screens during boot up on my Mac Pro.  The lock- ups occur sometimes during normal use and I cannot click anything or force quit. The cursor shows something is loading, but never stops. I have to use power button.
    I had the Mac Defender malware and I have used apple jack but still having issues.

  • MBP locks, thus force shutdown w/ Power button, then catastrophic app probs

    I have had two unexpected system lock ups which may be releated to low battery power, but have then caused catastrophic application problems. I do not want answers to the individual application problems here, I will refer to other Apple Support pages and forums for those. I'm interested in other users experience of the same catastrophic failures, if at all.
    Event 1. (OSX 10.4.8)
    I was using the MPB on battery and I knew the power was running low, afraid I can't remember how low but I'm sure it was below 10%. Without warning iPhoto crashed with an exception popup which said that it was related to low power - I didn't note the exact wording. The machine remained on, but I couldn't do anything with it, so I had to shut it down by holding down the power button.
    When I next used it, it seemed much of the applications I had had running at the time had all got corrupted;
    - iPhoto: my library was gone next time I opened it. All the photo files are still there but some complain they are corrupted when trying to view them. I'd been using iPhoto at the time and rotating a lot of photos. Photos loaded and rotated in that session seemed to have survivied, ones unrotated complain of corruption when I try to view them. Other threads have suggested I need to do a complete rebuild.
    - Dashboard: my whole set up has gone and it has reverted to a vanilla original set up.
    - Trackpad: my settings had all disappeared and I had to set it up from scratch again.
    - Skype: It no longer remembered my login details. This I found interesting as it is not an Apple app.
    Event 2. (After 10.4.9 upgrade)
    The second time I had left the MBP plugged in and in sleep mode, so it should have been well charged. A friend unplugged it to use the socket. When I went to use it it was still asleep. It was asleep and unplugged no more than 24 hours but my experience is it can live like this for days, so it should not have drained all power.
    I could wake it but I have a password set and the system would not register the key presses I made for the pwd in the pwd box. ie. no *'s appeared each time I typed. The MBP was working because as I tried to wake it by doing various key presses I obviously did something which made it play a track from my iTunes library which had been running when I last put it to sleep.
    Eventually again I had to shut it down using the power button. This time when I started it up I had the following;
    - iTunes: It said my library was corrupted and it had to rename it and set it aside and create a new one, all my Music is there but it looks like I will have to rebuild.
    - Mail: When I started Mail this time it requested I set up a mail account as if it was the first time I had used it. It looks like most of my mail files still exist in my Library/Mail folder but I somehow need to recover the mail account.
    - Messenger: my icon I used doesn't work and it has defaulted to the icon associated with my MBP account I log in with. I understand this could be because the image I used for my icon came from my iPhoto library and it doesn't take a copy.
    I am half way through recalibrating my battery as suggested elsewhere in these forums. After this I will reset the PMU/SMC. However after days of trawling the forums I have yet to find anyone describes problems like these, so I have reluctantly decided to start a new thread to see if anyone has had similar experiences.
    My MBP is 5 months old, bought at the London Apple Store in Nov 2006.
    MacBook Pro 17" 2.33 GHz Intel Core 2 Duo   Mac OS X (10.4.9)   Memory 2 GB 667 Mhz DDR2 SDRAM
    Intel MacBook Pro 17"   Mac OS X (10.4.9)  

    I came to a similar conclusion after trying Disk Utility.  It said the disk needs to be reformatted.  Unfortunately, I've not been doing TimeMachine backups for 2-3 months due to problems I had with it.  one of those "I'll take care of that sometime soon" things where soon doesn't get here.
    Right now I'm getting ready to hook up the backup drive and see what I can rescue.
    Chuck

  • Power button and other functions on my Nokia N86 s...

    After I downloaded a few applications for my Nokia N86, the slider preferences (i.e. the sound clips that play when opening/closing the slider; the answer/hang up call function; and the key lock) stopped working. Some apps refuse to open (no response). Also, when I push the power button on top of the phone, it does absolutely nothing, thus I cannot turn my phone off.
    I am affraid to take the battery out and let the phone power down then up because the power button might not be able to turn it on.  
    This occurred after I downloaded a few apps off of cnet.com. Here is a list of my downloaded apps with the most recently downloaded ones listed first:
    F-Secure (anti virus added and scanned after problem started - no viruses present)
    Handywi (wifi locator)
    fring (social networking bundle)
    DivX player
    Google app (m.google.com/app)
    Google maps 
    Opera Mini (web browser that now refuses to open)
    HNN Soft Talking Dictionary (Chinese/English that now refuses to open) 
    What should I do??? 
    (Yes, I have the most current software update)
    (Not sure if it matters, but I live and bought the phone in Taipei, Taiwan) 
    Message Edited by sk8erfrombham on 07-Jul-2009 02:22 PM
    Solved!
    Go to Solution.

    Sorry, if you are not willing to try it then I cannot help you.
    Take it to a nokia care point for assitance.
    Care points/service centres and repair info:
    UK • Europe • Asia-Pacific • USA •
    Canada • Middle East and Africa
    Elsewhere: Click here, select your country, go to the support section, then select repair.

  • IMac will only restart or shutdown from power button.

    My iMac will only restart or shutdown from the power button, it also will not logoff users. It starts ok, but only after a hard reboot?? I have repaired permisions and no change. I have a clone I can restore from but any ideas whats up here?
    The only things that I know I have altered are deleting files saved during migration from Panther (months ago)and running Unbuntu Live CD.
    iMac G4 15 Mac OS X (10.4.7) 728ram

    Are you booting into Ubuntu Linux? Most of us here wouldn't now anything to do with it. If the problem is occurring when booted into Mac OS X, it may be a sign of data corruption in the power management and user settings. Some corruption is easy to repair such as fixing the directory (which I'd only do after a clone). Here's how according to my FAQ:
    http://www.macmaps.com/directoryfaq.html
    And I assume the issue is with your iMac G4.

  • Faulty/stuck power button again! Who was the genius that located the ear-jack hole with the "Liquid Contact Indicator" at the top of the iPhone, so perspiration can accumulate and void the warranty

    My Power button is stuck again...... like many, many other owners....like two of my previous iPhones.  According to the Genius at the Genius Bar in Reno, Nv., my warranty is void because the LCI which is located in the ear-jack hole on the top, has come in contact with moisture/humidity/sweat.  My iPhone has never been dropped or wet. My iPhone4s is in pristine conditon and is in great working order except for the "stuck" power button, but because of a poor quality and location of the ear-jack hole, my warranty has been voided. Everything I have is Apple.  The Rep/Genius in Reno while fullly aware on the chronic power button problems, tried to put the stuck button on  an exposure to moisture. He said, "It doesn't matter if mositure didn't cause the button to stick or not. Your warranty voided because of the Liquid Contact Indicated turned color. Of course, the "power/sync" hole LCI is perfect.  Thank you Apple! I think I'll refuse my iPhone5 delivery on Friday and go buy a "Droid" phone.
    Hey, who out there wants to buy my new iPhone5 when it gets to me on Friday???

    Thanks for your reply. I too would not rule out moisture damaging the power button, but ...
    I guess was being too subtle. My points are:
    1. "Stuck" power buttons is a known issue/problem and Apple has been dealing with it since the first iPhone. This is quality problem. The evidence is with other users all around us and all over the web.
    2. The "sweat" issue is a design problem and should've been addressed long before the release of the iPhone5 in a few days.  Yes, they moved iPhone5's  headphone-jack to the bottom/underneath of the iPhone. To say that the "sweat" issue is the users' fault is like saying, Apple iPhones should only be sold to swine or other mammals without sweat glands. We're talking about as little as one drop from someone's temple running down the headphone-jack opening while one is engadged with a phone call.  That's all it takes to change the color of the LCI.
    3. Also I wanted to make my complaint public on this forum and not Facebook,  hoping to both, not only catch the eye of an Apple lurker, but let others know of the danger of speaking on their iPhones while out in the sun, high humidity or driving a car with the top down....... my point being, even the free AT&T Go Phones have protection against the slightest elements.
    4. I paid close to $700 for this iPhone4s 64G less than a year ago.  I don't like being dismissed with a cut and dry, cookie-cutter answer from a 20yr old without reasonable explanation and then be shoo'd out the door. "Next?"
    5. I love Apple products and I'm glad the new release has addressed the jack/perspiration problem although I know there were other factors involved in the decisions to not move/move it.

  • Hi I have a MacBook Pro 2011 i7 and it stays on for about 4 hours then the screen go's fuzzy and I have to turn it off by the power button has anyone had this problem thanks mike

    I Have a MacBook Pro i7 2011 it stays on for about 4 hours then the screen go's all fuzzy and I have to turn it off by the power button has any body else had this problem thanks mike

    My guess would also be a failling connection between your logicboard and your GPU. See 2011 MacBook Pro and Discrete Graphics Card
    For most users it starts with some random crashes and freezes like you describe it. And then it just gets worse and worse. There are still no "good" solutions, sadly. This is a hardware problem from the production.

Maybe you are looking for

  • How to move projects from one computer to another?

    Hi, What is the best way to move a project in labview signalexpress from one computer to anotherone and include all log files? As i try i get the error mistake ""the project that you just opened contains logs which are linked to the following deleted

  • Sorting by ARTIST not the same in iPod and iTunes?

    In iTunes/Windows, I insert a CD consisting of a compilation by various people as ARTIST='Various artists' and ALBUM ARTIST='whatever-singer'. Sorting by ARTIST shows the CD under the group 'Various artists', with each song corresponding to 'whatever

  • Querying multiple date ranges in one select

    Hello guys, DDL: CREATE TABLE DBO.SALES ( TYPE VARCHAR(50) , REVENUE DECIMAL(19,2) , SALE_DATE_TIME DATETIME) What I'm trying to figure out is how I can pass two dates to a where clause querying this table, a start date and an end date. From this I c

  • Switching between servers

    i have a database named oradb in my server. I want to connect to remote database which is also having the same database. How can i overcome this problem. Should i change tnsnames.ora file for each login

  • Does photo book support Chinese language?

    Hello, this is my first time making a photo book from iPhoto. I just want to find out if the photo book service supporting Chinese before I create one in Chinese. I can type Chinese in iPhoto, what I don't want to see is after I finish my 25 pages of