Good that this finally is getting fixed!
It's such a silly idea to have the power button act like the lock button on the iOS devices. They should just revert back to the original behaviour of it bringing up a dialog box to ask you what you want to do (like what happens if you hold it down for a few secs).
I've never accidentally pressed it because my MacBook Pro's keyboard has an eject key. But if I were to get a new Mac, I can see myself on the odd occasion pressing the sleep button (where eject was) instead of backspace and sending it to sleep.
I see no benefit to making it sleep instantly by pressing that button..
I agree. And apparently so does Apple, because it seems they've changed the behavior in OS X 10.9.2:
-new: tap or hold less than 0.5 seconds: nothing happens
-hold for 0.5 to 1.5 seconds: immediate sleep
-hold for 1.5 to 4 seconds: dialog Restart/Sleep/Cancel/Shut Down
-hold for 4 or more seconds: hard power down
Just like previously you can still bring up the ”Restart, Sleep, Cancel, and Shut Down” dialog by pressing ”ctrl power-button”.
My MBA is apparently not afflicted. We also have a 12 and that's not affected either. Both are same configuration -- 8GB RAM, 500GB SSID, slower processor. So maybe it's only certain hardware, or the soft/firmware that comes with it.
But my iPhone 5S has been rebooting itself a few times every day.
Are you running OS X 10.9. or 10.9.1 on them? Because if you're on 10.8 Mountain Lion the problem doesn't seem to happen.
What happens when you quickly press and let go of the power-button? Does the screen go black (i.e. computer sleeps) or do you get the dialog with options? If the latter you're on 10.8.
Anyway, the nasty thing with this error is it happens also if trying to wake by pressing any key (not just the trackpad). The error is triggered if attempting to wake the computer being ”in the middle” of its way to go to sleep, so pressing power and then any keys directly after in an attempt to wake will trigger it, if not the first time after a few. One can also use ”cmd alt power-button” to sleep the computer and then press random keys (or the trackpad) in an attempt to wake it.
Again – glad it seems to get a fix soon!