Power schedule not respected in certain circumstances / incorrect time used by power manager

Originator:signwave
Number:rdar://31863099 Date Originated:27/04/17
Status:Open Resolved:
Product:macOS + SDK Product Version:10.12.4 (16E195)
Classification:Serious Bug Reproducible:Always
 
Area:
Something not on this list

Summary:
The interface in System Preferences for setting up a Power Schedule does not indicate that the actual shutdown time will be 10 minutes AFTER the specified time. As a result, when you specify a shutdown time of, e.g. 08:50, the machine will actually shut down at about 09:00 or moments after.

This is a serious problem if a schedule start up is within that 10 minute period after a scheduled shutdown, e.g. shutdown 08:50 startup 09:00. Since the shutdown won't have actually happened by 09:00 (or, it will be in progress) then the corresponding scheduled startup is ignored.

Steps to Reproduce:
1. System Preferences > Energy Saver > Schedule... > Startup 08:50
2. System Preferences > Energy Saver > Schedule... > Shut Down 09:00
3. Wait until 09:00 the following morning... the Mac Mini will not start up, because it will not have finished shutting down

Expected Results:
Because the scheduled shutdown procedure includes a 10 minute grace period with a dialog box, then this should actually appear 10 minutes BEFORE the scheduled shutdown time (e.g. 08:40 in the example given above). This way, the actual shutdown occurs nearly at the configured time (08:50).

Either that, or a warning should appear in the System Preferences interface that this configuration is unlikely to work due to the 10 minute grace period (which would be an inferior solution to actually using the correct shutdown time).

Actual Results:
The actual shutdown occurs at 09:00, therefore missing the scheduled startup time at 09:00.

Version:
macOS 10.12.4 (16E195)

Notes:


Configuration:
Confirmed on MacBookPro11,3 / Macmini7,1 running Mac OS X 10.12.4
Confirmed power schedule is in place using pmset command line (also appears in .spx report)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!