10 ms·
Resolving power button issues in Mac OS X Mavericks
- nwh 13y agoSurely there's a plist you can modify rather than patching stuff in-memory.
- lmg643 13y ago>It always amused me how Apple is capable of producing so quality hardware and has so bright ideas in design, but makes so awful lot of questionable decisions in software. Amen. I recently migrated to iMac/Mavericks from Windows 7 and there are a number of really useful things you can do in Windows 7 that there aren't good analogues for in Mavericks. Task-switching, for example, leaves a lot to be desired. Apparently a third party application, Witch, can fix that - wonderful (and not really a good fix if you are using windows virtual machines side-by-side). Launchpad is horribly designed, has phantom stuff on there and you can't delete them directly. I still like the machine but it's funny to think that windows had the edge in a number of usability areas.
- nwh 13y agoWindow switching is something there's really little to complain about on OSX. You've got sloppy window focus (scroll on a window that's not active), mission control for switching and finding applications, an intelligently organised alt-tab application switcher, multiple desktops with pinning if necessary, and the Dock for even faster switching. What do you think is missing?
- rwc 13y agoI suspect the problem he's dealing with coming from windows is that the Mac OS paradigm is application switching via the dock and Command+Tab whereas in Windows the taskbar and Alt+Tab are window switching.
- nwh 13y agoIn which case alt + ` would be a suitable replacement, as that's the command for window switching.
- shalalala 13y ago'Command' + '~' switches windows in the current app.
- jesseendahl 13y agoFor Windows style window switching (across all applications), use Control + F4. You may also need to hold down the function key if you have your keyboard setup the default way, where things like brightness, volume, etc. are the primary uses of the function keys.
- eyesee 13y agoIt's worth noting that you can remap the key easily from the Keyboard panel in System Preferences. Look under Shortcuts -> Keyboard for "Movie focus to active or next window".
- deleted 13y ago[deleted]
- rwc 13y agoCommand + ` only works within the app once you've switched. You may only want to switch to one window from an application but Command+Tabbing to it brings all windows from that application on top. It takes some getting used to.
- lmg643 13y agoAppreciate the sympathy. I'm used to minimizing applications to get them out of the way, and alt-tab on windows restores the window you want. on the mac, it only restores a non-minimized window, and command+~ only works if both windows are not minimized. Mission control also doesn't restore minimized windows. Windows Snapping was also a cool feature that isn't native to OSX, you need a third party tool - great to do a side-by-side on spreadsheet/document. And can we get a comment about launchpad? and widgets? considering how good the iOS experience is, the desktop launchpad is horrible. and widgets should be removed, rethought or integrated for sure. both of these strike me as afterthoughts, which is bizarre considering how central they appear when you first set up the OS.
- shurcooL 13y agoI really want something like Cmd+Tab, except one that lists all windows on current desktop (doesn't include minimized windows or other desktops). When comparing two things on one small screen, I want to be able to rapidly switch between two windows. Depending on if it's within same app, I have to think to use either Cmd+Tab or Cmd+`. And all the minimized apps, as well as apps on other desktops get in the way. Mission Control is unacceptable for rapid window switching because it requires me to move the mouse pointer and find the other window, when all I want to do is "select previous window".
- mgillett 13y agoI have the same gripe. Think about giving Switch (https://github.com/numist/Switch https://github.com/numist/Switch) a try. Cmd+Tab still functions as normal, but Opt+Tab (you can change the default keybinding) will allow you to cycle through all available windows on a single desktop. Not a perfect solution, but it's a big improvement imo over Cmd+`.
- ricardobeat 13y agoFrom a comment below, Control+F4 seems to do the trick. You could remap that to your Cmd+Tab.
- shurcooL 13y agoThat seems to be VERY close to _exactly_ what I'm looking for, but it's not quite right (which makes it very far from useful, unfortunately). The problem is that pressing Ctrl+F4 twice in a row keeps iterating over the 1st, 2nd, 3rd, etc. windows. So if you want to switch between two most recently windows, you have to press Ctrl+F4, then Ctrl+Shift+F4, then Ctrl+F4, then Ctrl+Shift+F4, etc.
- youWontLikeThis 13y ago> What do you think is missing? Single click access to every open window through the taskbar. See windows 95 for early reference.
- davidw 13y agoMac OS X apparently does not have focus follows mouse: http://steve-yegge.blogspot.it/2008/04/settling-osx-focus-follows-mouse-debate.html http://steve-yegge.blogspot.it/2008/04/settling-osx-focus-fo... That's kind of old though. Have they fixed it? I doubt it's a priority.
- madeofpalk 13y agoIt does, in a 'lazy' way. e.g. You can scroll an unfocused window when you're mose is over it.
- twoodfin 13y agoThis is actually one of the few things in OS X that drive me nuts. It's tremendously useful, but because there's little visual distinction between a focused and unfocused window, I'll start typing in a window I've just been scrolling and realize I'm issuing random commands to Mail.app on my other monitor. Mavericks' blessed addition of per-screen menu bars has the nice side effect of making this a little more noticeable: The menu bar is transparent on a screen without the active window. Terminal.app also can be customized to make inactive windows partially transparent. I wish that option were system-wide.
- peralta 13y agoWell, that's crippled sloppy focus as you can only scroll the background windows, but NOT type on them. Terminal.app has some sloppy focus support, but only between its own windows which makes the whole experience a pain.
- gmac 13y agoA.k.a. sane sloppy focus? I think I'd find it very confusing if my mouse position (which is effectively arbitrary when I'm not mousing) affected where my typing was going to appear.
- peralta 13y agoI guess this depends on habit: once used to "real" sloppy focus, it is really difficult to live without it. At the same time, I've seen tons of people get confused when using my computer and accidentally moving the mouse. Still, worth a try if you haven't (and kind of impossible with OSX).
- bane 13y agoIt's a mess, that's what the problem is. Just look at this thread and the number of ways that sometimes work in certain cases to do basic operations. Some of this is the added complexity of additional desktops (which I agree are awesome and sorely missing in Windows), but some, like switching windows in the same app, are a usability disaster. Here's a short list from this thread for something which is universally ctrl+tab (and shift+ctrl+tab for the other direction) in Windows: - Mission Control - cmd+tab - cmd+` - ctrl+f4 - Switch, a tool which enables Opt+tab - contextsformac - cmd+~ (only in some cases)
- gmac 13y agoI'm confused how this is a problem for you. Pick the one(s) you find helpful, and ignore the rest?
- bane 13y agoBecause they don't all work the same and they don't all work all the time. It's not like they're just different aliases for the same action. Some work in certain cases with a certain app, some work in special contexts, some don't work unless you install an app an remap your keyboard. It's kind of insane.
- shurcooL 13y agoCmd+~ is the same as Cmd+`, just with shift pressed down. Doesn't make sense to list both of them (since you don't also list Cmd+Shift+Tab).
- protomyth 13y agoAm I missing something or is the F3 button in Mavericks not a good switching experience? I do agree with your Launchpad comment and just drag Application folder into the right side of the Dock (settings Sort by Name, Display as Folder, View Contents as List) along with Utilities, Documents, and Downloads (Sort by Date Added).
- frou_dh 13y agoWhy use Launchpad or any kind of mouse picking for Applications/Utilities? You already know what you want to launch, and a letter or two typed in to Spotlight will get it.
- thirdsun 13y agoAlternatively: Alfred - a fantastic app not just for quickly launching apps and furthermore very customizable with user-defined actions. It's been a long time since I used a mouse to launch an app.
- joshuapants 13y agoSpotlight is slow and often doesn't find the right things. Quicksilver and Alfred do a much better job.
- frou_dh 13y agoI haven't found that to be the case for app launching, and I've used Quicksilver and LaunchBar fairly extensively in the past.
- protomyth 13y agoF3 is Mission Control, F4 is Launchpad (and I don't use Launchpad). I thought the op was about switching not launching.
- gress 13y agoLaunchpad works great with the keyboard too.
- lelandbatey 13y agoThe killer feature that I dearly miss in OS X is decent Window management. In Windows, I can use Win+left/right keys to make a window take up precisely half of the screen. I can press Win+up_arrow to fullscreen a window. On Linux, I can use tiling window managers like Dwm or Xmonad to fullfil all my tiling needs. In OS X, I can full screen or have to manually deal with each and every window. It's awful.
- aaronbrethorst 13y agoSizeup: http://www.irradiatedsoftware.com/sizeup/ http://www.irradiatedsoftware.com/sizeup/
- trauco 13y agoApart from resizing/moving windows, one feature I miss dearly from my Linux desktop is the ability to move windows from one desktop to the other. I use keyboard maestro to resize windows, and the developer mentions somewhere in his website that there's no way to move windows from one desktop to the other with OS X. Does anybody know if that's the case?
- killerpopiller 13y agoyou can grab a window with your mouse (left click) on its upper panel hold it, so that you can drag it around your desktop. To drag it to the next desktop just hold it + CTRL+1 or 2,3,4 (depending on your set desktops).
- trauco 13y agoAh, missed the most important bit in my comment: I could do this in Linux without the mouse, which is the behavior I want to replicate in OS X if possible. Thanks for your answer.
- ollysb 13y agoThere's quite a few window managers available for OS X (divvy, sizeup, shifit to name but a few).
- gmac 13y agoUsing Hot Corners, I have Mission Control (ie. app switching) activated at bottom right, and Application Windows (i.e. window switching) activated at top right, plus Desktop at bottom left. I find this makes any kind of switching extremely fast and fluid.
- overgard 13y agoI'm probably a bit weird, but all the computers I own now are macs... and I run windows 90% of the time on pretty much all of them. OSX really is pretty, and I like having a unix with a nice GUI, but when it comes to usability I think OSX just isn't very good. Task switching is awkward. The dock looks nice, but compared to the taskbar it's not very functional. Maximizing windows often ends up with surprising results. (Does it take up the full screen? Or does it just vertically maximize? What happens if I try to unmaximize?) Useful keyboard keys are mapped to weird things (for instance: home/end moving to the beginning/end of a document instead of the end of a line. I need to go to the end of a line about 100x more often than I need to go to the end of a document). Also: animations. They're great for demos, but when you're trying to get serious work done they're irritating and you can't turn them off without some commandline-fu. I get the impression apple pretty much will always prioritize gloss over functionality.
- beggi 13y agoWow this behavior has annoyed me to no end the one time when I miss the delete button every 1-2 months.
- m_mueller 13y agoWhile I had the same thought at first, this post delivered on a well documented reverse engineering case that should be perfect for the intended audience here. Which is why I think your tone is out of place.
- beggi 13y agoIn hindsight I see that my post might look like sarcasm, but it's not. I forgot to mention that for some reason on my MacBook Air when I hit the power button the computer sleeps and won't wake up so I have to do a hard restart - so this behavior really is very annoying to me even though it's infrequent.
- sirn 13y agoIs there any scenario where Fn+Backspace can't be used for the Delete key?
- vacri 13y agoFn and Backspace are at opposite corners of the keyboard, requiring a two-handed chording. I guess any situation where you want to combine Delete with mouse use.
- bcj 13y agoWhat I'd really like is to make power a dead key unless function is pressed.
- adolph 13y agoHalfway through I started thinking the punch line would be that he tells all this to someone else and that person says, "yeah, I hated that too so I put a little piece of tape on it." No punch line in this though, just patch downloads.
- kalleboo 13y agoTape wouldn't work, you'd need a bottle cap or something spaced away from the keyboard.
- userbinator 13y ago> It always amused me how Apple is capable of producing so quality hardware and has so bright ideas in design, but makes so awful lot of questionable decisions in software. > I have a MacBook Air and delete key is only 3mm apart from power key and I mishit it from time to time. Am I the only one who thinks the first sentence is a bit sarcastic?
- caprad 13y agoI don't think he was being sarcastic, and the key has to go somewhere on the keyboard. You can't just put it anywhere else. And it wasn't a problem before, when it popped up a menu you could dismiss easily. And I never hit it on my macbook, so I guess it isn't a probably for everybody.
- userbinator 13y agoI've never used a Macbook Air before, but now that I look at its keyboard... wow. I think accidentally pressing the power button because it looks and feels just like the other keys on the keyboard is a bad design. The one on my laptop is isolated from all the other keys, looks and feels very differenet, and recessed to prevent accidental activation.
- wonderzombie 13y agoI want to agree with you, because what you say is eminently reasonable. But I've never, ever, ever accidentally hit the power button. And I don't consider myself a particularly good typist.
- majormajor 13y agoSometimes I wonder if they moved the power key there just because they couldn't figure out anything else to do with the now-defunct eject button on optical-drive-less machines, as opposed to there being any problem with the old location just above and to the right of the keyboard. I don't really like it either.
- 13y ago
- deleted 13y ago[deleted]
- ansimionescu 13y agoAm I the only one who realises (and appreciates) the fact that if you hit whichever key in the first second after hitting the power button, the computer doesn't go to sleep? It's actually a very thoughtful feature, it surprises me that no one at all mentioned it.
- shalalala 13y agoWhat do you mean?
- madeofpalk 13y agoWhen I accidently hit the power button, it's usually followed by a flurry of furious key strokes to quickly wake the machine up. It appears that before the machine actually goes to sleep, there is a brief period of about 5 seconds where it's stil on, but the screen powered off.
- kalleboo 13y agoIt still disconnects me from IRC though :(
- mosselman 13y agoI can't reproduce what you say so I assume that you have disabled the password lock of Mac OS and because of the speed of your macbook it seems as if it doesn't go to sleep and then come back even though it does. When I do what you say I get confronted with the lock screen after things like music stopping and the mac going to sleep for a split second.
- adrenalinup 13y agoI cannot reproduce this. However, if I press the power button for a very brief delay, it will not go to sleep. If I leave it pressed slightly longer, it goes to sleep.
- Demiurge 13y agoThat's weird, I've been using MacBook Air 11 for three years and remember hitting the power button only once by accident. I also have pretty big hands and fingers.
- dhruvmittal 13y agoDid that have the "new" style power button, replacing the eject button immediately above the delete key?
- valleyer 13y agoAll MacBook Airs have had that layout.
- klausa 13y agoNot true: http://www.blogcdn.com/www.engadget.com/media/2008/01/macbook-air-rev-sm-03.jpg http://www.blogcdn.com/www.engadget.com/media/2008/01/macboo...
- valleyer 13y agoHuh, you're right. So all but the first generation then?
- stephencanon 13y agoFirst two generations. The power button moved with the third-gen chassis redesign (squared-off sides) and the introduction of the 11".
- fredsted 13y agoSame here. MacBook Air 13", 2013. Can't remember ever hitting the power key by mistake. Can't understand how this is even a problem. Make people here should take up a typing course?
- jaseemabid 13y agoIsn't this why the world love FOSS?
- DigitalJack 13y agoIs the power button different on newer macs? Mine is flush with the metal and you have to push it much harder than a key press to effect anything.
- raygunomical 13y agoYes. On the newer Macbooks, it's a chiclet immediately north of "delete" and east of Volume Up.
- muro 13y agohttp://images.apple.com/macbook-air/images/design_multitouch.jpg http://images.apple.com/macbook-air/images/design_multitouch...
- DigitalJack 13y agoWow, that was a bad move. I'd make it a triple press to turn off if it was demanded that it be a normal key. That's really too bad it's just a plain key like that. On my windows keyboard, I miss the backspace key all the time and it has an eject above there which makes a lot of drive noise even when the slot is empty, but I'd scream bloody murder if it actually slept. (the crapware my employer puts on my laptop makes it painfully slow to sleep and wake or do anything else really).
- madeofpalk 13y agoYes. It's where your eject key is http://9to5mac.files.wordpress.com/2012/05/macbook-pro-keyboard.png http://9to5mac.files.wordpress.com/2012/05/macbook-pro-keybo...
- habosa 13y agoOn the Macbook Air it is another normal key.
- chucklarge 13y agothank you! just ran the binary and hitting the power button on a mbp retina now brings up the "Are you sure you want to shut your computer down now?" dialog. This is behavior is by far the worst part of mavericks.
- mark212 13y agoCompletely don't understand this post. I'm typing from a MacBook Pro (15" retina, bought it a month ago) and can't replicate the OP's experience. A light jab of the power button, like I would hit the delete key, doesn't do anything. Only a firm, solid press does -- and even then, any other key press brings it right back up from sleep in an instant.
- kalleboo 13y agoOn my 2012 rMBP on Mavericks, even a fast light tap on the power button sends it into sleep. You're right that it wakes up again very quickly, but it very annoyingly terminates some online connections (e.g. IRC)
- sitharus 13y agoOdd, on my Mid 2012 rMBP a quick press does nothing. Doesn't bother me though, I've never accidentally hit the power button, but my normal typing position keeps that whole row of keys outside my finger range.
- userbinator 13y agoDo you have one of the ones with a separate power button?
- rimantas 13y agoThat's what I was also wondering about. I suppose it should act a bit like caps lock key on Apple keyboards: quick tap does not trigger caps lock, only a slightly longer will do the trick. Would make sense for power button do the similar thing.
- bilalq 13y agoThe way the caps lock button works is utterly broken. There's no way to get around the delay and it just punishes you for hitting it quickly. I used to use the key as my primary way of switching case (not optimal, I know), but now it's useless to even remap it to something like Control because of the delay.
- normalocity 13y agoHow is this not a simple training mistake of the user? The power button is in the far corner of the keyboard.
- rdatajef 13y agoThe far corner of the keyboard... millimeters away from the backspace key and the volume up keys (which aren't uncommon keys to hit).
- drwl 13y agoI find myself using the delete button less as I use Ctrl+H (when caps is remapped to control) using Keyremap4macbook, and even when I do use the delete button I rarely mistakenly press the power button
- dmourati 13y agoHappened to me twice today as I was working. Fixed with the binary. How would I roll back the change? Thanks.
- wazoox 13y agoDon't need to. The binary patches the running executable in memory, and doesn't change the binary on disk. You must run the program at every new login to patch again the running process.
- dmourati 13y agoRealized that after I found his github project. https://github.com/binchewer/power_fixer https://github.com/binchewer/power_fixer
- woah 13y agoNever really been a problem for me.
- unfamiliar 13y ago> Let’s put aside the question why someone would decide to implement such a ridiculous feature — it was implemented, everyone is unhappy, and Apple seems to have more important tasks to do than to fix it back. The feature is there to trick people into thinking they have powered off the machine. People hit the power button and think the machine is shut down so they are happy. This way they get all the benefits of just sleeping the machine such as fast startup times, but there is no need to educate the user that shutting down every day is unnecessary.
- youngtaff 13y agoFast start up times, except for the issue where Mavericks takes ages to reconnect to WiFi from sleep - it's quicker to turn Wifi off and then on, than wait for Mavericks to wake the network adapter and reconnect
- lostlogin 13y agoDo others get this? I don't. 11 and 13 air, Mavericks and wifi.
- jbverschoor 13y agoWell.. Nothing happens if I press mine. It might have the same delay as capslock to prevent accidental preses
- terabytest 13y agoYou have an unintended doge in your first line: "so quality hardware".
- brandonbica 13y agoThe primary use case of the power button is to power down the machine. Of all the times that the button is hit, how often is it hit with the intent of hitting the delete button? For me personally I would guess it's happened maybe once or twice in the couple of years I've had an Air. So to me it seems like having to confirm that I want to shutdown after I hit the shutdown button, by either clicking or waiting, is a hurdle on the primary way the button is used. I can see that in the scenario posted that it is a "high impact" if you accidentally hit the power key, but overall the number of times that that happens must be low enough that bashing Apple's design decision has to be a little over the top.
- lostlogin 13y agoHow often do people use the power button versus accidentally hitting it? I'd say that my primary intentional use of that button is restarting the computer after hitting the button by mistake. Shutting down and powering up are rare activities for me. Edit: waking from sleep rather than powering up - however it is often I restart I am doing as the wake from sleep is flakey for some reason.
- wil421 13y ago>The problem is, I have a MacBook Air and delete key is only 3mm apart from power key and I mishit it from time to time The problem seems to be with the user not with the Mavericks update. Stop accidentally pressing the power button, problem solved.
- madeofpalk 13y agoI'm sure we don't mean to press it...
- post_break 13y agoI remember the days when there was an eject button there. And any quick press made your macbook sing the song of its people. In 10.4.9 I believe Apple created the delay.
- ChikkaChiChi 13y agoThe comments on this article read like the Apple forums, 'I can't replicate it, so you must be doing it wrong.' Just because it's not happening to me doesn't mean it's not an issue. Fact of the matter is that the laws of unintended consequences are at play here. Apple took a button which was perfectly fine being separate and on its own and made it part of the standard keyboard. Then they took away a confirmation dialog that would have prevented it from automatically switching power modes. This wasn't a problem, now it is, and Apple refuses to acknowledge the problem. It doesn't matter if YOU don't have this problem, some people do. I am really hoping the past week of low quality HN commentary is simply a by-product of the weekend folks having extended breaks...
- ricardobeat 13y agoSoftware "fix" for a dumb hardware change. The old button flush with the body made more sense.
- SmileyKeith 13y agoWhen I saw this change in the beta builds of Mavericks I submitted a bug report since the ability to change the power button's behavior was also removed from `pmset`. They responded with a "this was intentional." This is the biggest thing that angers me about the way Apple handles software changes. This could have been switched as the default, but having to go to this much trouble to change it back to the functionality the button has had for years is just ridiculous.
- SmileyKeith 13y agoLooks like this will hopefully be installable via Homebrew soon: https://github.com/binchewer/power_fixer/pull/3 https://github.com/binchewer/power_fixer/pull/3
- ScottBurson 13y agoInteresting example of how to dig through the guts of the OS and patch a binary. I've been thinking of trying to do the same thing to permanently disable display mirroring, which I despise[0]. Maybe this will inspire me to take a shot at it. [0] The OS "helpfully" resizes and relocates all my windows so they fit on the smaller screen. This is no problem on an Air, but on a 17" MBP with seven or eight virtual desktops full of windows, it's a disaster. I would think it would be pretty annoying on a 15" as well, but I guess most people don't mind.
- chenster 13y agoDamn, that's hard core hacking!
- sigsergv 13y agoI'd prefer to disable Power key completely, it's actually totally useless. I think there is something on ACPI/kernel level could be done to disable that key, but I haven't found it yet. When I need to sleep I just close macbook, when I rarely need to reboot I just press button “Reboot” in some package installation wizard (otherwise reboot could be done using apple menu). So this button make sense only in one case: laptop is not responding and you need to “hard-reset” it using loooong press, and that case is processed by low-level hardware, not high level ACPI driver.
- pkamb 13y agoI made the utility PowerKey to remap the power key to Forward Delete or another key of your choosing: https://github.com/pkamb/PowerKey https://github.com/pkamb/PowerKey It was pretty broken with the new Sleep behavior of 10.9, but this is hack is a great step in the right direction.