Q: Hibernation vulnerable to user actions
I like to raise the topic of the situation where a Macbook is used on battery power and the battery level goes low enough that the computer enters a state of going into hibernation. That is the screen goes black and the computer begins saving state so that it shall be possible to turn the Macbook on at a later time so it will boot back up to the state where hibernation became initiated.
I claim that a typical user behavior when the screen goes black is to rush for the charger with a goal to as soon as possible get the machine under charging in an attempt to bring the machine back into running state instead of it going into hibernation. After the screen goes black the user has no indication of what the machine is actually doing and how far it has progressed with the hibernation job. A typical action is to put the magsafe connector in place, see it turn from green to orange light signifying charging, and then eventually pressing the power button.
And this is where the problem occurs.
Apparently during the hibernation even if the user presses the Power button only briefly it has an effect of interrupting the hibernation action in the middle of its progress and attempting to return to running mode. In case hibernation had not completed (the user has no safe way of knowing at time of pressing the Power button) the startup will fail and the macbook will reboot, thus starting from scratch with all that work lost. In case the user is patient and waits maybe some 30 seconds longer before pressing the power button then the boot from hibernated state will be successful.
An improvement I like to propose is that while hibernation is ongoing the Macbook shall not be responsive to brief Power button press actions until hibernation is safely completed. That way it can be assured that hibernation completes and is not vulnerable to an impatient (and badly informed) user pressing buttons.
Another suggestion is to not have the screen go black but to show status information while hibernating.
That way the user understands what is going on.
I notice also that some time after the screen goes black if the user is quick enough with connecting the charger it is possible to bring the system back into to normal operation by pressing keyboard buttons. With the screen black instead of "indicating an opportunity window when it is possible to reverse hibernation" the user cannot be sure if the hibernation cancelling will work, or if to expect the dreaded reboot action. In any case the user should not be able to affect hibernation so that it fails and results in a reboot unless possibly the user holds down the power button for a long period.
MacBook Pro, OS X Mavericks (10.9.4), Macbook Pro 13 2010 edition
Posted on Sep 14, 2016 3:35 PM